thrift_client 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.4.7 fix thrift gem dependency
2
+
1
3
  v0.4.6 Add support for oneway methods.
2
4
 
3
5
  v0.4.5. Fix broken retries.
data/README.rdoc CHANGED
@@ -30,6 +30,16 @@ You can then make calls to the server via the <tt>client</tt> instance as if was
30
30
 
31
31
  On failures, the client will try the remaining servers in the list before giving up. See ThriftClient for more.
32
32
 
33
+ == Timeouts
34
+
35
+ Timeouts are enforced per-try, so if you have a timeout of n and do m retries, the total time it could take is n*m.
36
+
37
+ == Connection Handling
38
+
39
+ The library will shuffle the host list then work its way down this list, only moving to the next host if it received an error or you've doing more than server_max_requests requests with that host (defaults to 0 which means there's no limit).
40
+
41
+ Servers that throw an error get marked as dead and will only be retried every server_retry_period seconds (at that time all dead servers are retried, no matter long they've been marked as dead).
42
+
33
43
  == Installation
34
44
 
35
45
  You need Ruby 1.8 or 1.9. If you have those, just run:
data/Rakefile CHANGED
@@ -3,11 +3,11 @@ require 'rubygems'
3
3
  require 'echoe'
4
4
 
5
5
  Echoe.new("thrift_client") do |p|
6
- p.author = "Evan Weaver"
6
+ p.author = ["Evan Weaver", "Ryan King", "Jeff Hodges"]
7
7
  p.project = "fauna"
8
8
  p.summary = "A Thrift client wrapper that encapsulates some common failover behavior."
9
9
  p.rubygems_version = ">= 0.8"
10
- p.dependencies = ['thrift']
10
+ p.dependencies = ['thrift ~>0.2.0']
11
11
  p.ignore_pattern = /^(vendor\/thrift)/
12
12
  p.rdoc_pattern = /^(lib|bin|tasks|ext)|^README|^CHANGELOG|^TODO|^LICENSE|^COPYING$/
13
13
  p.url = "http://blog.evanweaver.com/files/doc/fauna/thrift_client/"
@@ -2,12 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{thrift_client}
5
- s.version = "0.4.6"
5
+ s.version = "0.4.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0.8") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Evan Weaver"]
9
- s.cert_chain = ["/Users/ryan/.gemkeys/gem-public_cert.pem"]
10
- s.date = %q{2010-08-02}
8
+ s.authors = ["Evan Weaver, Ryan King, Jeff Hodges"]
9
+ s.date = %q{2010-09-22}
11
10
  s.description = %q{A Thrift client wrapper that encapsulates some common failover behavior.}
12
11
  s.email = %q{}
13
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.rdoc", "lib/thrift_client.rb", "lib/thrift_client/abstract_thrift_client.rb", "lib/thrift_client/connection.rb", "lib/thrift_client/connection/base.rb", "lib/thrift_client/connection/factory.rb", "lib/thrift_client/connection/http.rb", "lib/thrift_client/connection/socket.rb", "lib/thrift_client/event_machine.rb", "lib/thrift_client/simple.rb", "lib/thrift_client/thrift.rb"]
@@ -17,7 +16,6 @@ Gem::Specification.new do |s|
17
16
  s.require_paths = ["lib"]
18
17
  s.rubyforge_project = %q{fauna}
19
18
  s.rubygems_version = %q{1.3.7}
20
- s.signing_key = %q{/Users/ryan/.gemkeys/gem-private_key.pem}
21
19
  s.summary = %q{A Thrift client wrapper that encapsulates some common failover behavior.}
22
20
  s.test_files = ["test/multiple_working_servers_test.rb", "test/simple_test.rb", "test/test_helper.rb", "test/thrift_client_http_test.rb", "test/thrift_client_test.rb"]
23
21
 
@@ -26,11 +24,11 @@ Gem::Specification.new do |s|
26
24
  s.specification_version = 3
27
25
 
28
26
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
29
- s.add_runtime_dependency(%q<thrift>, [">= 0"])
27
+ s.add_runtime_dependency(%q<thrift>, ["~> 0.2.0"])
30
28
  else
31
- s.add_dependency(%q<thrift>, [">= 0"])
29
+ s.add_dependency(%q<thrift>, ["~> 0.2.0"])
32
30
  end
33
31
  else
34
- s.add_dependency(%q<thrift>, [">= 0"])
32
+ s.add_dependency(%q<thrift>, ["~> 0.2.0"])
35
33
  end
36
34
  end
metadata CHANGED
@@ -1,42 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thrift_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 6
10
- version: 0.4.6
9
+ - 7
10
+ version: 0.4.7
11
11
  platform: ruby
12
12
  authors:
13
- - Evan Weaver
13
+ - Evan Weaver, Ryan King, Jeff Hodges
14
14
  autorequire:
15
15
  bindir: bin
16
- cert_chain:
17
- - |
18
- -----BEGIN CERTIFICATE-----
19
- MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMQ0wCwYDVQQDDARyeWFu
20
- MRswGQYKCZImiZPyLGQBGRYLdGhlcnlhbmtpbmcxEzARBgoJkiaJk/IsZAEZFgNj
21
- b20wHhcNMTAwMTA4MTc1MDM0WhcNMTEwMTA4MTc1MDM0WjBBMQ0wCwYDVQQDDARy
22
- eWFuMRswGQYKCZImiZPyLGQBGRYLdGhlcnlhbmtpbmcxEzARBgoJkiaJk/IsZAEZ
23
- FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLPp+0PtRT3qCI
24
- 02sMsADSn7Uf1GpyXUtk4Fb94LqUO6Scl91YDmbFMpjzrQwQvBYMIVreWcwSish6
25
- nip6WEk9lqXcOeDmex/qY2/FVXG8ffqjFHiNiN9vpWrWj5VMICequ+ftzWLKsPIS
26
- DGJ4o+Z6wEYRuirgaRPCYAUDPglsaqctJ56wPuycryMe5+ApSkOS9iLWMprQKEAq
27
- j2R2OBV0dSARdbtzuKwrP7sLDo7uPa0egFBUlcZ+nujGr4LvmpryB8scNRNmZK1w
28
- 1rEI7O06CbULj08qYxEhnKmFE7LbBoN/HrmvZLVQK5mWuiZQhtmJuhBfStJsaDux
29
- 5tBEkYZVAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
30
- BBSnLarDEo5eBE2arSMrBdOOhtrnPTANBgkqhkiG9w0BAQUFAAOCAQEANER07s4K
31
- Pvc1DSduliRDMUax/VSfLzDTtTAQwuSAPDrWAYXKugcJtOZOXjDbGL7c5zoWmy9u
32
- Fn5vEVdm/93J+84D/IMaaof3BwX/NNEYH01CeZEIGMfc5AFFha7dabzP/uiPpb/c
33
- GSvomC9IzyN37+eWwOS16cC+5XnBT6KRCaXYg2Fh6WpTgde67OVgXr4Q58HXlaZ+
34
- /2BB3wq9lZ4JskvlpYpYnlPAUyiyc6R2Mjts1pURz5nkW4SuS7Kd1KCOOyr1McDH
35
- VP12sTSjJclmI17BjDGQpAF0n9v5ExhJxWpeOjeBUPQsOin3ypEM1KkckLmOKvH6
36
- zyKMYVRO0z/58g==
37
- -----END CERTIFICATE-----
16
+ cert_chain: []
38
17
 
39
- date: 2010-08-02 00:00:00 -07:00
18
+ date: 2010-09-22 00:00:00 -07:00
40
19
  default_executable:
41
20
  dependencies:
42
21
  - !ruby/object:Gem::Dependency
@@ -45,12 +24,14 @@ dependencies:
45
24
  requirement: &id001 !ruby/object:Gem::Requirement
46
25
  none: false
47
26
  requirements:
48
- - - ">="
27
+ - - ~>
49
28
  - !ruby/object:Gem::Version
50
- hash: 3
29
+ hash: 23
51
30
  segments:
52
31
  - 0
53
- version: "0"
32
+ - 2
33
+ - 0
34
+ version: 0.2.0
54
35
  type: :runtime
55
36
  version_requirements: *id001
56
37
  description: A Thrift client wrapper that encapsulates some common failover behavior.
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file