wolf_core 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/version.rb +1 -1
- data/lib/wolf_core.rb +2 -0
- metadata +15 -3
- data/lib/wolf_core/utils/hash_extension.rb +0 -26
- data/lib/wolf_core/utils/object_extension.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b630da917ad473715336622e1089d9f5fe560a31b21a8618e21e1f6ca79dcbb2
|
4
|
+
data.tar.gz: d51967508c290fcd7f7631405a1fdfc2abc7406b9fa52a35b48eef8c33d0316e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6eaf5bde62cca9d34f082bceedbfef952d35465b451c3e4f963b161ea1cd43cd1c8415a83a9f7484600601dc29dd31192f7d1d980301caa59cf33e102059f70
|
7
|
+
data.tar.gz: 44be0309aa988db4784fb10fe9c7632e94bcdb4a03e5148a847ae090d18c52adaf5f492f92a3a19ae14e2c5b758a7bf12f56083448e714d4aacbf0ced544f5d3
|
data/lib/wolf_core/version.rb
CHANGED
data/lib/wolf_core.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wolf_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: Repository to store shared code among Ruby projects.
|
28
42
|
email:
|
29
43
|
- jroncallo96@gmail.com
|
@@ -36,8 +50,6 @@ files:
|
|
36
50
|
- lib/wolf_core/application/salesforce_oauth_service.rb
|
37
51
|
- lib/wolf_core/application/service_exception.rb
|
38
52
|
- lib/wolf_core/infrastructure/http_data_source.rb
|
39
|
-
- lib/wolf_core/utils/hash_extension.rb
|
40
|
-
- lib/wolf_core/utils/object_extension.rb
|
41
53
|
- lib/wolf_core/utils/require_utils.rb
|
42
54
|
- lib/wolf_core/utils/result.rb
|
43
55
|
- lib/wolf_core/version.rb
|
@@ -1,26 +0,0 @@
|
|
1
|
-
class Hash
|
2
|
-
def with_indifferent_access
|
3
|
-
hash = self.dup
|
4
|
-
hash.extend IndifferentAccess
|
5
|
-
hash
|
6
|
-
end
|
7
|
-
|
8
|
-
module IndifferentAccess
|
9
|
-
def [](key)
|
10
|
-
fetch(key.to_s) { fetch(key.to_sym) { nil } }
|
11
|
-
end
|
12
|
-
|
13
|
-
def fetch(key, *extras)
|
14
|
-
super(key.to_s, *extras)
|
15
|
-
rescue KeyError
|
16
|
-
super(key.to_sym, *extras)
|
17
|
-
end
|
18
|
-
|
19
|
-
def has_key?(key)
|
20
|
-
key?(key.to_s) || key?(key.to_sym)
|
21
|
-
end
|
22
|
-
alias_method :include?, :has_key?
|
23
|
-
alias_method :key?, :has_key?
|
24
|
-
alias_method :member?, :has_key?
|
25
|
-
end
|
26
|
-
end
|