feature_switches 0.2.0 → 0.2.1

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: ef07bad4705d60fcc441c0a2964525369464ca8a
4
- data.tar.gz: 0613e9277ad7cbcc269b64847ad923050402c0d6
3
+ metadata.gz: bf7bd72bf81c89efa48587978d4d0301c66cf0be
4
+ data.tar.gz: 0aa4fdd5de384ce10688ed836339102dbe8967ff
5
5
  SHA512:
6
- metadata.gz: 534fddb4b93385a0b35a97a617fa052acf0c062babbea1eb322d0e8ab640eae8883f972acc5a1e6bfd4b0848248498ac21a646398fba4ee771f22d84ab65e80f
7
- data.tar.gz: ad3bfa86fde5d978ca72ffcb1bd2c2ceb4bfefea28b3badc894db829c485eca6aa95eace50ccb126db83adf51bcf62756877639833d90161a60cd23a0ffc107a
6
+ metadata.gz: 5296663b6f922ceebaafa2f1b900e4af8ecc11b004be9a0c5c78c86dbafa77506bfa3e414f81baa73b764325dda23e889c8c1b4412fab3240ca9a6e652e164ef
7
+ data.tar.gz: 212a7acfea4090789acd93d024003b496e3864e0ebf7afd4737d7234e0e63005ff4f4344b982a8658f5529309f8e9af3e82eb630820b9a7e19701cb6e9fbc374
@@ -17,9 +17,6 @@ require "switches/feature"
17
17
  require "switches/percentage"
18
18
  require "switches/update"
19
19
  require "switches/backend"
20
- require "switches/backends/redis"
21
- require "switches/backends/memory"
22
- require "switches/backends/postgres"
23
20
 
24
21
  Thread.abort_on_exception = true
25
22
 
@@ -4,10 +4,13 @@ module Switches
4
4
  uri = URI(url)
5
5
 
6
6
  if uri.scheme == "redis"
7
+ require "switches/backends/redis"
7
8
  Backends::Redis.new(uri, instance)
8
9
  elsif uri.scheme == "postgres"
10
+ require "switches/backends/postgres"
9
11
  Backends::Postgres.new(uri, instance)
10
12
  else
13
+ require "switches/backends/memory"
11
14
  Backends::Memory.new(uri, instance)
12
15
  end
13
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feature_switches
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Pignata
@@ -10,20 +10,34 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2013-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: multi_json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 1.7.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 1.7.2
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rspec
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - '>='
31
+ - - ~>
18
32
  - !ruby/object:Gem::Version
19
- version: '0'
33
+ version: 2.13.0
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - '>='
38
+ - - ~>
25
39
  - !ruby/object:Gem::Version
26
- version: '0'
40
+ version: 2.13.0
27
41
  description: Feature switches for applications that run on multiple nodes that uses
28
42
  a not-very-chatty protocol
29
43
  email: