alki-support 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2154479b101fa45965a285e34f6b6e363e4e8e77
4
- data.tar.gz: 4777bd20087b31974d40e14358710ec5d8deb285
3
+ metadata.gz: 5e79e4dbfb6e04f92d4b9298ee0538e2d6a49b51
4
+ data.tar.gz: 6c63e0f671e0749899c23718d8a5ef439783c913
5
5
  SHA512:
6
- metadata.gz: 0aed4bac3d7fd8df1e9098a1d2021ac50f97fbc9146def685eac94ca78b7a45dcda7ff5313861829fd4db2d3191669696e1a1ba2b476916a7e36907c6976db4c
7
- data.tar.gz: 59ed3f0b2a30ea02455faf812b58c08d55368d38205140213d0c83e9e4fa83ca69161aed0122a369efac86d4d5607881dc5ab9599c2d6f805b7ea0954ae5eb0d
6
+ metadata.gz: 954b82451d6429fd58d0d01b8b7982eea6a66fe629686b870b660d4fbfb04ca86e809679b96b725db3c0cdd9b4cd513fefafc7fe52edfb2526431d713823a57f
7
+ data.tar.gz: dade4135f7ef06fa95dd6063adad1cd7115a65a0f4bfc6875165c506eec3aea0166a0086a6174e6cc0575f10c5840930b387cb9331d0292ac90053728850fd55
@@ -21,8 +21,8 @@ module Alki
21
21
  end.join('::')
22
22
  end
23
23
 
24
- def self.constantize(name)
25
- name.split('::').inject(Object) do |obj,el|
24
+ def self.constantize(name,parent = nil)
25
+ name.split('::').inject(parent || Object) do |obj,el|
26
26
  return nil unless obj.const_defined? el, false
27
27
  obj.const_get el, false
28
28
  end
@@ -52,4 +52,4 @@ module Alki
52
52
  end
53
53
  end
54
54
  end
55
- end
55
+ end
@@ -1,5 +1,5 @@
1
1
  module Alki
2
2
  module Support
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'
4
4
  end
5
- end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alki-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Edlefsen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-02 00:00:00.000000000 Z
11
+ date: 2016-12-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Various helper methods for Alki
14
14
  email: