kono_utils 1.1.0 → 1.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: 9a251cc3ff3552e9f8e3f969a609b48993bbb0a08c55f52738fb037b176bb1b2
4
- data.tar.gz: 98e00db085c7d05efe4adc108fc3466ce685d9cf7e78c8a20228828ff38fc107
3
+ metadata.gz: c5015498a44dc1be3efa63b564cc3ad7e0198e40ba2477d1fee1cfaad0bbe97f
4
+ data.tar.gz: f23eaa227ce615b319615dbc816e694641c875c9abfeba4d4cdd0d736ebf1783
5
5
  SHA512:
6
- metadata.gz: b03d82397c5c8ab6adfa8be8c115fb8150319d3a0482c635183daa3c7a517b2565318c4b39a97c93c4501b8f12e571755c2644df37053c340183834428631ebf
7
- data.tar.gz: 903ee0bd364036e50e58d1b72678b31357ed3351911ec6dada26e649483bdd300ba1d336fa001db8010e226f2a3535b76744b8df24c9eeb6b5788b274525daeb
6
+ metadata.gz: 667bcd329e9df24bce3836715b866f431fad52f29c63939ca7386e6a8dfc04bd68ead2158310755987d52919f955ef099059a1d15c49571cce90fe9cdbf68f37
7
+ data.tar.gz: a12bdf8b96758abcaea4e7e540fb936973936e7f388cbbb1450694cdc4b07b3fe118f42cf245450399c82b6553093dde433cce149701759845678ff8825396fd
@@ -1,23 +1,38 @@
1
- require "zeitwerk"
2
- loader = Zeitwerk::Loader.for_gem
3
- loader.ignore("#{__dir__}/generators")
4
-
1
+ # require "zeitwerk"
2
+ # loader = Zeitwerk::Loader.for_gem
3
+ # loader.ignore("#{__dir__}/generators")
5
4
 
6
5
  if defined?(::Rails)
7
- if Rails.gem_version <= Gem::Version.new('4.2.0')
8
- # Non facciamo eager load nel caso di nuovi rails
9
- translations_concerns = "#{__dir__}/kono_utils/concerns/active_record_translation"
10
- loader.do_not_eager_load(translations_concerns)
11
- end
6
+ require "kono_utils/engine"
7
+ # if Rails.gem_version <= Gem::Version.new('4.2.0')
8
+ # # Non facciamo eager load nel caso di nuovi rails
9
+ # translations_concerns = "#{__dir__}/kono_utils/concerns/active_record_translation"
10
+ # loader.do_not_eager_load(translations_concerns)
11
+ # end
12
12
  else
13
13
  # non carichiamo l'engine se non presente rails
14
- loader.do_not_eager_load("#{__dir__}/kono_utils/engine")
14
+ # loader.do_not_eager_load("#{__dir__}/kono_utils/engine")
15
+ # require "kono_utils/engine"
15
16
  end
16
17
 
17
- loader.enable_reloading # you need to opt-in before setup
18
- loader.setup
18
+ # loader.enable_reloading # you need to opt-in before setup
19
+ # loader.setup
19
20
 
20
21
  module KonoUtils
22
+ extend ActiveSupport::Autoload
23
+
24
+ autoload :ApplicationCoreHelper
25
+ autoload :ApplicationEnumHelper
26
+ autoload :ApplicationHelper
27
+ autoload :BaseEditingCoreHelper
28
+ autoload :BaseEditingHelper
29
+ autoload :BaseSearch
30
+ autoload :Concerns
31
+ autoload :Configuration
32
+ autoload :PaginateProxer
33
+ autoload :SearchAttribute
34
+ autoload :SearchFormBuilder
35
+ autoload :VERSION
21
36
 
22
37
  class << self
23
38
  attr_writer :configuration
@@ -32,8 +47,6 @@ module KonoUtils
32
47
  yield configuration
33
48
  end
34
49
 
35
-
36
50
  end
37
51
 
38
-
39
- loader.eager_load
52
+ # loader.eager_load
@@ -0,0 +1,12 @@
1
+ module KonoUtils
2
+ module Concerns
3
+ extend ActiveSupport::Autoload
4
+
5
+ autoload :ActiveRecordTranslation
6
+ autoload :ActiveStorageRemoverHelper
7
+ autoload :BaseEditing
8
+ autoload :BaseModals
9
+ autoload :SuccessMessage
10
+
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module KonoUtils
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kono_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-18 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: zeitwerk
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: active_type
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -211,6 +197,7 @@ files:
211
197
  - lib/kono_utils/base_editing_core_helper.rb
212
198
  - lib/kono_utils/base_editing_helper.rb
213
199
  - lib/kono_utils/base_search.rb
200
+ - lib/kono_utils/concerns.rb
214
201
  - lib/kono_utils/concerns/active_record_translation.rb
215
202
  - lib/kono_utils/concerns/active_storage_remover_helper.rb
216
203
  - lib/kono_utils/concerns/base_editing.rb