flipper 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +8 -0
- data/Gemfile +2 -1
- data/lib/flipper.rb +8 -8
- data/lib/flipper/adapter.rb +31 -19
- data/lib/flipper/adapters/memory.rb +15 -6
- data/lib/flipper/adapters/operation_logger.rb +57 -0
- data/lib/flipper/dsl.rb +12 -6
- data/lib/flipper/feature.rb +18 -7
- data/lib/flipper/gate.rb +2 -7
- data/lib/flipper/gates/percentage_of_actors.rb +3 -1
- data/lib/flipper/key.rb +19 -0
- data/lib/flipper/registry.rb +2 -0
- data/lib/flipper/spec/shared_adapter_specs.rb +24 -29
- data/lib/flipper/toggle.rb +8 -2
- data/lib/flipper/toggles/boolean.rb +6 -6
- data/lib/flipper/toggles/set.rb +4 -2
- data/lib/flipper/toggles/value.rb +4 -2
- data/lib/flipper/type.rb +1 -5
- data/lib/flipper/types/actor.rb +1 -6
- data/lib/flipper/types/boolean.rb +1 -5
- data/lib/flipper/types/group.rb +1 -3
- data/lib/flipper/types/percentage.rb +3 -6
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/adapter_spec.rb +46 -2
- data/spec/flipper/adapters/memoized_spec.rb +2 -2
- data/spec/flipper/adapters/memory_spec.rb +2 -2
- data/spec/flipper/dsl_spec.rb +32 -18
- data/spec/flipper/feature_spec.rb +6 -392
- data/spec/flipper/key_spec.rb +17 -0
- data/spec/flipper/middleware/local_cache_spec.rb +18 -30
- data/spec/flipper/registry_spec.rb +4 -4
- data/spec/flipper/types/actor_spec.rb +3 -14
- data/spec/flipper/types/percentage_spec.rb +21 -0
- data/spec/integration_spec.rb +455 -0
- metadata +12 -5
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flipper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Feature flipper for any adapter
|
15
15
|
email:
|
@@ -19,6 +19,7 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- .gitignore
|
22
|
+
- .travis.yml
|
22
23
|
- Gemfile
|
23
24
|
- Guardfile
|
24
25
|
- LICENSE
|
@@ -36,6 +37,7 @@ files:
|
|
36
37
|
- lib/flipper/adapter.rb
|
37
38
|
- lib/flipper/adapters/memoized.rb
|
38
39
|
- lib/flipper/adapters/memory.rb
|
40
|
+
- lib/flipper/adapters/operation_logger.rb
|
39
41
|
- lib/flipper/dsl.rb
|
40
42
|
- lib/flipper/errors.rb
|
41
43
|
- lib/flipper/feature.rb
|
@@ -45,6 +47,7 @@ files:
|
|
45
47
|
- lib/flipper/gates/group.rb
|
46
48
|
- lib/flipper/gates/percentage_of_actors.rb
|
47
49
|
- lib/flipper/gates/percentage_of_random.rb
|
50
|
+
- lib/flipper/key.rb
|
48
51
|
- lib/flipper/middleware/local_cache.rb
|
49
52
|
- lib/flipper/registry.rb
|
50
53
|
- lib/flipper/spec/shared_adapter_specs.rb
|
@@ -65,6 +68,7 @@ files:
|
|
65
68
|
- spec/flipper/adapters/memory_spec.rb
|
66
69
|
- spec/flipper/dsl_spec.rb
|
67
70
|
- spec/flipper/feature_spec.rb
|
71
|
+
- spec/flipper/key_spec.rb
|
68
72
|
- spec/flipper/middleware/local_cache_spec.rb
|
69
73
|
- spec/flipper/registry_spec.rb
|
70
74
|
- spec/flipper/types/actor_spec.rb
|
@@ -75,6 +79,7 @@ files:
|
|
75
79
|
- spec/flipper/types/percentage_spec.rb
|
76
80
|
- spec/flipper_spec.rb
|
77
81
|
- spec/helper.rb
|
82
|
+
- spec/integration_spec.rb
|
78
83
|
homepage: http://jnunemaker.github.com/flipper
|
79
84
|
licenses: []
|
80
85
|
post_install_message:
|
@@ -89,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
94
|
version: '0'
|
90
95
|
segments:
|
91
96
|
- 0
|
92
|
-
hash:
|
97
|
+
hash: 505989874497348978
|
93
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
99
|
none: false
|
95
100
|
requirements:
|
@@ -98,10 +103,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
103
|
version: '0'
|
99
104
|
segments:
|
100
105
|
- 0
|
101
|
-
hash:
|
106
|
+
hash: 505989874497348978
|
102
107
|
requirements: []
|
103
108
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.8.
|
109
|
+
rubygems_version: 1.8.23
|
105
110
|
signing_key:
|
106
111
|
specification_version: 3
|
107
112
|
summary: Feature flipper for any adapter
|
@@ -111,6 +116,7 @@ test_files:
|
|
111
116
|
- spec/flipper/adapters/memory_spec.rb
|
112
117
|
- spec/flipper/dsl_spec.rb
|
113
118
|
- spec/flipper/feature_spec.rb
|
119
|
+
- spec/flipper/key_spec.rb
|
114
120
|
- spec/flipper/middleware/local_cache_spec.rb
|
115
121
|
- spec/flipper/registry_spec.rb
|
116
122
|
- spec/flipper/types/actor_spec.rb
|
@@ -121,3 +127,4 @@ test_files:
|
|
121
127
|
- spec/flipper/types/percentage_spec.rb
|
122
128
|
- spec/flipper_spec.rb
|
123
129
|
- spec/helper.rb
|
130
|
+
- spec/integration_spec.rb
|