flip_fab 1.0.0 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +5 -5
  2. data/.github/dependabot.yml +18 -0
  3. data/.github/workflows/dobby-actions.yml +29 -0
  4. data/.github/workflows/gem-publish.yml +46 -0
  5. data/.github/workflows/version-forget-me-not.yml +19 -0
  6. data/.gitignore +2 -0
  7. data/.rubocop.yml +31 -0
  8. data/.rubocop_todo.yml +58 -0
  9. data/.ruby-version +1 -0
  10. data/.semaphore/semaphore.yml +49 -0
  11. data/CODEOWNERS +3 -0
  12. data/Gemfile +0 -12
  13. data/README.md +8 -2
  14. data/_pipeline/step_build_gem.sh +5 -0
  15. data/_pipeline/step_test_gem.sh +6 -0
  16. data/catalog-info.yaml +8 -0
  17. data/example/rails_app/Gemfile +4 -21
  18. data/example/rails_app/Rakefile +1 -1
  19. data/example/rails_app/app/assets/config/manifest.js +3 -0
  20. data/example/rails_app/app/assets/javascripts/application.js +0 -1
  21. data/example/rails_app/app/controllers/beavers_controller.rb +12 -13
  22. data/example/rails_app/bin/bundle +1 -1
  23. data/example/rails_app/bin/rails +1 -1
  24. data/example/rails_app/config/application.rb +2 -2
  25. data/example/rails_app/config/boot.rb +1 -1
  26. data/example/rails_app/config/environment.rb +1 -1
  27. data/example/rails_app/config/environments/development.rb +1 -1
  28. data/example/rails_app/config/environments/test.rb +2 -2
  29. data/example/rails_app/config/initializers/cookies_serializer.rb +1 -1
  30. data/example/rails_app/config.ru +1 -1
  31. data/example/rails_app/db/schema.rb +5 -8
  32. data/example/rails_app/spec/rails_helper.rb +2 -2
  33. data/example/rails_app/spec/spec_helper.rb +0 -1
  34. data/example/rails_app/test/controllers/beavers_controller_test.rb +12 -12
  35. data/example/rails_app/test/test_helper.rb +1 -1
  36. data/flip_fab.gemspec +11 -5
  37. data/lib/flip_fab/contextual_feature.rb +23 -19
  38. data/lib/flip_fab/cookie_persistence.rb +10 -17
  39. data/lib/flip_fab/feature.rb +2 -3
  40. data/lib/flip_fab/features_by_name.rb +5 -4
  41. data/lib/flip_fab/helper.rb +0 -1
  42. data/lib/flip_fab/persistence.rb +2 -3
  43. data/lib/flip_fab/version.rb +6 -1
  44. data/lib/flip_fab.rb +4 -4
  45. data/script/cibuild +10 -0
  46. data/spec/lib/flip_fab/contextual_feature_spec.rb +54 -57
  47. data/spec/lib/flip_fab/cookie_persistence.feature +3 -3
  48. data/spec/lib/flip_fab/cookie_persistence_spec.rb +36 -43
  49. data/spec/lib/flip_fab/feature_spec.rb +6 -9
  50. data/spec/lib/flip_fab/features_by_name_spec.rb +3 -6
  51. data/spec/lib/flip_fab/helper_spec.rb +35 -38
  52. data/spec/lib/flip_fab/persistence_spec.rb +2 -5
  53. data/spec/lib/flip_fab_spec.rb +11 -15
  54. data/spec/spec_helper.rb +47 -49
  55. data/spec/support/test_app.rb +2 -2
  56. data/spec/support/test_context.rb +1 -1
  57. data/spec/support/test_multiple_persistence.rb +2 -3
  58. data/spec/support/test_persistence.rb +2 -3
  59. data/spec/support/test_rack_context.rb +3 -3
  60. metadata +103 -11
  61. data/Gemfile.lock +0 -92
  62. data/example/rails_app/Gemfile.lock +0 -178
  63. data/example/rails_app/README.rdoc +0 -28
  64. data/example/rails_app/config/rabbit_feed.yml +0 -8
  65. data/example/rails_app/config/unicorn.rb +0 -4
metadata CHANGED
@@ -1,15 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flip_fab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-22 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2022-07-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.1.1
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.1.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rack-test
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rutabaga
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplycop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.9'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.9'
83
+ - !ruby/object:Gem::Dependency
84
+ name: timecop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.8'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.8'
13
97
  description: A gem providing persistent, per-user feature flipping to Rack applications.
14
98
  email:
15
99
  - tech@simplybusiness.co.uk
@@ -17,16 +101,27 @@ executables: []
17
101
  extensions: []
18
102
  extra_rdoc_files: []
19
103
  files:
104
+ - ".github/dependabot.yml"
105
+ - ".github/workflows/dobby-actions.yml"
106
+ - ".github/workflows/gem-publish.yml"
107
+ - ".github/workflows/version-forget-me-not.yml"
108
+ - ".gitignore"
20
109
  - ".rspec"
110
+ - ".rubocop.yml"
111
+ - ".rubocop_todo.yml"
112
+ - ".ruby-version"
113
+ - ".semaphore/semaphore.yml"
114
+ - CODEOWNERS
21
115
  - Gemfile
22
- - Gemfile.lock
23
116
  - LICENSE.txt
24
117
  - README.md
118
+ - _pipeline/step_build_gem.sh
119
+ - _pipeline/step_test_gem.sh
120
+ - catalog-info.yaml
25
121
  - example/rails_app/.gitignore
26
122
  - example/rails_app/Gemfile
27
- - example/rails_app/Gemfile.lock
28
- - example/rails_app/README.rdoc
29
123
  - example/rails_app/Rakefile
124
+ - example/rails_app/app/assets/config/manifest.js
30
125
  - example/rails_app/app/assets/images/.keep
31
126
  - example/rails_app/app/assets/images/justin_beaver.jpg
32
127
  - example/rails_app/app/assets/images/regular_beaver.jpg
@@ -71,10 +166,8 @@ files:
71
166
  - example/rails_app/config/initializers/session_store.rb
72
167
  - example/rails_app/config/initializers/wrap_parameters.rb
73
168
  - example/rails_app/config/locales/en.yml
74
- - example/rails_app/config/rabbit_feed.yml
75
169
  - example/rails_app/config/routes.rb
76
170
  - example/rails_app/config/secrets.yml
77
- - example/rails_app/config/unicorn.rb
78
171
  - example/rails_app/db/migrate/20140424102400_create_beavers.rb
79
172
  - example/rails_app/db/schema.rb
80
173
  - example/rails_app/db/seeds.rb
@@ -108,6 +201,7 @@ files:
108
201
  - lib/flip_fab/helper.rb
109
202
  - lib/flip_fab/persistence.rb
110
203
  - lib/flip_fab/version.rb
204
+ - script/cibuild
111
205
  - spec/lib/flip_fab.feature
112
206
  - spec/lib/flip_fab/contextual_feature_spec.rb
113
207
  - spec/lib/flip_fab/cookie_persistence.feature
@@ -143,8 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
237
  - !ruby/object:Gem::Version
144
238
  version: '0'
145
239
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.4.6
240
+ rubygems_version: 3.2.33
148
241
  signing_key:
149
242
  specification_version: 4
150
243
  summary: A gem providing persistent, per-user feature flipping to Rack applications.
@@ -165,4 +258,3 @@ test_files:
165
258
  - spec/support/test_multiple_persistence.rb
166
259
  - spec/support/test_persistence.rb
167
260
  - spec/support/test_rack_context.rb
168
- has_rdoc:
data/Gemfile.lock DELETED
@@ -1,92 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- flip_fab (1.0.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- binding_of_caller (0.7.2)
10
- debug_inspector (>= 0.0.1)
11
- bond (0.5.1)
12
- coderay (1.1.0)
13
- columnize (0.9.0)
14
- debug_inspector (0.0.2)
15
- debugger (1.6.8)
16
- columnize (>= 0.3.1)
17
- debugger-linecache (~> 1.2.0)
18
- debugger-ruby_core_source (~> 1.3.5)
19
- debugger-linecache (1.2.0)
20
- debugger-ruby_core_source (1.3.8)
21
- diff-lcs (1.2.5)
22
- gherkin (2.12.2)
23
- multi_json (~> 1.3)
24
- interception (0.5)
25
- jist (1.5.1)
26
- json
27
- json (1.8.2)
28
- method_source (0.8.2)
29
- multi_json (1.10.1)
30
- pry (0.10.1)
31
- coderay (~> 1.1.0)
32
- method_source (~> 0.8.1)
33
- slop (~> 3.4)
34
- pry-debugger (0.2.3)
35
- debugger (~> 1.3)
36
- pry (>= 0.9.10, < 0.11.0)
37
- pry-doc (0.6.0)
38
- pry (~> 0.9)
39
- yard (~> 0.8)
40
- pry-docmore (0.1.1)
41
- pry
42
- pry-doc
43
- pry-plus (1.0.0)
44
- bond
45
- jist
46
- pry-debugger
47
- pry-doc
48
- pry-docmore
49
- pry-rescue
50
- pry-stack_explorer
51
- pry-rescue (1.4.1)
52
- interception (>= 0.5)
53
- pry
54
- pry-stack_explorer (0.4.9.2)
55
- binding_of_caller (>= 0.7)
56
- pry (>= 0.9.11)
57
- rack (1.6.0)
58
- rack-test (0.6.3)
59
- rack (>= 1.0)
60
- rspec (3.2.0)
61
- rspec-core (~> 3.2.0)
62
- rspec-expectations (~> 3.2.0)
63
- rspec-mocks (~> 3.2.0)
64
- rspec-core (3.2.0)
65
- rspec-support (~> 3.2.0)
66
- rspec-expectations (3.2.0)
67
- diff-lcs (>= 1.2.0, < 2.0)
68
- rspec-support (~> 3.2.0)
69
- rspec-mocks (3.2.0)
70
- diff-lcs (>= 1.2.0, < 2.0)
71
- rspec-support (~> 3.2.0)
72
- rspec-support (3.2.1)
73
- rutabaga (0.1.1)
74
- turnip (>= 1.1.0, < 2.0)
75
- slop (3.6.0)
76
- timecop (0.7.3)
77
- turnip (1.2.4)
78
- gherkin (>= 2.5)
79
- rspec (>= 2.14.0, < 4.0)
80
- yard (0.8.7.6)
81
-
82
- PLATFORMS
83
- ruby
84
-
85
- DEPENDENCIES
86
- flip_fab!
87
- pry-plus
88
- rack
89
- rack-test
90
- rspec
91
- rutabaga
92
- timecop
@@ -1,178 +0,0 @@
1
- PATH
2
- remote: ../../
3
- specs:
4
- flip_fab (1.0.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- actionmailer (4.2.0)
10
- actionpack (= 4.2.0)
11
- actionview (= 4.2.0)
12
- activejob (= 4.2.0)
13
- mail (~> 2.5, >= 2.5.4)
14
- rails-dom-testing (~> 1.0, >= 1.0.5)
15
- actionpack (4.2.0)
16
- actionview (= 4.2.0)
17
- activesupport (= 4.2.0)
18
- rack (~> 1.6.0)
19
- rack-test (~> 0.6.2)
20
- rails-dom-testing (~> 1.0, >= 1.0.5)
21
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
22
- actionview (4.2.0)
23
- activesupport (= 4.2.0)
24
- builder (~> 3.1)
25
- erubis (~> 2.7.0)
26
- rails-dom-testing (~> 1.0, >= 1.0.5)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
28
- activejob (4.2.0)
29
- activesupport (= 4.2.0)
30
- globalid (>= 0.3.0)
31
- activemodel (4.2.0)
32
- activesupport (= 4.2.0)
33
- builder (~> 3.1)
34
- activerecord (4.2.0)
35
- activemodel (= 4.2.0)
36
- activesupport (= 4.2.0)
37
- arel (~> 6.0)
38
- activesupport (4.2.0)
39
- i18n (~> 0.7)
40
- json (~> 1.7, >= 1.7.7)
41
- minitest (~> 5.1)
42
- thread_safe (~> 0.3, >= 0.3.4)
43
- tzinfo (~> 1.1)
44
- arel (6.0.0)
45
- builder (3.2.2)
46
- coffee-rails (4.0.1)
47
- coffee-script (>= 2.2.0)
48
- railties (>= 4.0.0, < 5.0)
49
- coffee-script (2.3.0)
50
- coffee-script-source
51
- execjs
52
- coffee-script-source (1.9.1)
53
- diff-lcs (1.2.5)
54
- erubis (2.7.0)
55
- execjs (2.3.0)
56
- globalid (0.3.3)
57
- activesupport (>= 4.1.0)
58
- hike (1.2.3)
59
- i18n (0.7.0)
60
- jbuilder (2.2.8)
61
- activesupport (>= 3.0.0, < 5)
62
- multi_json (~> 1.2)
63
- jquery-rails (4.0.3)
64
- rails-dom-testing (~> 1.0)
65
- railties (>= 4.2.0)
66
- thor (>= 0.14, < 2.0)
67
- json (1.8.2)
68
- kgio (2.9.3)
69
- loofah (2.0.1)
70
- nokogiri (>= 1.5.9)
71
- mail (2.6.3)
72
- mime-types (>= 1.16, < 3)
73
- mime-types (2.4.3)
74
- mini_portile (0.6.2)
75
- minitest (5.5.1)
76
- multi_json (1.10.1)
77
- nokogiri (1.6.6.2)
78
- mini_portile (~> 0.6.0)
79
- rack (1.6.0)
80
- rack-test (0.6.3)
81
- rack (>= 1.0)
82
- rails (4.2.0)
83
- actionmailer (= 4.2.0)
84
- actionpack (= 4.2.0)
85
- actionview (= 4.2.0)
86
- activejob (= 4.2.0)
87
- activemodel (= 4.2.0)
88
- activerecord (= 4.2.0)
89
- activesupport (= 4.2.0)
90
- bundler (>= 1.3.0, < 2.0)
91
- railties (= 4.2.0)
92
- sprockets-rails
93
- rails-deprecated_sanitizer (1.0.3)
94
- activesupport (>= 4.2.0.alpha)
95
- rails-dom-testing (1.0.5)
96
- activesupport (>= 4.2.0.beta, < 5.0)
97
- nokogiri (~> 1.6.0)
98
- rails-deprecated_sanitizer (>= 1.0.1)
99
- rails-html-sanitizer (1.0.1)
100
- loofah (~> 2.0)
101
- railties (4.2.0)
102
- actionpack (= 4.2.0)
103
- activesupport (= 4.2.0)
104
- rake (>= 0.8.7)
105
- thor (>= 0.18.1, < 2.0)
106
- raindrops (0.13.0)
107
- rake (10.4.2)
108
- rdoc (4.2.0)
109
- json (~> 1.4)
110
- rspec-core (3.2.0)
111
- rspec-support (~> 3.2.0)
112
- rspec-expectations (3.2.0)
113
- diff-lcs (>= 1.2.0, < 2.0)
114
- rspec-support (~> 3.2.0)
115
- rspec-mocks (3.2.0)
116
- diff-lcs (>= 1.2.0, < 2.0)
117
- rspec-support (~> 3.2.0)
118
- rspec-rails (3.2.0)
119
- actionpack (>= 3.0, <= 4.2)
120
- activesupport (>= 3.0, <= 4.2)
121
- railties (>= 3.0, <= 4.2)
122
- rspec-core (~> 3.2.0)
123
- rspec-expectations (~> 3.2.0)
124
- rspec-mocks (~> 3.2.0)
125
- rspec-support (~> 3.2.0)
126
- rspec-support (3.2.1)
127
- sass (3.2.19)
128
- sass-rails (4.0.5)
129
- railties (>= 4.0.0, < 5.0)
130
- sass (~> 3.2.2)
131
- sprockets (~> 2.8, < 3.0)
132
- sprockets-rails (~> 2.0)
133
- sdoc (0.4.1)
134
- json (~> 1.7, >= 1.7.7)
135
- rdoc (~> 4.0)
136
- spring (1.3.2)
137
- sprockets (2.12.3)
138
- hike (~> 1.2)
139
- multi_json (~> 1.0)
140
- rack (~> 1.0)
141
- tilt (~> 1.1, != 1.3.0)
142
- sprockets-rails (2.2.4)
143
- actionpack (>= 3.0)
144
- activesupport (>= 3.0)
145
- sprockets (>= 2.8, < 4.0)
146
- sqlite3 (1.3.10)
147
- thor (0.19.1)
148
- thread_safe (0.3.4)
149
- tilt (1.4.1)
150
- turbolinks (2.5.3)
151
- coffee-rails
152
- tzinfo (1.2.2)
153
- thread_safe (~> 0.1)
154
- uglifier (2.7.0)
155
- execjs (>= 0.3.0)
156
- json (>= 1.8.0)
157
- unicorn (4.8.3)
158
- kgio (~> 2.6)
159
- rack
160
- raindrops (~> 0.7)
161
-
162
- PLATFORMS
163
- ruby
164
-
165
- DEPENDENCIES
166
- coffee-rails (~> 4.0.0)
167
- flip_fab!
168
- jbuilder (~> 2.0)
169
- jquery-rails
170
- rails (= 4.2.0)
171
- rspec-rails
172
- sass-rails (~> 4.0.3)
173
- sdoc (~> 0.4.0)
174
- spring
175
- sqlite3
176
- turbolinks
177
- uglifier (>= 1.3.0)
178
- unicorn
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,8 +0,0 @@
1
- development:
2
- host: localhost
3
- port: 5672
4
- user: guest
5
- password: guest
6
- application: rails_app
7
- test:
8
- application: rails_app
@@ -1,4 +0,0 @@
1
- worker_processes Integer(4)
2
- timeout 15
3
- preload_app true
4
- pid File.join('tmp', 'pids', 'unicorn.pid')