y_support 2.1.2 → 2.1.3

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: baadc96c9834da6e35bc3b2b9fc8406123c3c68c
4
- data.tar.gz: e956e788aabb00f16ab6bef159b5900a00e945de
3
+ metadata.gz: 5a31253e047040b79d941205e6b57b4ce04dcc11
4
+ data.tar.gz: 0a6c42c3910333e8ea9fdb3202f3142df2998006
5
5
  SHA512:
6
- metadata.gz: 06615d7a25a37c48818e8553c0d0f528397ec5035c04bd1fbd5b1a991b4646dbd928fe3f620b4b51cde6c226c5aacab1b4baab3e78495ca1935d662fe66bbb48
7
- data.tar.gz: 9a235fe65a3a7b51f8e037fb0f50d49dfe5f14e75b74a4b8ff4fa98c6a7fe4beea0d9d19b0a71259ec0f560d0242f33a94466914f3fa57d0e23681aa93106eb9
6
+ metadata.gz: 8966c80f878cfdeb539a6247366f912316c2310efff5bbfdb088adbe48d16069c3af1460db8900f2dd21e24e04628ed773617f7a9330e9d38c456717bd4087f9
7
+ data.tar.gz: ab81ab0d831c8417f14ae7bbf1e4886cdbc1c283026144c8eb79335ad7596054d9068a816479e8f942c6a00ca954d9bc842a83986a79ba439aa64f8d1bc2224a
@@ -152,3 +152,4 @@ class Hash
152
152
  return nil
153
153
  end
154
154
  end
155
+
@@ -4,6 +4,6 @@ class Object
4
4
  # Constructs the string "#{self.class}:#{self}". Useful for inspection.
5
5
  #
6
6
  def insp
7
- "#{self.class}:#{self}"
7
+ "#{self}:#{self.class}"
8
8
  end
9
9
  end
@@ -73,13 +73,13 @@ module NameMagic
73
73
 
74
74
  def self.included target
75
75
  if target.is_a? Class then # decorate #new
76
- class << target
76
+ target.singleton_class.class_exec do
77
77
  # Primer that sets the namespace of the class to self if the user has
78
78
  # not defined otherwise when this method is first called.
79
79
  #
80
- def namespace
80
+ define_method :namespace do
81
81
  extend ::NameMagic::NamespaceMethods
82
- define_singleton_method :namespace do self end # redefines itself
82
+ define_singleton_method :namespace do target end # redefines itself
83
83
  namespace
84
84
  end
85
85
  end
@@ -1,4 +1,4 @@
1
1
  module YSupport
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  DEBUG = false
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: y_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-16 00:00:00.000000000 Z
11
+ date: 2013-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport