modules 1.2.0 → 1.2.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/modules +1 -1
  3. data/lib/modules/interop.rb +7 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b36ba99ba435eed24047152bcec21629a26c5a5f
4
- data.tar.gz: 3f165a8a3d44564b4626195f4d268ea23eb69382
3
+ metadata.gz: 1005b828ab393e41d01e362f3d2b9cb44bf168f0
4
+ data.tar.gz: 159be7dff3f67d46085fc5b95d45c2ba9043fe93
5
5
  SHA512:
6
- metadata.gz: 4bf1944a9be5b0c7e2bd0f3b3091c7e8cfec80e1b563db0be98ba566e468832f37774e4adf36e74172a18824afc4ae7c634aa3c2a9152392d1fc4057e179446f
7
- data.tar.gz: fc55bf8b9428742bfa409c19ec328bc98b5e72a0a2961f6274218eba461d2d5d1cf8c61f15b753d6fe216bf2d01fb5b45bf93c84035419a94d7699a20a2e2e0a
6
+ metadata.gz: acdeb51768f561efc51b4f6da813d908f36fd5aba7846c80b3ed5b73fd077400266c5094b6e0aba9c4e0d7dc8e4adbecda3563c725bf81836ee63fd25c77265c
7
+ data.tar.gz: 1c278869fa3974ac0ad783092fbc3c51f1d9199d66c1a8d449a927b0430cd1664cd2b2953df0d8da4bfd4f8d6002e267d0299bb1bd093c7a5477a16f0c9852fd
@@ -15,7 +15,7 @@ def main
15
15
  end
16
16
 
17
17
  opts.on('-v', '--version') do
18
- puts '1.2.0'
18
+ puts '1.2.1'
19
19
  exit
20
20
  end
21
21
  end
@@ -55,7 +55,13 @@ module Interop
55
55
  new += children
56
56
  end
57
57
 
58
- result[str] = const.class == Module ? Class.new.extend(const) : const
58
+ if const.class == Module
59
+ const.private_instance_methods.each {|method| const.send(:public, method)}
60
+ result[str] = Class.new.extend(const)
61
+ else
62
+ result[str] = const
63
+ end
64
+
59
65
  return wrap_constants(new, result, visited)
60
66
  end
61
67
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modules
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gareth (Ari) Aye