vault-tools 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c34fc40e918e9d7811a8e047de92c99e74538f80
4
- data.tar.gz: 2372c3ffacb7d742640b5b1e8df459deca9dabbd
3
+ metadata.gz: a5bd6ea2a108d0d0d30297286bb3d8b85a45fdd7
4
+ data.tar.gz: 55b75196433b27313d41a7785d01198fe8de0c17
5
5
  SHA512:
6
- metadata.gz: 412e5b7bc95aaef367a3aed36a11ed6037b8658f79fe7ef1d86f261d866fb80b07c2c30e6c18831e22e5a41438e8c0c3b6a64a14fd7bf63cd0be9b4f761f354f
7
- data.tar.gz: 91ba34ee99ea2162afbe8b205bac425906d910123d6f34b144bc02cd5ff52f52c703517e58ddb9b334728f5df34f70aadeff3172d260234fc258ee7aaeb3520c
6
+ metadata.gz: 63f50339236da9d90a798d2ad9803a82c2db1483e1d349a9d4ee1e865b810bcc2f140735e484fb7f2254f2dfdd2ca3d926b83587d0eaee473875ded6749fee60
7
+ data.tar.gz: ac0fa2c4dde4fa761b831b36c2be3af6b2d728481793ecb341a0e2d7a4f326bce152cfc38a7768784055d2ee13e3b78d90b5414ac58d0b6f728cdcc3ab798d00
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vault-tools (0.6.4)
4
+ vault-tools (0.6.5)
5
5
  aws-sdk (~> 1.0)
6
6
  coderay
7
7
  excon
@@ -26,10 +26,9 @@ GEM
26
26
  nokogiri (~> 1)
27
27
  coderay (1.1.2)
28
28
  concurrent-ruby (1.0.5)
29
- connection_pool (2.2.1)
30
29
  dotenv (2.0.0)
31
30
  excon (0.60.0)
32
- faraday (0.14.0)
31
+ faraday (0.15.0)
33
32
  multipart-post (>= 1.2, < 3)
34
33
  fernet (2.0.rc2)
35
34
  valcro (= 0.1)
@@ -55,25 +54,19 @@ GEM
55
54
  coderay (~> 1.1.0)
56
55
  method_source (~> 0.9.0)
57
56
  rack (1.6.4)
58
- rack-protection (1.5.4)
57
+ rack-protection (1.5.5)
59
58
  rack
60
59
  rack-ssl-enforcer (0.2.9)
61
60
  rack-test (0.6.3)
62
61
  rack (>= 1.0)
63
62
  rake (10.4.2)
64
63
  rdoc (6.0.1)
65
- redis (4.0.1)
66
64
  rollbar (2.7.1)
67
65
  multi_json
68
66
  rr (1.1.2)
69
67
  scrolls (0.9.0)
70
68
  shotgun (0.9.1)
71
69
  rack (>= 1.0)
72
- sidekiq (5.1.1)
73
- concurrent-ruby (~> 1.0)
74
- connection_pool (~> 2.2, >= 2.2.0)
75
- rack-protection (>= 1.5.0)
76
- redis (>= 3.3.5, < 5)
77
70
  sinatra (1.4.8)
78
71
  rack (~> 1.5)
79
72
  rack-protection (~> 1.4)
@@ -115,7 +108,6 @@ DEPENDENCIES
115
108
  rake
116
109
  rdoc
117
110
  shotgun
118
- sidekiq
119
111
  vault-test-tools
120
112
  vault-tools!
121
113
  yard
@@ -5,7 +5,7 @@ module Vault
5
5
  ZIPKIN_API_HOST_STAGING = 'https://zipkin-staging.heroku.tools'.freeze
6
6
 
7
7
  # Injects the zipkin middleware into the Web class, add Zipkin middleware to
8
- # Excon, and adds Zipkin middleware to Sidekiq.
8
+ # Excon.
9
9
  #
10
10
  # @example
11
11
  # Vault::Tracing.configure
@@ -17,7 +17,6 @@ module Vault
17
17
  Vault::Web.instance_eval { require 'zipkin-tracer' }
18
18
  Vault::Web.use ZipkinTracer::RackHandler, config
19
19
  setup_excon
20
- setup_sidekiq
21
20
  end
22
21
 
23
22
  # Traces a local component. Useful to track down long running implementation
@@ -78,30 +77,6 @@ module Vault
78
77
  end
79
78
  private_class_method :setup_excon
80
79
 
81
- # Adds our SidekiqClient and SidekiqServer middlware to Sidekiq
82
- #
83
- # @private
84
- #
85
- # @return nil
86
- def self.setup_sidekiq(sidekiq = Sidekiq)
87
- return unless defined?(sidekiq)
88
- sidekiq.configure_client do |config|
89
- config.client_middleware do |chain|
90
- chain.add Vault::Tracing::SidekiqClient
91
- end
92
- end
93
-
94
- sidekiq.configure_server do |config|
95
- config.client_middleware do |chain|
96
- chain.add Vault::Tracing::SidekiqClient
97
- end
98
- config.server_middleware do |chain|
99
- chain.add Vault::Tracing::SidekiqServer, Vault::Tracing.config
100
- end
101
- end
102
- end
103
- private_class_method :setup_excon
104
-
105
80
  # Checks to see if Excon is defined and if the Zipkin middleware has already
106
81
  # been inserted.
107
82
  #
@@ -1,5 +1,5 @@
1
1
  module Vault
2
2
  module Tools
3
- VERSION = '0.6.4'
3
+ VERSION = '0.6.5'
4
4
  end
5
5
  end
data/test/tracing_test.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'helper'
2
- require 'sidekiq'
3
2
 
4
3
  class TracingTest < Vault::TestCase
5
4
  # Anonymous Web Frontend
@@ -56,22 +55,11 @@ class TracingTest < Vault::TestCase
56
55
  end
57
56
 
58
57
  def test_excon
59
- enable
60
58
  Vault::Tracing.configure
61
59
  assert Excon.defaults[:middlewares].include?(ZipkinTracer::ExconHandler),
62
60
  "Vault::Tracing.setup_excon should add ZipkinTracer::ExconHandler to excon's middleware"
63
61
  end
64
62
 
65
- def test_sidekiq
66
- enable
67
- sidekiq_mock = Minitest::Mock.new
68
- sidekiq_mock.expect :configure_server, true
69
- sidekiq_mock.expect :configure_client, true
70
- Vault::Tracing.setup_sidekiq(sidekiq_mock)
71
- assert sidekiq_mock.verify,
72
- 'Vault::Tracing.setup_sidekiq should call ::configure_server, and ::configure_client on Sidekiq'
73
- end
74
-
75
63
  def test_enabled_true
76
64
  assert Vault::Tracing.enabled?,
77
65
  'Vault::Tracing.enabled? should return true when enabled'
data/vault-tools.gemspec CHANGED
@@ -33,6 +33,5 @@ Gem::Specification.new do |gem|
33
33
  gem.add_development_dependency 'dotenv'
34
34
  gem.add_development_dependency 'pry'
35
35
  gem.add_development_dependency 'rdoc'
36
- gem.add_development_dependency 'sidekiq'
37
36
  gem.add_development_dependency 'yard'
38
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vault-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Continanza
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-20 00:00:00.000000000 Z
12
+ date: 2018-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: scrolls
@@ -221,20 +221,6 @@ dependencies:
221
221
  - - ">="
222
222
  - !ruby/object:Gem::Version
223
223
  version: '0'
224
- - !ruby/object:Gem::Dependency
225
- name: sidekiq
226
- requirement: !ruby/object:Gem::Requirement
227
- requirements:
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- version: '0'
231
- type: :development
232
- prerelease: false
233
- version_requirements: !ruby/object:Gem::Requirement
234
- requirements:
235
- - - ">="
236
- - !ruby/object:Gem::Version
237
- version: '0'
238
224
  - !ruby/object:Gem::Dependency
239
225
  name: yard
240
226
  requirement: !ruby/object:Gem::Requirement
@@ -329,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
315
  version: '0'
330
316
  requirements: []
331
317
  rubyforge_project:
332
- rubygems_version: 2.5.2.1
318
+ rubygems_version: 2.5.2.3
333
319
  signing_key:
334
320
  specification_version: 4
335
321
  summary: Test classes, base web classes, and helpers - oh my!