ror_hack 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ror_hack/object_hack.rb +9 -0
- data/lib/ror_hack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6156f884c57cec51cfada257b3e7ee0c368c3a8
|
4
|
+
data.tar.gz: ce17bc77a7129a4e5ecf3d39edc17109de486d5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c53f943f0ff77dee83d1b6ce5f04d5e483c3fb382902f9ab3a39c047dcb21617b0e5e7a6b1cd1d899a9cd70bcadafc1b1d75aab5a2061b7afa684c00ca7d9140
|
7
|
+
data.tar.gz: d844592c158cfaa1102a4af1cfd2b59ba819245ff4259d76af00f952a5f9869306cb316dc2dc9a0f40e530d226f89d12700d7608e82c77b83e5ecfe82a907bfc
|
data/lib/ror_hack/object_hack.rb
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
module RorHack
|
2
2
|
module ObjectHack
|
3
|
+
|
4
|
+
def current_namespace(str)
|
5
|
+
"#{self.parent_name}::#{str.to_s.camelize}"
|
6
|
+
end
|
7
|
+
|
8
|
+
def current_class_namespace(str)
|
9
|
+
"#{self.class.parent_name}::#{str.to_s.camelize}"
|
10
|
+
end
|
11
|
+
|
3
12
|
def exist_and_eql?(other)
|
4
13
|
self && (self == other)
|
5
14
|
end
|
data/lib/ror_hack/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ror_hack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- happyMing
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|