restrack-splitter 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown ADDED
@@ -0,0 +1,34 @@
1
+ # RESTRack::Splitter
2
+
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.
5
+
6
+
7
+ ## Usage
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
13
+ 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.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
+
18
+
19
+ ## License
20
+
21
+ Copyright (c) 2011 Chris St. John
22
+
23
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
24
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
25
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
26
+ persons to whom the Software is furnished to do so, subject to the following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
29
+ Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
32
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
33
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
34
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -7,6 +7,8 @@ Bundler::GemHelper.install_tasks
7
7
  task :default => [:test]
8
8
 
9
9
  desc 'Run tests.'
10
- Rake::TestTask.new('test') { |t|
10
+ Rake::TestTask.new('test') do |t|
11
+ t.libs = ['lib','.']
11
12
  t.pattern = 'test/test_*.rb'
12
- }
13
+ t.verbose = true
14
+ end
@@ -1,3 +1,3 @@
1
1
  module RESTRackSplitter
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -1,4 +1,4 @@
1
- require File.join( File.dirname(__FILE__ ), 'helper' )
1
+ require File.expand_path( File.join( File.dirname(__FILE__), 'helper' ) )
2
2
 
3
3
  class TestRestrackSplitter < Test::Unit::TestCase
4
4
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: restrack-splitter
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
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-05-18 00:00:00 -04:00
13
+ date: 2011-07-10 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -48,7 +48,7 @@ files:
48
48
  - .document
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
- - README.rdoc
51
+ - README.markdown
52
52
  - Rakefile
53
53
  - lib/restrack-splitter.rb
54
54
  - lib/restrack-splitter/version.rb
data/README.rdoc DELETED
@@ -1,19 +0,0 @@
1
- = restrack-splitter
2
-
3
- Description goes here.
4
-
5
- == Contributing to restrack-splitter
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2011 Chris St. John. See LICENSE.txt for
18
- further details.
19
-