rest_resource 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/rest_resource/version.rb +1 -1
- data/rest_resource.gemspec +1 -3
- metadata +5 -5
data/README.md
CHANGED
@@ -7,6 +7,8 @@ rest_resource -- rest-client gem wrapper to provide a simple CRUD interface
|
|
7
7
|
## DESCRIPTION
|
8
8
|
The gem provides a basic CRUD operation to the resources. It is basically rest-client wrapper. Once you use it, you have find, create, update and delete (Currently I implemented only find and create)
|
9
9
|
|
10
|
+
The goal of this gem is to provide a minimum CRUD client interface for the RESTful web services. It doesn't make the API to be ActiveRecord like. Rather, it lets the users have the full control on the resources, especially on the error handling.
|
11
|
+
|
10
12
|
## USAGE
|
11
13
|
Given you need to fetch user from a web service. You can write:
|
12
14
|
|
data/rest_resource.gemspec
CHANGED
@@ -7,12 +7,10 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = RestResource::VERSION
|
8
8
|
s.authors = ["Yi Wen"]
|
9
9
|
s.email = ["hayafirst@gmail.com"]
|
10
|
-
s.homepage = ""
|
10
|
+
s.homepage = "https://github.com/ywen/rest_resource"
|
11
11
|
s.summary = %q{A wrapper over rest-client providing basic CRUD restful web service operation}
|
12
12
|
s.description = %q{A wrapper over rest-client providing basic CRUD restful web service operation}
|
13
13
|
|
14
|
-
s.rubyforge_project = "rest_resource"
|
15
|
-
|
16
14
|
s.files = `git ls-files`.split("\n")
|
17
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yi Wen
|
@@ -74,7 +74,7 @@ files:
|
|
74
74
|
- spec/spec_helper.rb
|
75
75
|
- tasks/rspec.rake
|
76
76
|
has_rdoc: true
|
77
|
-
homepage:
|
77
|
+
homepage: https://github.com/ywen/rest_resource
|
78
78
|
licenses: []
|
79
79
|
|
80
80
|
post_install_message:
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: "0"
|
103
103
|
requirements: []
|
104
104
|
|
105
|
-
rubyforge_project:
|
105
|
+
rubyforge_project:
|
106
106
|
rubygems_version: 1.4.2
|
107
107
|
signing_key:
|
108
108
|
specification_version: 3
|