vault-tools 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,5 +47,9 @@ module Vault
47
47
  def int(key)
48
48
  env(key) ? env(key).to_i : nil
49
49
  end
50
+
51
+ def sidekiq_concurrency
52
+ int('SIDEKIQ_CONCURRENCY') || 25
53
+ end
50
54
  end
51
55
  end
@@ -1,5 +1,5 @@
1
1
  module Vault
2
2
  module Tools
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
4
4
  end
5
5
  end
@@ -83,4 +83,10 @@ class ConfigTest < Vault::TestCase
83
83
  assert_equal('postgres:///foo', Vault::Config.remote_env('app', 'DATABASE_URL'))
84
84
  end
85
85
  end
86
+
87
+ def test_sidekiq_concurrency
88
+ assert_equal(25, Vault::Config.sidekiq_concurrency)
89
+ set_env 'SIDEKIQ_CONCURRENCY', '10'
90
+ assert_equal(10, Vault::Config.sidekiq_concurrency)
91
+ end
86
92
  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.3.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  segments:
147
147
  - 0
148
- hash: 3761789110019069070
148
+ hash: -1998156247547436760
149
149
  required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  segments:
156
156
  - 0
157
- hash: 3761789110019069070
157
+ hash: -1998156247547436760
158
158
  requirements: []
159
159
  rubyforge_project:
160
160
  rubygems_version: 1.8.23