restrack-balancer 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 +34 -0
- data/Rakefile +5 -2
- data/lib/restrack-balancer/version.rb +1 -1
- data/test/test_restrack-balancer.rb +1 -1
- data/test/test_restrack-balancer_requests.rb +1 -1
- metadata +3 -3
- data/README.rdoc +0 -19
data/README.markdown
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# RESTRack::Balancer
|
2
|
+
|
3
|
+
A library for interacting with RESTful web services with automatic load balancing across 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::Balancer.new(uri)
|
11
|
+
client = RESTRack::Balancer.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
|
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
|
16
|
+
bar = client.foo(123).bar.post( { :data => 'something_here' } ) # request is made to POST /foo/123/bar
|
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
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: restrack-balancer
|
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
|
@@ -48,7 +48,7 @@ files:
|
|
48
48
|
- .document
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE.txt
|
51
|
-
- README.
|
51
|
+
- README.markdown
|
52
52
|
- Rakefile
|
53
53
|
- lib/restrack-balancer.rb
|
54
54
|
- lib/restrack-balancer/version.rb
|
data/README.rdoc
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
= restrack-balancer
|
2
|
-
|
3
|
-
Description goes here.
|
4
|
-
|
5
|
-
== Contributing to restrack-balancer
|
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
|
-
|