flagship 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +4 -2
- data/lib/flagship.rb +12 -0
- data/lib/flagship/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43826b370e73a8ae802845d392ce56da04d8bf08
|
4
|
+
data.tar.gz: 355a8a7542f37584203e500ab70e8904a21e7803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 760db6f34f3ecb8318f4a264c95aff3d9a8417869fb49ab5e3bbe092b9485caf6e5cf31de257b19aaeae84e055b2c2b4879c4de25eb067f5ae61fcbc6854fbcb
|
7
|
+
data.tar.gz: 49bd1b50efd688cac93dcce575951544400bbf80e61e425e2d840d402874a0251efb9b98b1f905cab07827e48b7cbf97f2328fe74d2ca9b6c65878c13cca5861
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -229,11 +229,13 @@ You can do it by configuring like below:
|
|
229
229
|
```rb
|
230
230
|
RSpec.configure do |config|
|
231
231
|
config.before(:suite) do
|
232
|
-
Flagship.
|
232
|
+
Flagship.clear_context
|
233
|
+
Flagship.clear_current_flagset
|
233
234
|
end
|
234
235
|
|
235
236
|
config.after(:each) do
|
236
|
-
Flagship.
|
237
|
+
Flagship.clear_context
|
238
|
+
Flagship.clear_current_flagset
|
237
239
|
end
|
238
240
|
end
|
239
241
|
```
|
data/lib/flagship.rb
CHANGED
@@ -59,8 +59,20 @@ module Flagship
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def clear_state
|
62
|
+
clear_flagsets_container
|
63
|
+
clear_current_flagset
|
64
|
+
clear_context
|
65
|
+
end
|
66
|
+
|
67
|
+
def clear_flagsets_container
|
62
68
|
@default_flagsts_container = nil
|
69
|
+
end
|
70
|
+
|
71
|
+
def clear_current_flagset
|
63
72
|
@current_flagset = nil
|
73
|
+
end
|
74
|
+
|
75
|
+
def clear_context
|
64
76
|
@default_context && @default_context.clear
|
65
77
|
end
|
66
78
|
end
|
data/lib/flagship/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flagship
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuya Takeyama
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|