restrack-balancer 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -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
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ restrack-balancer (1.0.0)
5
+ restrack-client
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ i18n (0.6.0)
11
+ json (1.5.3)
12
+ mime-types (1.16)
13
+ restrack-client (1.0.0)
14
+ i18n
15
+ json
16
+ mime-types
17
+ xml-simple (>= 1.0.13)
18
+ shoulda (2.11.3)
19
+ xml-simple (1.1.0)
20
+
21
+ PLATFORMS
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ restrack-balancer!
26
+ shoulda
data/README.markdown CHANGED
@@ -1,19 +1,20 @@
1
1
  # RESTRack::Balancer
2
2
 
3
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.
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::Balancer.new(uri)
11
- client = RESTRack::Balancer.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::Balancer.new(uri)
11
+ provider = RESTRack::Balancer.new('http://foobar-provider.example.com')
12
+ foo = provider.foo(123).get # request is made to GET /foo/123
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
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
16
- bar = client.foo(123).bar.post( { :data => 'something_here' } ) # request is made to POST /foo/123/bar
17
+ bar = provider.foo(123).bar.post( { :data => 'something_here' } ) # request is made to POST /foo/123/bar
17
18
 
18
19
 
19
20
  ## License
@@ -1,3 +1,3 @@
1
1
  module RESTRackBalancer
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="0d3dbbc0-1109-2845-b2c8-9aa523c56e81" kpf_version="5" name="restrack-balancer.komodoproject">
4
+ </project>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: restrack-balancer
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-balancer.rb
54
56
  - lib/restrack-balancer/version.rb
55
57
  - restrack-balancer.gemspec
58
+ - restrack-balancer.komodoproject
56
59
  - test/helper.rb
57
60
  - test/test_app/config.ru
58
61
  - test/test_app/config/constants.yaml