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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 556082102efa5bcacc1d965b6255d0023e16078e
4
- data.tar.gz: c7f253ce7312a0cdbbc70a80516eaabd3ee9ecaa
3
+ metadata.gz: 43826b370e73a8ae802845d392ce56da04d8bf08
4
+ data.tar.gz: 355a8a7542f37584203e500ab70e8904a21e7803
5
5
  SHA512:
6
- metadata.gz: d9819f0aeee1e3ee35841cfd0a4e6451c67ce96534e6a31960f32440d56499a42e7a128b81a24864672343c2632d9bc7992924ca2be56bd755047383f3dc1da1
7
- data.tar.gz: 0d0b6451bd8a3daf4335f761aa879fd1e62eda735e9ddd93963707ee3e58a851e540167300513c32ca4aa023847be1d56fa44e5a7549493008fcc83d59fa18a9
6
+ metadata.gz: 760db6f34f3ecb8318f4a264c95aff3d9a8417869fb49ab5e3bbe092b9485caf6e5cf31de257b19aaeae84e055b2c2b4879c4de25eb067f5ae61fcbc6854fbcb
7
+ data.tar.gz: 49bd1b50efd688cac93dcce575951544400bbf80e61e425e2d840d402874a0251efb9b98b1f905cab07827e48b7cbf97f2328fe74d2ca9b6c65878c13cca5861
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.6.1] - 2017-05-17
4
+
5
+ ### Added
6
+
7
+ - Add separated methods to clear state [#30](https://github.com/yuya-takeyama/flagship/pull/30)
8
+
3
9
  ## [0.6.0] - 2017-05-15
4
10
 
5
11
  ### Added
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.clear_state
232
+ Flagship.clear_context
233
+ Flagship.clear_current_flagset
233
234
  end
234
235
 
235
236
  config.after(:each) do
236
- Flagship.clear_state
237
+ Flagship.clear_context
238
+ Flagship.clear_current_flagset
237
239
  end
238
240
  end
239
241
  ```
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Flagship
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler