finix 0.13 → 0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/finix.rb +6 -5
  3. data/lib/finix/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODNmZGZiNzc0NGE2NWI5NTlmMzUyZDA4NWIxZmFjZjdmM2Q2ODFmZg==
4
+ ODc0MGI2NjMyODJhZmJkZWYyZDIzODcwNWQzYzEyZmYyODI1YWRjMA==
5
5
  data.tar.gz: !binary |-
6
- MGVjZWQ5NDgwNTBhZmFlNGJjODZiZjZhM2M4YTBiYmY3ODk3NDI3NQ==
6
+ NzE3MjE0N2E2OGU4ZWI5N2EzZDZjY2E1NjY0MmJlZjE1NWNhOThmZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDQ3MzBjOTQ0ZDg5OTRlZGIxYmJjYWY0OWMzYmM3MmU4NjZkYzJkZWU2MDIz
10
- OTNhNWZlOTg2MzkyZTA4OWZjNDhiZTk4ZGEzMzEzN2RjMGM0MzAzZGM2Zjhi
11
- MGU4YjRmMWQwYzE3ZDhhMWIxZmE5ZTU1ZjkwYzBkMGQ2MTRlYjU=
9
+ NTM1YTBlYTU0ZTJhMDlkNzU2NTcwN2I5ZjdjMzI1MmYzYTU0YmI5NjRkZjU0
10
+ MTY4MjYyYzg5NDEyNzYxMWY0MTdmODkzZDE4NjkzMDFiYWJiMTE1NDQzN2Ez
11
+ OWZlMTIyYzM0MjEwZmUyYmJkZWIwYzY1ZWRjMjhkODg2N2RiYmU=
12
12
  data.tar.gz: !binary |-
13
- YjFkOGQ5M2E3NzMxYjg1ZDg4NjZjYmJhNmJmNjFjOWMzZTRmNGUxMWQyMjBk
14
- NWI2ZWE3MDcyMThhYzVlNWMwM2UyY2FiZGJhZDdjODBkNjliZWQxNWFmMjkz
15
- MGFjNjczYTI0ODVkYWU0OWU4ZGUzNzA2ZmRhNWY2ZjljYThhNTI=
13
+ Yjc1MjYyMjI3YWMyYjIzMWVkYjAzNjkyNWY4NGUwNzZlMzhjNTc0Yzk5YWNh
14
+ MTM5OTZjMWEzZDQ0NzYwZTQzZTc5Mjg5OTg1NDQ1ZjI3ZGI3M2ZhMjIzYTk4
15
+ MmUxNWM3Nzk5ZGMwNDMzMmFiMGZmODg5ODE4YTgzNzJjNzFlYjY=
@@ -44,11 +44,12 @@ module Finix
44
44
 
45
45
  def get_href(cls)
46
46
  href = Finix.hypermedia_registry.key(cls)
47
- href = Finix.hypermedia_registry.key(cls.superclass) if href.nil?
48
- if href.nil? # support wrapper module
49
- mod = cls.name.split('::').first
50
- scls = cls.superclass.superclass.name.split('::').last
51
- href = Finix.hypermedia_registry.key(self.instance_eval "#{mod}::#{scls}")
47
+ sps = cls
48
+ while href.nil?
49
+ sps = sps.superclass
50
+ break if sps.nil?
51
+ clss = Finix::Utils.eval_class cls, sps.name.split('::').last
52
+ href = Finix.hypermedia_registry.key(clss)
52
53
  end
53
54
  href
54
55
  end
@@ -1,3 +1,3 @@
1
1
  module Finix
2
- VERSION = '0.13'
2
+ VERSION = '0.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finix
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.13'
4
+ version: '0.14'
5
5
  platform: ruby
6
6
  authors:
7
7
  - finix-payments