From aa4c1891aee859c2f0557e8b3592bf0edd0d60e6 Mon Sep 17 00:00:00 2001 From: Igor Ranieri Elland Date: Fri, 15 Apr 2011 20:38:14 -0300 Subject: [PATCH 1/3] changed mash to hashie, since mash is now deprecated --- lib/ruby-github.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ruby-github.rb b/lib/ruby-github.rb index 90bb1ef..f0c8a68 100644 --- a/lib/ruby-github.rb +++ b/lib/ruby-github.rb @@ -1,7 +1,7 @@ require 'rubygems' require 'json' require 'open-uri' -require 'mash' +require 'hashie' module GitHub class API @@ -32,13 +32,13 @@ def self.commit(user,repository,commit) end end - class Repository < Mash + class Repository < Hashie::Mash def commits ::GitHub::API.commits(user,name) end end - class User < Mash + class User < Hashie::Mash def initialize(hash = nil) @user = hash["login"] if hash super @@ -49,7 +49,7 @@ def repositories=(repo_array) end end - class Commit < Mash + class Commit < Hashie::Mash # if a method only available to a detailed commit is called, # automatically fetch it from the API def detailed From 178ba7142d5412a79dc8c8933d9fd470a2525e9e Mon Sep 17 00:00:00 2001 From: Igor Ranieri Elland Date: Fri, 15 Apr 2011 20:51:04 -0300 Subject: [PATCH 2/3] fixed depencies in gemspec --- ruby-github.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby-github.gemspec b/ruby-github.gemspec index 584242d..47adb5b 100644 --- a/ruby-github.gemspec +++ b/ruby-github.gemspec @@ -11,5 +11,5 @@ Gem::Specification.new do |s| s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "ruby-github.gemspec", "lib/ruby-github.rb"] s.rdoc_options = ["--main", "README.txt"] s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"] - s.add_dependency("mbleigh-mash", [">= 0.0.5"]) + s.add_dependency("hashie", [">= 1.0.5"]) end \ No newline at end of file From 6225ab7dbfd852987b3da8bbac0b044b6f8e757e Mon Sep 17 00:00:00 2001 From: Igor Ranieri Elland Date: Fri, 15 Apr 2011 20:54:05 -0300 Subject: [PATCH 3/3] fixed depencies in gemspec, version error. lame. --- ruby-github.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby-github.gemspec b/ruby-github.gemspec index 47adb5b..7c99a0b 100644 --- a/ruby-github.gemspec +++ b/ruby-github.gemspec @@ -11,5 +11,5 @@ Gem::Specification.new do |s| s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "ruby-github.gemspec", "lib/ruby-github.rb"] s.rdoc_options = ["--main", "README.txt"] s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"] - s.add_dependency("hashie", [">= 1.0.5"]) + s.add_dependency("hashie", [">= 1.0.0"]) end \ No newline at end of file