arturo 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +11 -0
- data/lib/arturo.rb +14 -2
- metadata +54 -77
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 88ce4aeb22e317dd8292fe0195d9bf50b9a90da0
|
4
|
+
data.tar.gz: 84e1dd8b5f888190e30a914f467d30d349c55f10
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b8e4879523a8521f7af17d852d9aac39cd1b40fc0a6eca615f827db37dcaff87049ac04254a2669c1f86afe9dfeb67847180f5e6cd594a2054d61c9d5d8a283c
|
7
|
+
data.tar.gz: 9bc806e96c48f63bcbd4c7191444be92b929c45c0d9f60f35f2eb490b17dc1d86353db12f154b779174e55c11c81823e7c5bc17fcf50687169067dc63c12187e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
## v1.11.0
|
2
|
+
|
3
|
+
Depreaction: `[feature]_enabled_for?` methods
|
4
|
+
|
5
|
+
Bug fix: `Arturo.respond_to?` takes an optional second argument, per
|
6
|
+
`Object.respond_to?`'s signature.
|
7
|
+
|
8
|
+
Improvement: support Rails 4.1.
|
9
|
+
|
10
|
+
Improvement: use Travis's multiple builds instead of Appraisal.
|
11
|
+
|
1
12
|
## v1.10.0
|
2
13
|
|
3
14
|
Improvement: Arturo no longer declares a hard runtime dependency on Rails, but
|
data/lib/arturo.rb
CHANGED
@@ -19,12 +19,24 @@ module Arturo
|
|
19
19
|
|
20
20
|
ENABLED_FOR_METHOD_NAME = /^(\w+)_enabled_for\?$/
|
21
21
|
|
22
|
-
|
23
|
-
|
22
|
+
ENABLED_FOR_METHOD_NAME_WARNING = "Arturos FEATURE_enabled_for?(OBJECT) methods are going away, use feature_enabled_for?(FEATURE, OBJECT)"
|
23
|
+
|
24
|
+
def respond_to_missing?(symbol, include_all = false)
|
25
|
+
if symbol.to_s =~ ENABLED_FOR_METHOD_NAME
|
26
|
+
warn ENABLED_FOR_METHOD_NAME_WARNING
|
27
|
+
true
|
28
|
+
else
|
29
|
+
super
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def respond_to?(symbol, include_all = false)
|
34
|
+
respond_to_missing? symbol, include_all
|
24
35
|
end
|
25
36
|
|
26
37
|
def method_missing(symbol, *args, &block)
|
27
38
|
if (args.length == 1 && match = ENABLED_FOR_METHOD_NAME.match(symbol.to_s))
|
39
|
+
warn ENABLED_FOR_METHOD_NAME_WARNING
|
28
40
|
feature_enabled_for?(match[1], args[0])
|
29
41
|
else
|
30
42
|
super(symbol, *args, &block)
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arturo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.11.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- James A. Rosen
|
@@ -10,180 +9,178 @@ autorequire:
|
|
10
9
|
bindir: bin
|
11
10
|
cert_chain:
|
12
11
|
- gem-public_cert.pem
|
13
|
-
date: 2014-01
|
12
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: activerecord
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - ">"
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version: '3.
|
23
|
-
- - <
|
20
|
+
version: '3.2'
|
21
|
+
- - "<"
|
24
22
|
- !ruby/object:Gem::Version
|
25
23
|
version: '5.0'
|
26
24
|
type: :runtime
|
27
25
|
prerelease: false
|
28
26
|
version_requirements: !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
27
|
requirements:
|
31
|
-
- -
|
28
|
+
- - ">"
|
32
29
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3.
|
34
|
-
- - <
|
30
|
+
version: '3.2'
|
31
|
+
- - "<"
|
35
32
|
- !ruby/object:Gem::Version
|
36
33
|
version: '5.0'
|
37
34
|
- !ruby/object:Gem::Dependency
|
38
35
|
name: rails
|
39
36
|
requirement: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
37
|
requirements:
|
42
|
-
- -
|
38
|
+
- - ">="
|
43
39
|
- !ruby/object:Gem::Version
|
44
40
|
version: '0'
|
45
41
|
type: :development
|
46
42
|
prerelease: false
|
47
43
|
version_requirements: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
44
|
requirements:
|
50
|
-
- -
|
45
|
+
- - ">="
|
51
46
|
- !ruby/object:Gem::Version
|
52
47
|
version: '0'
|
53
48
|
- !ruby/object:Gem::Dependency
|
54
49
|
name: mocha
|
55
50
|
requirement: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
51
|
requirements:
|
58
|
-
- -
|
52
|
+
- - ">="
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: '0'
|
61
55
|
type: :development
|
62
56
|
prerelease: false
|
63
57
|
version_requirements: !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
58
|
requirements:
|
66
|
-
- -
|
59
|
+
- - ">="
|
67
60
|
- !ruby/object:Gem::Version
|
68
61
|
version: '0'
|
69
62
|
- !ruby/object:Gem::Dependency
|
70
63
|
name: rake
|
71
64
|
requirement: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
65
|
requirements:
|
74
|
-
- -
|
66
|
+
- - ">="
|
75
67
|
- !ruby/object:Gem::Version
|
76
68
|
version: '0'
|
77
69
|
type: :development
|
78
70
|
prerelease: false
|
79
71
|
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
72
|
requirements:
|
82
|
-
- -
|
73
|
+
- - ">="
|
83
74
|
- !ruby/object:Gem::Version
|
84
75
|
version: '0'
|
85
76
|
- !ruby/object:Gem::Dependency
|
86
77
|
name: minitest
|
87
78
|
requirement: !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
79
|
requirements:
|
90
|
-
- -
|
80
|
+
- - ">="
|
91
81
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
82
|
+
version: '0'
|
93
83
|
type: :development
|
94
84
|
prerelease: false
|
95
85
|
version_requirements: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
86
|
requirements:
|
98
|
-
- -
|
87
|
+
- - ">="
|
99
88
|
- !ruby/object:Gem::Version
|
100
|
-
version: '
|
89
|
+
version: '0'
|
101
90
|
- !ruby/object:Gem::Dependency
|
102
91
|
name: minitest-rg
|
103
92
|
requirement: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
93
|
requirements:
|
106
|
-
- -
|
94
|
+
- - ">="
|
107
95
|
- !ruby/object:Gem::Version
|
108
96
|
version: '0'
|
109
97
|
type: :development
|
110
98
|
prerelease: false
|
111
99
|
version_requirements: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
100
|
requirements:
|
114
|
-
- -
|
101
|
+
- - ">="
|
115
102
|
- !ruby/object:Gem::Version
|
116
103
|
version: '0'
|
117
104
|
- !ruby/object:Gem::Dependency
|
118
105
|
name: sqlite3
|
119
106
|
requirement: !ruby/object:Gem::Requirement
|
120
|
-
none: false
|
121
107
|
requirements:
|
122
|
-
- -
|
108
|
+
- - ">="
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: '0'
|
125
111
|
type: :development
|
126
112
|
prerelease: false
|
127
113
|
version_requirements: !ruby/object:Gem::Requirement
|
128
|
-
none: false
|
129
114
|
requirements:
|
130
|
-
- -
|
115
|
+
- - ">="
|
131
116
|
- !ruby/object:Gem::Version
|
132
117
|
version: '0'
|
133
118
|
- !ruby/object:Gem::Dependency
|
134
119
|
name: factory_girl
|
135
120
|
requirement: !ruby/object:Gem::Requirement
|
136
|
-
none: false
|
137
121
|
requirements:
|
138
|
-
- - ~>
|
122
|
+
- - "~>"
|
139
123
|
- !ruby/object:Gem::Version
|
140
124
|
version: '4.2'
|
141
125
|
type: :development
|
142
126
|
prerelease: false
|
143
127
|
version_requirements: !ruby/object:Gem::Requirement
|
144
|
-
none: false
|
145
128
|
requirements:
|
146
|
-
- - ~>
|
129
|
+
- - "~>"
|
147
130
|
- !ruby/object:Gem::Version
|
148
131
|
version: '4.2'
|
149
132
|
- !ruby/object:Gem::Dependency
|
150
133
|
name: timecop
|
151
134
|
requirement: !ruby/object:Gem::Requirement
|
152
|
-
none: false
|
153
135
|
requirements:
|
154
|
-
- - ~>
|
136
|
+
- - "~>"
|
155
137
|
- !ruby/object:Gem::Version
|
156
138
|
version: '0.3'
|
157
139
|
type: :development
|
158
140
|
prerelease: false
|
159
141
|
version_requirements: !ruby/object:Gem::Requirement
|
160
|
-
none: false
|
161
142
|
requirements:
|
162
|
-
- - ~>
|
143
|
+
- - "~>"
|
163
144
|
- !ruby/object:Gem::Version
|
164
145
|
version: '0.3'
|
165
146
|
- !ruby/object:Gem::Dependency
|
166
|
-
name:
|
147
|
+
name: wwtd
|
167
148
|
requirement: !ruby/object:Gem::Requirement
|
168
|
-
none: false
|
169
149
|
requirements:
|
170
|
-
- -
|
150
|
+
- - ">="
|
171
151
|
- !ruby/object:Gem::Version
|
172
|
-
version: '0
|
152
|
+
version: '0'
|
173
153
|
type: :development
|
174
154
|
prerelease: false
|
175
155
|
version_requirements: !ruby/object:Gem::Requirement
|
176
|
-
none: false
|
177
156
|
requirements:
|
178
|
-
- -
|
157
|
+
- - ">="
|
179
158
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0
|
159
|
+
version: '0'
|
181
160
|
description: Deploy features incrementally to your users
|
182
161
|
email: james.a.rosen@gmail.com
|
183
162
|
executables: []
|
184
163
|
extensions: []
|
185
164
|
extra_rdoc_files: []
|
186
165
|
files:
|
166
|
+
- CHANGELOG.md
|
167
|
+
- LICENSE
|
168
|
+
- README.md
|
169
|
+
- app/assets/images/colon.png
|
170
|
+
- app/assets/javascripts/arturo.js
|
171
|
+
- app/assets/stylesheets/arturo.css
|
172
|
+
- app/controllers/arturo/features_controller.rb
|
173
|
+
- app/helpers/arturo/features_helper.rb
|
174
|
+
- app/views/arturo/features/_feature.html.erb
|
175
|
+
- app/views/arturo/features/_form.html.erb
|
176
|
+
- app/views/arturo/features/edit.html.erb
|
177
|
+
- app/views/arturo/features/forbidden.html.erb
|
178
|
+
- app/views/arturo/features/index.html.erb
|
179
|
+
- app/views/arturo/features/new.html.erb
|
180
|
+
- app/views/arturo/features/show.html.erb
|
181
|
+
- config/locales/en.yml
|
182
|
+
- config/routes.rb
|
183
|
+
- lib/arturo.rb
|
187
184
|
- lib/arturo/controller_filters.rb
|
188
185
|
- lib/arturo/engine.rb
|
189
186
|
- lib/arturo/feature.rb
|
@@ -196,7 +193,6 @@ files:
|
|
196
193
|
- lib/arturo/no_such_feature.rb
|
197
194
|
- lib/arturo/special_handling.rb
|
198
195
|
- lib/arturo/test_support.rb
|
199
|
-
- lib/arturo.rb
|
200
196
|
- lib/generators/arturo/assets_generator.rb
|
201
197
|
- lib/generators/arturo/initializer_generator.rb
|
202
198
|
- lib/generators/arturo/migration_generator.rb
|
@@ -204,48 +200,29 @@ files:
|
|
204
200
|
- lib/generators/arturo/templates/arturo_customizations.css
|
205
201
|
- lib/generators/arturo/templates/initializer.rb
|
206
202
|
- lib/generators/arturo/templates/migration.rb
|
207
|
-
- app/assets/images/colon.png
|
208
|
-
- app/assets/javascripts/arturo.js
|
209
|
-
- app/assets/stylesheets/arturo.css
|
210
|
-
- app/controllers/arturo/features_controller.rb
|
211
|
-
- app/helpers/arturo/features_helper.rb
|
212
|
-
- app/views/arturo/features/_feature.html.erb
|
213
|
-
- app/views/arturo/features/_form.html.erb
|
214
|
-
- app/views/arturo/features/edit.html.erb
|
215
|
-
- app/views/arturo/features/forbidden.html.erb
|
216
|
-
- app/views/arturo/features/index.html.erb
|
217
|
-
- app/views/arturo/features/new.html.erb
|
218
|
-
- app/views/arturo/features/show.html.erb
|
219
|
-
- config/locales/en.yml
|
220
|
-
- config/routes.rb
|
221
|
-
- README.md
|
222
|
-
- CHANGELOG.md
|
223
|
-
- LICENSE
|
224
203
|
homepage: http://github.com/jamesarosen/arturo
|
225
204
|
licenses:
|
226
205
|
- APLv2
|
206
|
+
metadata: {}
|
227
207
|
post_install_message:
|
228
208
|
rdoc_options: []
|
229
209
|
require_paths:
|
230
|
-
- .
|
210
|
+
- "."
|
231
211
|
- lib
|
232
212
|
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
-
none: false
|
234
213
|
requirements:
|
235
|
-
- -
|
214
|
+
- - ">="
|
236
215
|
- !ruby/object:Gem::Version
|
237
216
|
version: '0'
|
238
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
|
-
none: false
|
240
218
|
requirements:
|
241
|
-
- -
|
219
|
+
- - ">="
|
242
220
|
- !ruby/object:Gem::Version
|
243
221
|
version: '0'
|
244
222
|
requirements: []
|
245
223
|
rubyforge_project:
|
246
|
-
rubygems_version:
|
224
|
+
rubygems_version: 2.2.2
|
247
225
|
signing_key:
|
248
226
|
specification_version: 2
|
249
227
|
summary: Feature sliders, wrapped up in an engine
|
250
228
|
test_files: []
|
251
|
-
has_rdoc: 'false'
|