rubycube 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cube.gemspec +1 -1
- data/examples/demo.rb +2 -1
- data/examples/traits.rb +2 -1
- data/lib/cube/toplevel.rb +4 -0
- data/lib/cube/traits.rb +8 -1
- metadata +2 -3
- data/rubycube-0.2.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a67b0c4bfcd1f828f6f2c976dfacb893fd3447d
|
4
|
+
data.tar.gz: 2185c04360ba16d024ba0e3c4369cb27fd6ea75a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54329a70c088a60cefb0dbb060274fa4a3ef0619d2c0363bd08032d3927d0735238e319789049850f45f174f8194d312db0aea409bd02fb8b29de0a9479c655f
|
7
|
+
data.tar.gz: 7dad8733970a4a3734a55e37d3a34762112643a6f54ab7094098884d90cc5346fa1e41d00217e5990768b90df0326842ec699f9c548bae113ab4972ba33da723
|
data/cube.gemspec
CHANGED
data/examples/demo.rb
CHANGED
data/examples/traits.rb
CHANGED
data/lib/cube/toplevel.rb
CHANGED
data/lib/cube/traits.rb
CHANGED
@@ -24,7 +24,14 @@ module Cube
|
|
24
24
|
conflicts = public_instance_methods & mod.public_instance_methods
|
25
25
|
errors = conflicts.map { |c|
|
26
26
|
meth = mod.instance_method(c)
|
27
|
-
|
27
|
+
if meth.owner.is_a?(Class)
|
28
|
+
if meth.owner == mod.superclass
|
29
|
+
module_exec { remove_method(c) }
|
30
|
+
end
|
31
|
+
nil
|
32
|
+
else
|
33
|
+
{ meth: meth, owner: meth.owner }
|
34
|
+
end
|
28
35
|
}.compact
|
29
36
|
unless errors.empty?
|
30
37
|
message = "\n" + errors.map { |e| e[:meth].to_s }.join("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubycube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aditya Godbole
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- certs/djberg96_pub.pem
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test-unit
|
@@ -125,7 +125,6 @@ files:
|
|
125
125
|
- lib/cube/interfaces.rb
|
126
126
|
- lib/cube/toplevel.rb
|
127
127
|
- lib/cube/traits.rb
|
128
|
-
- rubycube-0.2.1.gem
|
129
128
|
- test/test_interface.rb
|
130
129
|
homepage: http://github.com/adityagodbole/rubycube
|
131
130
|
licenses:
|
data/rubycube-0.2.1.gem
DELETED
Binary file
|