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 diff --git a/ruby-github.gemspec b/ruby-github.gemspec index 584242d..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("mbleigh-mash", [">= 0.0.5"]) + s.add_dependency("hashie", [">= 1.0.0"]) end \ No newline at end of file