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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 537d2dcb14e404675c1d6b0a0a45ee22543004a2
4
- data.tar.gz: b886d0fe063e2a021793daae25da866b4e62103b
3
+ metadata.gz: f6156f884c57cec51cfada257b3e7ee0c368c3a8
4
+ data.tar.gz: ce17bc77a7129a4e5ecf3d39edc17109de486d5f
5
5
  SHA512:
6
- metadata.gz: b9fb9002182aa963c1f3efd8bfe9a6e50f105625e7881aa72d58345384cac769e6acfd8ce4a4412659b2dc7808560d67aa26939175afcf96527db3af0fe18155
7
- data.tar.gz: 2c7e90ed853db7b3e4c32f6cc63a421e07f2c3ec0e2526d0fac5ee65dfb5d4f943e9bee337e765d862f0cd6af4aa63a78ce52609c07b85e1a9e72a94f90d1d60
6
+ metadata.gz: c53f943f0ff77dee83d1b6ce5f04d5e483c3fb382902f9ab3a39c047dcb21617b0e5e7a6b1cd1d899a9cd70bcadafc1b1d75aab5a2061b7afa684c00ca7d9140
7
+ data.tar.gz: d844592c158cfaa1102a4af1cfd2b59ba819245ff4259d76af00f952a5f9869306cb316dc2dc9a0f40e530d226f89d12700d7608e82c77b83e5ecfe82a907bfc
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RorHack
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-22 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler