restrack-splitter 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,42 @@
1
+ # rcov generated
2
+ coverage
3
+
4
+ # rdoc generated
5
+ rdoc
6
+
7
+ # yard generated
8
+ doc
9
+ .yardoc
10
+
11
+ # bundler
12
+ .bundle
13
+
14
+ # jeweler generated
15
+ pkg
16
+
17
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
18
+ #
19
+ # * Create a file at ~/.gitignore
20
+ # * Include files you want ignored
21
+ # * Run: git config --global core.excludesfile ~/.gitignore
22
+ #
23
+ # After doing this, these files will be ignored in all your git projects,
24
+ # saving you from having to 'pollute' every project you touch with them
25
+ #
26
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
27
+ #
28
+ # For MacOS:
29
+ #
30
+ #.DS_Store
31
+ #
32
+ # For TextMate
33
+ #*.tmproj
34
+ #tmtags
35
+ #
36
+ # For emacs:
37
+ #*~
38
+ #\#*
39
+ #.\#*
40
+ #
41
+ # For vim:
42
+ #*.swp
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ restrack-splitter (0.1.4)
5
+ restrack-client
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ i18n (0.5.0)
11
+ json (1.5.1)
12
+ mime-types (1.16)
13
+ restrack-client (0.1.4)
14
+ i18n
15
+ json
16
+ mime-types
17
+ xml-simple (>= 1.0.13)
18
+ shoulda (2.11.3)
19
+ xml-simple (1.0.14)
20
+
21
+ PLATFORMS
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ restrack-splitter!
26
+ shoulda
@@ -1,19 +1,20 @@
1
1
  # RESTRack::Splitter
2
2
 
3
3
  A library for interacting with RESTful web services with automatic distribution across multiple nodes of a cluster.
4
- Use this to communicate with RESTRack based services.
4
+ This gem was written to communicate with RESTRack based services, although it provides a convenient API to any RESTful service.
5
5
 
6
6
 
7
7
  ## Usage
8
8
 
9
- uri = URI.new('http://localhost')
10
- client = RESTRack::Splitter.new(uri)
11
- client = RESTRack::Splitter.new('http://localhost')
12
- foo_resource = client.foo(123) # pivot object that hasn't yet made request
9
+ uri = URI.new('http://foobar-provider.example.com')
10
+ provider = RESTRack::Splitter.new(uri)
11
+ provider = RESTRack::Splitter.new('http://foobar-provider.example.com')
12
+ foo = provider.foo(123).get # request is made to GET /foo/123, foo will be an array of responses
13
+ foo_resource = provider.foo(123) # pivot object that hasn't yet made request
13
14
  foo = foo_resource.get( { :data => 'something_here' } ) # request is made to GET /foo/123, foo will be an array of responses
14
- bar = client.foo(123).bar # pivot object that hasn't yet made request
15
+ bar = provider.foo(123).bar # pivot object that hasn't yet made request
15
16
  bar.delete # request is made to DELETE /foo/123/bar from each node
16
- bar = client.foo(123).bar.post( { :data => 'something_here' } ) # request is made to POST /foo/123/bar, bar will be an array of responses
17
+ bar = provider.foo(123).bar.post( { :data => 'something_here' } ) # request is made to POST /foo/123/bar, bar will be an array of responses
17
18
 
18
19
 
19
20
  ## License
@@ -1,3 +1,3 @@
1
1
  module RESTRackSplitter
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Komodo Project File - DO NOT EDIT -->
3
+ <project id="a023bced-9834-9b46-9107-d27b3cc49215" kpf_version="5" name="restrack-splitter.komodoproject">
4
+ </project>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: restrack-splitter
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.0
5
+ version: 1.1.1
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-07-10 00:00:00 -04:00
13
+ date: 2011-07-17 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -46,13 +46,16 @@ extra_rdoc_files: []
46
46
 
47
47
  files:
48
48
  - .document
49
+ - .gitignore
49
50
  - Gemfile
51
+ - Gemfile.lock
50
52
  - LICENSE.txt
51
53
  - README.markdown
52
54
  - Rakefile
53
55
  - lib/restrack-splitter.rb
54
56
  - lib/restrack-splitter/version.rb
55
57
  - restrack-splitter.gemspec
58
+ - restrack-splitter.komodoproject
56
59
  - test/helper.rb
57
60
  - test/test_app/config.ru
58
61
  - test/test_app/config/constants.yaml