arturo 2.5.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +1 -1
- data/app/controllers/arturo/features_controller.rb +2 -2
- data/lib/arturo.rb +1 -1
- data/lib/arturo/feature.rb +0 -1
- data/lib/arturo/test_support.rb +2 -4
- data/lib/arturo/version.rb +1 -1
- metadata +18 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ca1070eea095b4a82a7c78aa617fc394676faa8a6b1205d3d878576536d00c5
|
4
|
+
data.tar.gz: decc2b7d85a4ba32531b07fe04c2d774b18c6c013357dcfed4ff115ff231d804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e36dc073ae701ce962c35191db44bd054786d154ebeed43f4c1ba56e7c3ca8486f1229bd8d57b4596048116141071d331d9aed825412fe8bcfa39a08131e96f7
|
7
|
+
data.tar.gz: 05dbeaf5468190e95fdadfdcfd14037957c462388de6a40b9ae648e6998bd32b40ab587d6406a3b7e9cb418cf17c2be710f62696a55bf6dc174981ff6fd84901
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## Unreleased
|
2
|
+
|
3
|
+
## v2.5.2
|
4
|
+
|
5
|
+
Drop support for Rails 3.2.
|
6
|
+
|
7
|
+
Add support for Rails 6.1.
|
8
|
+
|
9
|
+
Switch CI from Travis to GitHub Actions.
|
10
|
+
|
1
11
|
## v2.2.0
|
2
12
|
|
3
13
|
Bug fix: making a feature-update request that fails strict params checks now returns a sensible error instead of throwing an exception
|
data/README.md
CHANGED
@@ -346,6 +346,6 @@ on [Sliders](http://en.wikipedia.org/wiki/Sliders).
|
|
346
346
|
|
347
347
|
## Quality Metrics
|
348
348
|
|
349
|
-
[![Build Status](https://
|
349
|
+
[![Build Status](https://github.com/zendesk/arturo/workflows/CI/badge.svg)](https://github.com/zendesk/arturo/actions?query=workflow%3ACI)
|
350
350
|
|
351
351
|
[![Code Quality](https://codeclimate.com/github/zendesk/arturo.png)](https://codeclimate.com/github/zendesk/arturo)
|
@@ -37,7 +37,7 @@ module Arturo
|
|
37
37
|
feature = Arturo::Feature.find_by_id(id)
|
38
38
|
if feature.blank?
|
39
39
|
errors << t('arturo.features.flash.no_such_feature', :id => id)
|
40
|
-
elsif feature.
|
40
|
+
elsif feature.update(attributes)
|
41
41
|
updated_count += 1
|
42
42
|
else
|
43
43
|
errors << t('arturo.features.flash.error_updating', :id => id, :errors => feature.errors.full_messages.to_sentence)
|
@@ -76,7 +76,7 @@ module Arturo
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def update
|
79
|
-
if @feature.
|
79
|
+
if @feature.update(feature_params)
|
80
80
|
flash[:notice] = t('arturo.features.flash.updated', :name => @feature.to_s)
|
81
81
|
redirect_to arturo_engine.feature_path(@feature)
|
82
82
|
else
|
data/lib/arturo.rb
CHANGED
@@ -5,7 +5,7 @@ module Arturo
|
|
5
5
|
require 'arturo/feature_availability'
|
6
6
|
require 'arturo/feature_management'
|
7
7
|
require 'arturo/feature_caching'
|
8
|
-
require 'arturo/engine'
|
8
|
+
require 'arturo/engine'
|
9
9
|
|
10
10
|
class << self
|
11
11
|
# Quick check for whether a feature is enabled for a recipient.
|
data/lib/arturo/feature.rb
CHANGED
@@ -11,7 +11,6 @@ module Arturo
|
|
11
11
|
Arturo::Feature::SYMBOL_REGEX = /^[a-zA-z][a-zA-Z0-9_]*$/
|
12
12
|
DEFAULT_ATTRIBUTES = { :deployment_percentage => 0 }.with_indifferent_access
|
13
13
|
|
14
|
-
attr_accessible :symbol, :deployment_percentage if ActiveRecord::VERSION::MAJOR < 4
|
15
14
|
attr_readonly :symbol
|
16
15
|
|
17
16
|
validates_presence_of :symbol, :deployment_percentage
|
data/lib/arturo/test_support.rb
CHANGED
@@ -10,8 +10,7 @@ Arturo.instance_eval do
|
|
10
10
|
def enable_feature!(name)
|
11
11
|
if feature = Arturo::Feature.find_feature(name)
|
12
12
|
feature = feature.class.find(feature.id) if feature.frozen?
|
13
|
-
|
14
|
-
feature.send(update_method, :deployment_percentage => 100)
|
13
|
+
feature.update(:deployment_percentage => 100)
|
15
14
|
else
|
16
15
|
Arturo::Feature.create!(:symbol => name, :deployment_percentage => 100)
|
17
16
|
end
|
@@ -26,8 +25,7 @@ Arturo.instance_eval do
|
|
26
25
|
def disable_feature!(name)
|
27
26
|
if feature = Arturo::Feature.find_feature(name)
|
28
27
|
feature = feature.class.find(feature.id) if feature.frozen?
|
29
|
-
|
30
|
-
feature.send(update_method, :deployment_percentage => 0)
|
28
|
+
feature.update(:deployment_percentage => 0)
|
31
29
|
end
|
32
30
|
end
|
33
31
|
|
data/lib/arturo/version.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arturo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James A. Rosen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '6.
|
22
|
+
version: '6.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '4.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '6.
|
32
|
+
version: '6.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rails
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '4.2'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '6.
|
42
|
+
version: '6.2'
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
49
|
+
version: '4.2'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '6.
|
52
|
+
version: '6.2'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: sqlite3
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,20 +106,6 @@ dependencies:
|
|
106
106
|
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: wwtd
|
111
|
-
requirement: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - ">="
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '0'
|
116
|
-
type: :development
|
117
|
-
prerelease: false
|
118
|
-
version_requirements: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
- - ">="
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '0'
|
123
109
|
- !ruby/object:Gem::Dependency
|
124
110
|
name: bump
|
125
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,7 +169,7 @@ homepage: http://github.com/zendesk/arturo
|
|
183
169
|
licenses:
|
184
170
|
- APLv2
|
185
171
|
metadata: {}
|
186
|
-
post_install_message:
|
172
|
+
post_install_message:
|
187
173
|
rdoc_options: []
|
188
174
|
require_paths:
|
189
175
|
- lib
|
@@ -198,8 +184,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
184
|
- !ruby/object:Gem::Version
|
199
185
|
version: '0'
|
200
186
|
requirements: []
|
201
|
-
rubygems_version: 3.
|
202
|
-
signing_key:
|
187
|
+
rubygems_version: 3.2.2
|
188
|
+
signing_key:
|
203
189
|
specification_version: 4
|
204
190
|
summary: Feature sliders, wrapped up in an engine
|
205
191
|
test_files: []
|