arturo 2.0.0 → 2.1.0

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: 77b4548dd896e881b79c5c96df6f505be6f560fe
4
- data.tar.gz: 1f343f026c5a46e4e87f3b4b865ca6cf74bf12b3
3
+ metadata.gz: e275461050b9b145ee015ef8344c75c5acdaef28
4
+ data.tar.gz: 32ddd85665d038f1edf89a82542f85d8f321a3b0
5
5
  SHA512:
6
- metadata.gz: 588702facaf0f38ef5024815931b0b8a2c88360029a22fe39b004ca0f47851417d89f97072278e997ddd567e4536f214e2705b54e14d8363cbcd5a6449864d0c
7
- data.tar.gz: 9567da76eb5cb241893f2fbca5a65790ffe9f583b25309bf2fe438df155618b33ad77b15865d090c578491d40e8a21c6bc393b51726abbf1d1d142701817f175
6
+ metadata.gz: 5fc9a22f85c3e363c4c5364181d655ba67b62018c6d7ec9dc93fbdfd5c46bfb53f3c41fb1839c97bf4f61d50c6903ecb2532bcae88f220ed71c6b8b17c6f5a9f
7
+ data.tar.gz: 69f0ca4bd8b469737eba1289b492250f8924b29cf84a729f171cf7f060236eafa868dbdf699491615d5a0601a54b33b81bfd2de56afd5d57cf3dfee82c45d0f5
@@ -52,7 +52,7 @@ module Arturo
52
52
  def two_arg_block(symbol, block)
53
53
  return block if symbol.nil?
54
54
  lambda do |feature, recipient|
55
- feature.symbol == symbol && block.call(recipient)
55
+ feature.symbol.to_s == symbol.to_s && block.call(recipient)
56
56
  end
57
57
  end
58
58
 
@@ -28,4 +28,19 @@ Arturo.instance_eval do
28
28
  end
29
29
  end
30
30
 
31
+ # Enable or disable a feature. If enabling, create it if necessary.
32
+ # For use in testing. Not auto-required on load. To load,
33
+ #
34
+ # require 'arturo/test_support'
35
+ #
36
+ # @param [Symbol, String] name the feature name
37
+ # @param Boolean enabled should the feature be enabled?
38
+ def set_feature!(name, enabled)
39
+ if enabled
40
+ enable_feature!(name)
41
+ else
42
+ disable_feature!(name)
43
+ end
44
+ end
45
+
31
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arturo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
@@ -9,158 +9,184 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - gem-public_cert.pem
12
- date: 2014-07-01 00:00:00.000000000 Z
12
+ date: 2015-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">"
18
+ - - '>'
19
19
  - !ruby/object:Gem::Version
20
20
  version: '3.2'
21
- - - "<"
21
+ - - <
22
22
  - !ruby/object:Gem::Version
23
23
  version: '5.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - ">"
28
+ - - '>'
29
29
  - !ruby/object:Gem::Version
30
30
  version: '3.2'
31
- - - "<"
31
+ - - <
32
32
  - !ruby/object:Gem::Version
33
33
  version: '5.0'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rails
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">"
38
+ - - '>'
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.2'
41
- - - "<"
41
+ - - <
42
42
  - !ruby/object:Gem::Version
43
43
  version: '5.0'
44
44
  type: :development
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ">"
48
+ - - '>'
49
49
  - !ruby/object:Gem::Version
50
50
  version: '3.2'
51
- - - "<"
51
+ - - <
52
52
  - !ruby/object:Gem::Version
53
53
  version: '5.0'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: mocha
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ~>
59
59
  - !ruby/object:Gem::Version
60
60
  version: '1.1'
61
61
  type: :development
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ~>
66
66
  - !ruby/object:Gem::Version
67
67
  version: '1.1'
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: rake
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ~>
73
73
  - !ruby/object:Gem::Version
74
74
  version: '10.3'
75
75
  type: :development
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ~>
80
80
  - !ruby/object:Gem::Version
81
81
  version: '10.3'
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: minitest
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - '>'
87
87
  - !ruby/object:Gem::Version
88
- version: '5.1'
88
+ version: '0'
89
+ - - <
90
+ - !ruby/object:Gem::Version
91
+ version: '6.0'
89
92
  type: :development
90
93
  prerelease: false
91
94
  version_requirements: !ruby/object:Gem::Requirement
92
95
  requirements:
93
- - - "~>"
96
+ - - '>'
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ - - <
94
100
  - !ruby/object:Gem::Version
95
- version: '5.1'
101
+ version: '6.0'
96
102
  - !ruby/object:Gem::Dependency
97
103
  name: minitest-rg
98
104
  requirement: !ruby/object:Gem::Requirement
99
105
  requirements:
100
- - - "~>"
106
+ - - '>'
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ - - <
110
+ - !ruby/object:Gem::Version
111
+ version: '6.0'
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - '>'
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ - - <
120
+ - !ruby/object:Gem::Version
121
+ version: '6.0'
122
+ - !ruby/object:Gem::Dependency
123
+ name: rails-dom-testing
124
+ requirement: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ~>
101
127
  - !ruby/object:Gem::Version
102
- version: '5.1'
128
+ version: '1.0'
103
129
  type: :development
104
130
  prerelease: false
105
131
  version_requirements: !ruby/object:Gem::Requirement
106
132
  requirements:
107
- - - "~>"
133
+ - - ~>
108
134
  - !ruby/object:Gem::Version
109
- version: '5.1'
135
+ version: '1.0'
110
136
  - !ruby/object:Gem::Dependency
111
137
  name: sqlite3
112
138
  requirement: !ruby/object:Gem::Requirement
113
139
  requirements:
114
- - - "~>"
140
+ - - ~>
115
141
  - !ruby/object:Gem::Version
116
142
  version: '1.3'
117
143
  type: :development
118
144
  prerelease: false
119
145
  version_requirements: !ruby/object:Gem::Requirement
120
146
  requirements:
121
- - - "~>"
147
+ - - ~>
122
148
  - !ruby/object:Gem::Version
123
149
  version: '1.3'
124
150
  - !ruby/object:Gem::Dependency
125
151
  name: factory_girl
126
152
  requirement: !ruby/object:Gem::Requirement
127
153
  requirements:
128
- - - "~>"
154
+ - - ~>
129
155
  - !ruby/object:Gem::Version
130
156
  version: '4.2'
131
157
  type: :development
132
158
  prerelease: false
133
159
  version_requirements: !ruby/object:Gem::Requirement
134
160
  requirements:
135
- - - "~>"
161
+ - - ~>
136
162
  - !ruby/object:Gem::Version
137
163
  version: '4.2'
138
164
  - !ruby/object:Gem::Dependency
139
165
  name: timecop
140
166
  requirement: !ruby/object:Gem::Requirement
141
167
  requirements:
142
- - - "~>"
168
+ - - ~>
143
169
  - !ruby/object:Gem::Version
144
170
  version: '0.3'
145
171
  type: :development
146
172
  prerelease: false
147
173
  version_requirements: !ruby/object:Gem::Requirement
148
174
  requirements:
149
- - - "~>"
175
+ - - ~>
150
176
  - !ruby/object:Gem::Version
151
177
  version: '0.3'
152
178
  - !ruby/object:Gem::Dependency
153
179
  name: wwtd
154
180
  requirement: !ruby/object:Gem::Requirement
155
181
  requirements:
156
- - - "~>"
182
+ - - ~>
157
183
  - !ruby/object:Gem::Version
158
184
  version: '0.5'
159
185
  type: :development
160
186
  prerelease: false
161
187
  version_requirements: !ruby/object:Gem::Requirement
162
188
  requirements:
163
- - - "~>"
189
+ - - ~>
164
190
  - !ruby/object:Gem::Version
165
191
  version: '0.5'
166
192
  description: Deploy features incrementally to your users
@@ -169,24 +195,6 @@ executables: []
169
195
  extensions: []
170
196
  extra_rdoc_files: []
171
197
  files:
172
- - CHANGELOG.md
173
- - LICENSE
174
- - README.md
175
- - app/assets/images/colon.png
176
- - app/assets/javascripts/arturo.js
177
- - app/assets/stylesheets/arturo.css
178
- - app/controllers/arturo/features_controller.rb
179
- - app/helpers/arturo/features_helper.rb
180
- - app/views/arturo/features/_feature.html.erb
181
- - app/views/arturo/features/_form.html.erb
182
- - app/views/arturo/features/edit.html.erb
183
- - app/views/arturo/features/forbidden.html.erb
184
- - app/views/arturo/features/index.html.erb
185
- - app/views/arturo/features/new.html.erb
186
- - app/views/arturo/features/show.html.erb
187
- - config/locales/en.yml
188
- - config/routes.rb
189
- - lib/arturo.rb
190
198
  - lib/arturo/controller_filters.rb
191
199
  - lib/arturo/engine.rb
192
200
  - lib/arturo/feature.rb
@@ -199,6 +207,7 @@ files:
199
207
  - lib/arturo/no_such_feature.rb
200
208
  - lib/arturo/special_handling.rb
201
209
  - lib/arturo/test_support.rb
210
+ - lib/arturo.rb
202
211
  - lib/generators/arturo/assets_generator.rb
203
212
  - lib/generators/arturo/initializer_generator.rb
204
213
  - lib/generators/arturo/migration_generator.rb
@@ -206,6 +215,23 @@ files:
206
215
  - lib/generators/arturo/templates/arturo_customizations.css
207
216
  - lib/generators/arturo/templates/initializer.rb
208
217
  - lib/generators/arturo/templates/migration.rb
218
+ - app/assets/images/colon.png
219
+ - app/assets/javascripts/arturo.js
220
+ - app/assets/stylesheets/arturo.css
221
+ - app/controllers/arturo/features_controller.rb
222
+ - app/helpers/arturo/features_helper.rb
223
+ - app/views/arturo/features/_feature.html.erb
224
+ - app/views/arturo/features/_form.html.erb
225
+ - app/views/arturo/features/edit.html.erb
226
+ - app/views/arturo/features/forbidden.html.erb
227
+ - app/views/arturo/features/index.html.erb
228
+ - app/views/arturo/features/new.html.erb
229
+ - app/views/arturo/features/show.html.erb
230
+ - config/locales/en.yml
231
+ - config/routes.rb
232
+ - README.md
233
+ - CHANGELOG.md
234
+ - LICENSE
209
235
  homepage: http://github.com/jamesarosen/arturo
210
236
  licenses:
211
237
  - APLv2
@@ -213,22 +239,23 @@ metadata: {}
213
239
  post_install_message:
214
240
  rdoc_options: []
215
241
  require_paths:
216
- - "."
242
+ - .
217
243
  - lib
218
244
  required_ruby_version: !ruby/object:Gem::Requirement
219
245
  requirements:
220
- - - ">="
246
+ - - '>='
221
247
  - !ruby/object:Gem::Version
222
248
  version: '0'
223
249
  required_rubygems_version: !ruby/object:Gem::Requirement
224
250
  requirements:
225
- - - ">="
251
+ - - '>='
226
252
  - !ruby/object:Gem::Version
227
253
  version: '0'
228
254
  requirements: []
229
255
  rubyforge_project:
230
- rubygems_version: 2.2.2
256
+ rubygems_version: 2.0.14
231
257
  signing_key:
232
258
  specification_version: 2
233
259
  summary: Feature sliders, wrapped up in an engine
234
260
  test_files: []
261
+ has_rdoc: 'false'