effective_resources 2.7.6 → 2.7.7

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: 0cce14845f98efb81d2fdd1ccf09e35827051f0eac750d9d8e379890d4b40ed3
4
- data.tar.gz: 2e14c5298dd079ec455752023da6f7bc7202addeadb54e5629d01f1091e94ea7
3
+ metadata.gz: fd2143cd7b6548e1f54316be079f9767005949166a8ae747181db7c487a0de81
4
+ data.tar.gz: e32b85cb8d4e9200e1ed6c8405ddfff5a503af801c56f56c912d7e0ab31b9438
5
5
  SHA512:
6
- metadata.gz: fe89a50199d6e6fa1d1d895b8d07fa7a7a767ea90b14f194ff7fb7002906ea86bd924ac8f7efdb8681fc036210f93a53beb809b9012fb3db16c20cd4458c7a0d
7
- data.tar.gz: e1d8b4cbd15ccc3cf94bed31afceb31ac2b88bb58d53c40833b333bb4687abb2f1acb1772b1d0a1bd47aae4781255c17011bbf2320e8527abb0ab7ca60bc50cc
6
+ metadata.gz: 12ade43eeaee46e8177196c65b2601bdd0d1936a3d5dddf6f55d14fa83fc53cb85b2df3ce251ebed3f6f567495904cef5abda0f64f17319e66798c91b47daf01
7
+ data.tar.gz: 539d84a100330c1e88e07eac749af89b872955b61426a571d708c7f432edcec5ddb1d185738e355a549e2a97aa2b5321273e562bda8ec47fc7af747b79d1e546
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Effective
3
4
  module CrudController
4
5
  extend ActiveSupport::Concern
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Effective Engine concern
2
4
 
3
5
  module EffectiveGem
@@ -13,12 +15,12 @@ module EffectiveGem
13
15
 
14
16
  # Define getters
15
17
  (config_keys - EXCLUDED_GETTERS).each do |key|
16
- self.singleton_class.define_method(key) { config()[key] }
18
+ self.singleton_class.delegate(key, to: :config)
17
19
  end
18
20
 
19
21
  # Define setters
20
22
  config_keys.each do |key|
21
- self.singleton_class.define_method("#{key}=") { |value| config()[key] = value }
23
+ self.singleton_class.delegate("#{key}=", to: :config)
22
24
  end
23
25
 
24
26
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module EffectiveResources
2
4
  class Engine < ::Rails::Engine
3
5
  engine_name 'effective_resources'
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.7.6'.freeze
2
+ VERSION = '2.7.7'.freeze
3
3
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'effective_resources/engine'
2
4
  require 'effective_resources/version'
3
5
  require 'effective_resources/effective_gem'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.6
4
+ version: 2.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails