arturo 2.5.3 → 2.6.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
  SHA256:
3
- metadata.gz: a92dc0b0221d1584220352d9ca7586f50449dd23bb6b4f2bfe9cc26fa30c7d1f
4
- data.tar.gz: d59e9a44466d5ede3338873993f61ae8b11d009ff32eb5e55b1122090b3ad368
3
+ metadata.gz: f254071a4bbfd2f21be2f98d0312c109f032dd18367f09d72da778990a051d84
4
+ data.tar.gz: b3b0683fc7c11411247bec4cd9e0779c7d03c1026ac8c8768eea2ee193968502
5
5
  SHA512:
6
- metadata.gz: fe24d781cd0137148a5edc2b3f5fb67fb9d29995758fb0cbbcb026c0fd4b40960bf542bf31aa09a555f827c053e8f49d1f5f08553d55e68050758f714d6f53f7
7
- data.tar.gz: 6df3e48141801e5007a14f7531a7bfea975a09a95ae59dd7ad2bb8e756b66a14e4903a34f3855f35fbda01465ad972e701381ecbdf321071d5f38f8fd3a689d1
6
+ metadata.gz: 6afb98e8e40dbc338d39f554348950797d9edb66cc9c7ac7ce3782a854b590606a289993e47c7763c8aad8defc8745ad74656f1c1f2b16af835402728e188540
7
+ data.tar.gz: e410b3bda222befbfd54de38060547bf1746059eadf01bcd7ec7d00b1524e7c2f66e109fa14b67970260c8772dda853f01672f5377b6d448837d1421d94303e0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ## Unreleased
2
2
 
3
+ ## v2.6.0
4
+
5
+ Add support for Rails 7.0
6
+
7
+ Add support for Ruby 3.0 & 3.1
8
+
9
+ Drop support for Rails 4.2
10
+
11
+ Drop support for Ruby 2.4 & 2.5
12
+
13
+ ## v2.5.4
14
+
15
+ Bug fix: Explicitly require rails engine to avoid errors that ::Rails::Engine cannot be found.
16
+
3
17
  ## v2.5.3
4
18
 
5
19
  Bug fix: Allow using Arturo with ActiveRecord, but without all of Rails.
data/README.md CHANGED
@@ -2,13 +2,14 @@
2
2
 
3
3
  Arturo provides feature sliders for Rails. It lets you turn features on and off
4
4
  just like
5
- [feature flippers](http://code.flickr.com/blog/2009/12/02/flipping-out/),
5
+ [feature flippers](https://code.flickr.net/2009/12/02/flipping-out/),
6
6
  but offers more fine-grained control. It supports deploying features only for
7
- a given percent* of your users and whitelisting and blacklisting users based
7
+ a given percentage of your users and whitelisting and blacklisting users based
8
8
  on any criteria you can express in Ruby.
9
9
 
10
10
  The selection is deterministic. So if a user has a feature on Monday, the
11
- user will still have it on Tuesday (unless, you *decrease* feature's deployment percentage or change its white- or blacklist settings).
11
+ user will still have it on Tuesday (unless you *decrease* the feature's
12
+ deployment percentage or change its white- or blacklist settings).
12
13
 
13
14
  ### A quick example
14
15
 
@@ -71,7 +72,7 @@ feature and deploy it to all users.
71
72
 
72
73
 
73
74
  ```Ruby
74
- gem 'arturo', '~> 1.0'
75
+ gem 'arturo'
75
76
  ```
76
77
 
77
78
  ## Configuration
@@ -113,16 +114,16 @@ There are configuration options for the following:
113
114
 
114
115
  ##### CSS
115
116
 
116
- Open up the newly-generated `public/stylehseets/arturo_customizations.css`.
117
+ Open up the newly-generated `public/stylesheets/arturo_customizations.css`.
117
118
  You can add any overrides you like to the feature configuration page styles
118
- here. **Do not** edit `public/stylehseets/arturo.css` as that file may be
119
+ here. **Do not** edit `public/stylesheets/arturo.css` as that file may be
119
120
  overwritten in future updates to Arturo.
120
121
 
121
122
  ### In other frameworks
122
123
 
123
124
  Arturo is a Rails engine. I want to promote reuse on other frameworks by
124
125
  extracting key pieces into mixins, though this isn't done yet. Open an
125
- [issue](http://github.com/jamesarosen/arturo/issues) and I'll be happy to
126
+ [issue](http://github.com/zendesk/arturo/issues) and I'll be happy to
126
127
  work with you on support for your favorite framework.
127
128
 
128
129
  ## Deep-Dive
@@ -14,7 +14,6 @@ module Arturo
14
14
  include Arturo::FeatureManagement
15
15
  include Arturo::FeatureParamsSupport
16
16
 
17
- unloadable
18
17
  respond_to :html, :json, :xml
19
18
 
20
19
  if respond_to?(:before_action)
@@ -14,7 +14,7 @@ module Arturo
14
14
  end
15
15
 
16
16
  def on_feature_disabled(feature_name)
17
- render (Rails::VERSION::MAJOR < 5 ? :text : :plain) => 'Forbidden', :status => 403
17
+ render :plain => 'Forbidden', :status => 403
18
18
  end
19
19
 
20
20
  module ClassMethods
data/lib/arturo/engine.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  require 'arturo/controller_filters'
3
3
  require 'arturo/middleware'
4
+ require 'rails/engine'
4
5
 
5
6
  module Arturo
6
7
  class Engine < ::Rails::Engine
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Arturo
3
- VERSION = '2.5.3'
3
+ VERSION = '2.6.0'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arturo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.3
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-08 00:00:00.000000000 Z
11
+ date: 2022-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,40 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
22
+ version: '7.1'
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: '4.2'
29
+ version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
32
+ version: '7.1'
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: '4.2'
39
+ version: '5.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '6.2'
42
+ version: '7.1'
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: '4.2'
49
+ version: '5.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '6.2'
52
+ version: '7.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: sqlite3
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -177,14 +177,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: '2.1'
180
+ version: '2.6'
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - ">="
184
184
  - !ruby/object:Gem::Version
185
185
  version: '0'
186
186
  requirements: []
187
- rubygems_version: 3.2.2
187
+ rubygems_version: 3.1.6
188
188
  signing_key:
189
189
  specification_version: 4
190
190
  summary: Feature sliders, wrapped up in an engine