Skip to content

Commit

Permalink
updtaed gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
ywen2 committed Dec 13, 2011
1 parent e08f895 commit e83d54f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -33,6 +33,8 @@ To use it, you can just do:
user = User.new :id => 12, :name => "Faye Wang"
user.save

users = User.all :active => true

Both operations assume your web service controller returns a json string which can be initialized into an object.

The gem supports nested resources. For example, if user.address is an instance of Address class and needs to be so. You can specify the json (in ruby hash format) as the following:
Expand Down
2 changes: 1 addition & 1 deletion lib/rest_resource/version.rb
@@ -1,3 +1,3 @@
module RestResource
VERSION = "0.1.5"
VERSION = "0.2.0"
end
1 change: 1 addition & 0 deletions rest_resource.gemspec
Expand Up @@ -16,5 +16,6 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.add_runtime_dependency(%q<httparty>, [">= 0"])
s.add_runtime_dependency(%q<rest-client>, [">= 0"])
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
end

0 comments on commit e83d54f

Please sign in to comment.