restrack-client 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +4 -4
- data/README.markdown +4 -3
- data/Rakefile +4 -2
- data/lib/restrack-client.rb +2 -1
- data/lib/restrack-client/version.rb +1 -1
- data/test/test_restrack-client.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
restrack-client (0.
|
4
|
+
restrack-client (1.0.0)
|
5
5
|
i18n
|
6
6
|
json
|
7
7
|
mime-types
|
@@ -10,11 +10,11 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: http://rubygems.org/
|
12
12
|
specs:
|
13
|
-
i18n (0.
|
14
|
-
json (1.5.
|
13
|
+
i18n (0.6.0)
|
14
|
+
json (1.5.3)
|
15
15
|
mime-types (1.16)
|
16
16
|
shoulda (2.11.3)
|
17
|
-
xml-simple (1.0
|
17
|
+
xml-simple (1.1.0)
|
18
18
|
|
19
19
|
PLATFORMS
|
20
20
|
ruby
|
data/README.markdown
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
# RESTRack::Client
|
2
2
|
|
3
|
-
A library for interacting with RESTful web services.
|
3
|
+
A library for interacting with RESTful web services.
|
4
|
+
Use this to communicate with RESTRack based services.
|
4
5
|
|
5
6
|
|
6
7
|
## Usage
|
7
8
|
|
8
9
|
uri = URI.new('http://localhost')
|
9
|
-
client =
|
10
|
-
client =
|
10
|
+
client = RESTRack::Client.new(uri)
|
11
|
+
client = RESTRack::Client.new('http://localhost')
|
11
12
|
foo_resource = client.foo(123) # pivot object that hasn't yet made request
|
12
13
|
foo = foo_resource.get( { :data => 'something_here' } ) # request is made to GET /foo/123
|
13
14
|
bar = client.foo(123).bar # pivot object that hasn't yet made request
|
data/Rakefile
CHANGED
data/lib/restrack-client.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: restrack-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.
|
5
|
+
version: 1.1.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Chris St. John
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-07-10 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|