wedge 0.1.68 → 0.1.69

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41fe857ef07550450bb6ca556fd02b17e58728d0
4
- data.tar.gz: 821b5e9dda90da11ffe161a9553553975b4643f0
3
+ metadata.gz: 8b393be5d6b9fb08d4b7927f79d3eefb7443a5fd
4
+ data.tar.gz: 0da2d3fda1c4e8fc758eed7749ffe6d52eeb6ece
5
5
  SHA512:
6
- metadata.gz: d6d0064546a00701624e21fbc8bfa0be188b93bc7734f7db24491d5aad30b55d94778c5865aeee8634785ec6e6a94cfc1c2d013c89dcc63c6f055355ab7c91f6
7
- data.tar.gz: fdee8f095fac654eab1d1c133752b69e7c92a2f66a66bc34af043bbfda91720273b098e838cbf4adfcbb1f7836c0458e4917ca2dd2a91c116704d944b22dc1c0
6
+ metadata.gz: 26014ffe567a2e8c07f211b046b2bc4a23eeda5fb800a8450d62ae7decb6929fd18bdb06f633172ef0c9124c6f6abc1e0eaa1118736d99fc11db8664e201b120
7
+ data.tar.gz: 7e14a98f0ac52bd81a97eb338d737b4704eb4e73793f5ac3772ce28cd3f83d0cccd09f7be09293e4627dc181034504b53c4d92e4c3ebbfc244ae69692b838b61
@@ -71,7 +71,7 @@ class Wedge
71
71
  private
72
72
 
73
73
  def get_class_name(klass)
74
- if !klass.is_a?(Symbol) && klass.method_defined?(:original_class_name)
74
+ if !klass.is_a?(Symbol) && klass.respond_to?(:original_class_name)
75
75
  klass.original_class_name
76
76
  else
77
77
  [NilClass, Symbol].include?(klass.class) ? klass : klass.name
@@ -79,7 +79,7 @@ class Wedge
79
79
  end
80
80
 
81
81
  def get_class(object)
82
- if object.class.method_defined?(:original_class)
82
+ if object.class.respond_to?(:original_class)
83
83
  object.class.original_class
84
84
  else
85
85
  [NilClass, Symbol, Class].include?(object.class) ? object : object.class
data/lib/wedge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.68'
2
+ VERSION = '0.1.69'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.68
4
+ version: 0.1.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj