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 +4 -4
- data/lib/kono_utils.rb +28 -15
- data/lib/kono_utils/concerns.rb +12 -0
- data/lib/kono_utils/version.rb +1 -1
- metadata +3 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5015498a44dc1be3efa63b564cc3ad7e0198e40ba2477d1fee1cfaad0bbe97f
|
4
|
+
data.tar.gz: f23eaa227ce615b319615dbc816e694641c875c9abfeba4d4cdd0d736ebf1783
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 667bcd329e9df24bce3836715b866f431fad52f29c63939ca7386e6a8dfc04bd68ead2158310755987d52919f955ef099059a1d15c49571cce90fe9cdbf68f37
|
7
|
+
data.tar.gz: a12bdf8b96758abcaea4e7e540fb936973936e7f388cbbb1450694cdc4b07b3fe118f42cf245450399c82b6553093dde433cce149701759845678ff8825396fd
|
data/lib/kono_utils.rb
CHANGED
@@ -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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
data/lib/kono_utils/version.rb
CHANGED
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.
|
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-
|
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
|