arturo 4.1.0 → 4.1.1

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: b2bbfe636f58ff2f535159aa8b7b2c34dbca60ace7b4a37dcc886cb0a26d2a5f
4
- data.tar.gz: 0e0b3e545c9c4f03270d6bbb2067572e0d95c2ebf164f1cb8dc1e307679eacbe
3
+ metadata.gz: f3dd4873bb989ef7051937ac1b4ba16a49cc5691cc920d51b6714f330cd6b191
4
+ data.tar.gz: 0e8dfa652180dcba96d51779fa5734a128f1233b01467c4d77f79b80dadfcc23
5
5
  SHA512:
6
- metadata.gz: c349cc980c6c03914803647f69021b584e37662f016e19e6e54d9621a6487e017a3b51a7dd0c18204071133bb34f4912b1beff7a3d9ede5b552908abf045fe80
7
- data.tar.gz: 26ced9b03e11d56c1ee17d211f4e9995f36a8b890dddc0d5dee604ca8652da44771d2e02f3c6b9b91c2dc1f4a313e8f23c706e588c43e7783056ff56a0419298
6
+ metadata.gz: 1f8df1180d466898b1f0992e15fedf692769cee73a52efcd6d905d0ec9a09d2f69eb7a69a847e9a724ec8ab25ef01c8417f9854a0400ddc222efc5fa0583fe83
7
+ data.tar.gz: 719901f7640c53c7f767c6d0a7c5249029e40ea6b0903b4554f2030417b8374e400902eff2d22cf5afe24987a78eb20f51c5ae4dde93cd123204a71f49c61e59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Unreleased
2
2
 
3
+ ## v4.1.1
4
+
5
+ Fixes missing indifferent_access import
6
+
3
7
  ## v4.1.0
4
8
 
5
9
  Removes upper boundary on ActiveRecord.
@@ -16,13 +16,8 @@ module Arturo
16
16
 
17
17
  respond_to :html, :json, :xml
18
18
 
19
- if respond_to?(:before_action)
20
- before_action :require_permission
21
- before_action :load_feature, :only => [ :show, :edit, :update, :destroy ]
22
- else
23
- before_filter :require_permission
24
- before_filter :load_feature, :only => [ :show, :edit, :update, :destroy ]
25
- end
19
+ before_action :require_permission
20
+ before_action :load_feature, :only => [ :show, :edit, :update, :destroy ]
26
21
 
27
22
  def index
28
23
  @features = Arturo::Feature.all
@@ -20,8 +20,7 @@ module Arturo
20
20
  module ClassMethods
21
21
 
22
22
  def require_feature(name, options = {})
23
- method = respond_to?(:before_action) ? :before_action : :before_filter
24
- send(method, options) do |controller|
23
+ send(:before_action, options) do |controller|
25
24
  unless controller.feature_enabled?(name)
26
25
  controller.on_feature_disabled(name)
27
26
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'active_record'
4
4
  require 'active_support'
5
+ require 'active_support/core_ext/hash/indifferent_access'
5
6
 
6
7
  module Arturo
7
8
  module FeatureMethods
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Arturo
3
- VERSION = '4.1.0'
3
+ VERSION = '4.1.1'
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: 4.1.0
4
+ version: 4.1.1
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: 2024-06-10 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubygems_version: 3.5.9
93
+ rubygems_version: 3.5.11
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Feature sliders, wrapped up in an engine