aux 0.1.0 → 0.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/aux/pluggable/connector.rb +5 -1
- data/lib/aux/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 862a78e8879ec01edc04a4c59c1a7468366f6b9ca8c10791b974553090e4f6c3
|
4
|
+
data.tar.gz: f247febfd9e323d3ed778dcf20cd3b73504a33feecbbeae06129465426143fda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fb78b1df17d234f1a1738143ca873f1c470f2aafc194dbcdeed2d730240ba3cfc07aeabf19fb33f0d7e9426fcb4523e53394d93e048cc836a856a2a750b2101
|
7
|
+
data.tar.gz: 100e911b442a7e422a5afd122f42e908ee39fe05a66f60db5ee8294ab4efb697a94234d5d8676f6e39d9ae8a849aa60c56112bdc7985700b5b50e42acc68a425
|
@@ -85,7 +85,11 @@ module Aux
|
|
85
85
|
# @return [Class] the loaded class
|
86
86
|
def load_class(cipher)
|
87
87
|
cipher.split('.').reduce(Object) do |namespace, class_name|
|
88
|
-
|
88
|
+
if defined?(ActiveSupport::Inflector)
|
89
|
+
namespace.const_get(class_name.camelcase)
|
90
|
+
else
|
91
|
+
namespace.const_get(class_name.split('_').map(&:capitalize).join)
|
92
|
+
end
|
89
93
|
end
|
90
94
|
end
|
91
95
|
end
|
data/lib/aux/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeny Boyko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|