ftw 0.0.37 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -13
  2. data/lib/ftw/agent.rb +15 -3
  3. data/lib/ftw/version.rb +1 -1
  4. metadata +36 -35
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NDc2MTQ2MWMwNTk2YWFkYjRlNWM1OWJmZjVjM2RkZmQyNGIzYzBjZQ==
5
- data.tar.gz: !binary |-
6
- MTcxOWNjZWM5MGQ5OWU4ODY1MmU2MDQ4YmEzNTgwMTI1Mjk3NDRlYg==
2
+ SHA1:
3
+ metadata.gz: 5a801849ec09f08f8610e1ce8553dfe7d890c818
4
+ data.tar.gz: 112a9f22c9403582ca7c56b856a8516d1f6aca81
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZGM5N2UwZjlhZTIzMWZhMjZmOTlkMmE2NDY4MTczNTMwMThlZjY3MGZjNzc4
10
- MTAyNDY3YTJhOTZiNDQwNDc1NjA5MmI2YmVhN2ExNzFlYTE5OWUwODVmZGIy
11
- MzE1ZjQwZDQzOWE0NDQ5ZGUyZjhlNzg2YWJjNDY0YTU5N2Y1MWE=
12
- data.tar.gz: !binary |-
13
- NDllOTg3NjU1OGVhN2ZmMjhjOGNlYzg3OGY1MDdmYzhmYTU0MGZlODllMjcx
14
- ZTkzMTRjZWQ3ZGUxMDFiZGU4NTc5N2I0MDk1ZjIzMWZmNDJiYjBmOGMyZjg0
15
- NmFjZmYwNjk5ZjI4ODZhNzIwNDVkNGY1MmZhYzNjMDQ2Njk2YTQ=
6
+ metadata.gz: 9d00c8697d9a3d0323acbddf0ce6de86908e7d08f5a56752d0550200d4e01a3b337fd8fceba7f02308605783aa413bd1b151bbbd4af8feb6fcc6802cd444581f
7
+ data.tar.gz: 3a5dbe0064a876cd42b3be592fd5eedb9249cd5ce7acb1df696874575c00416de6256b78277600ef07d3aaf4eb12ca1d1d3d761ce7767d09b233bdcd31388d22
@@ -63,14 +63,26 @@ class FTW::Agent
63
63
 
64
64
  configuration[REDIRECTION_LIMIT] = 20
65
65
 
66
+ need_ssl_ca_certs = true
67
+
66
68
  @certificate_store = OpenSSL::X509::Store.new
67
69
  if File.readable?(OpenSSL::X509::DEFAULT_CERT_FILE)
68
70
  @logger.debug("Adding default certificate file",
69
71
  :path => OpenSSL::X509::DEFAULT_CERT_FILE)
70
- @certificate_store.add_file(OpenSSL::X509::DEFAULT_CERT_FILE)
71
- else
72
+ begin
73
+ @certificate_store.add_file(OpenSSL::X509::DEFAULT_CERT_FILE)
74
+ need_ssl_ca_certs = false
75
+ rescue OpenSSL::X509::StoreError => e
76
+ # Work around jruby#1055 "Duplicate extensions not allowed"
77
+ @logger.warn("Failure loading #{OpenSSL::X509::DEFAULT_CERT_FILE}. " \
78
+ "Will try another cacert source.")
79
+ end
80
+ end
81
+
82
+ if need_ssl_ca_certs
72
83
  # Use some better defaults from http://curl.haxx.se/docs/caextract.html
73
- @logger.info("Using upstream ssl certs, possibly untrusty.")
84
+ # Can we trust curl's CA list? Global ssl trust is a tragic joke, anyway :\
85
+ @logger.info("Using upstream ssl ca certs from curl. Possibly untrustworthy.")
74
86
  default_ca = File.join(File.dirname(__FILE__), "cacert.pem")
75
87
 
76
88
  # JRUBY-6870 - strip 'jar:' prefix if it is present.
@@ -3,5 +3,5 @@ require "ftw/namespace"
3
3
  # :nodoc:
4
4
  module FTW
5
5
  # The version of this library
6
- VERSION = "0.0.37"
6
+ VERSION = "0.0.38"
7
7
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Sissel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-05 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cabin
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>'
17
+ - - '>'
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>'
24
+ - - '>'
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
@@ -42,42 +42,42 @@ dependencies:
42
42
  name: addressable
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: backports
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.6.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.6.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>'
73
+ - - '>'
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>'
80
+ - - '>'
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: For The Web. Trying to build a solid and sane API for client and server
@@ -88,41 +88,41 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - lib/rack/handler/ftw.rb
92
- - lib/ftw/dns.rb
93
- - lib/ftw/dns/dns.rb
94
- - lib/ftw/dns/hash.rb
95
- - lib/ftw/agent.rb
96
91
  - lib/ftw/agent/configuration.rb
97
- - lib/ftw/singleton.rb
98
- - lib/ftw/websocket.rb
92
+ - lib/ftw/agent.rb
93
+ - lib/ftw/cacert.pem
99
94
  - lib/ftw/connection.rb
95
+ - lib/ftw/cookies.rb
96
+ - lib/ftw/crlf.rb
97
+ - lib/ftw/dns/dns.rb
98
+ - lib/ftw/dns/hash.rb
99
+ - lib/ftw/dns.rb
100
100
  - lib/ftw/http/headers.rb
101
101
  - lib/ftw/http/message.rb
102
+ - lib/ftw/namespace.rb
103
+ - lib/ftw/pool.rb
102
104
  - lib/ftw/poolable.rb
103
- - lib/ftw/server.rb
104
- - lib/ftw/response.rb
105
105
  - lib/ftw/protocol.rb
106
- - lib/ftw/cacert.pem
107
- - lib/ftw/version.rb
108
- - lib/ftw/namespace.rb
109
106
  - lib/ftw/request.rb
110
- - lib/ftw/crlf.rb
111
- - lib/ftw/pool.rb
107
+ - lib/ftw/response.rb
108
+ - lib/ftw/server.rb
109
+ - lib/ftw/singleton.rb
110
+ - lib/ftw/version.rb
112
111
  - lib/ftw/webserver.rb
113
- - lib/ftw/websocket/writer.rb
114
- - lib/ftw/websocket/rack.rb
115
- - lib/ftw/websocket/parser.rb
116
112
  - lib/ftw/websocket/constants.rb
117
- - lib/ftw/cookies.rb
113
+ - lib/ftw/websocket/parser.rb
114
+ - lib/ftw/websocket/rack.rb
115
+ - lib/ftw/websocket/writer.rb
116
+ - lib/ftw/websocket.rb
118
117
  - lib/ftw.rb
119
- - test/testing.rb
118
+ - lib/rack/handler/ftw.rb
120
119
  - test/all.rb
121
- - test/ftw/singleton.rb
120
+ - test/docs.rb
121
+ - test/ftw/crlf.rb
122
122
  - test/ftw/http/dns.rb
123
123
  - test/ftw/http/headers.rb
124
- - test/ftw/crlf.rb
125
- - test/docs.rb
124
+ - test/ftw/singleton.rb
125
+ - test/testing.rb
126
126
  - README.md
127
127
  homepage: http://github.com/jordansissel/ruby-ftw
128
128
  licenses:
@@ -135,19 +135,20 @@ require_paths:
135
135
  - lib
136
136
  required_ruby_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ! '>='
138
+ - - '>='
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ! '>='
143
+ - - '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.1.10
148
+ rubygems_version: 2.1.11
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: For The Web. Trying to build a solid and sane API for client and server web
152
152
  stuff. Client and Server operations for HTTP, WebSockets, SPDY, etc.
153
153
  test_files: []
154
+ has_rdoc: