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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a31253e047040b79d941205e6b57b4ce04dcc11
|
4
|
+
data.tar.gz: 0a6c42c3910333e8ea9fdb3202f3142df2998006
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8966c80f878cfdeb539a6247366f912316c2310efff5bbfdb088adbe48d16069c3af1460db8900f2dd21e24e04628ed773617f7a9330e9d38c456717bd4087f9
|
7
|
+
data.tar.gz: ab81ab0d831c8417f14ae7bbf1e4886cdbc1c283026144c8eb79335ad7596054d9068a816479e8f942c6a00ca954d9bc842a83986a79ba439aa64f8d1bc2224a
|
data/lib/y_support/name_magic.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
80
|
+
define_method :namespace do
|
81
81
|
extend ::NameMagic::NamespaceMethods
|
82
|
-
define_singleton_method :namespace do
|
82
|
+
define_singleton_method :namespace do target end # redefines itself
|
83
83
|
namespace
|
84
84
|
end
|
85
85
|
end
|
data/lib/y_support/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|