invisible 0.2.4 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e928cb33873c0a9e4d6a3dac359ca80c9d14b28584c5697c9eb702ddf723e3d0
4
- data.tar.gz: 9d74fa7b57f100fcdff73d52259099dad1495596151a8543b378748283953788
3
+ metadata.gz: 65ef329eb89307f93932f8bb0f0356d06332d4e625f2d2d8bacce79621a740ff
4
+ data.tar.gz: 5607e578539bf525bb3e9a2d70ae969d1d1892b4c2663b2a831540eeaaec99ae
5
5
  SHA512:
6
- metadata.gz: f58a4075089d38b5f9b578782c8ac3c0afb4cf9f7d5e80ff9fb048cce63e10a8e90a0bb840c7deb485254ad2ae95b6ae9ddf1155158c56b774766544118f1895
7
- data.tar.gz: ec1730fce3f4254437c437e08f29a0d3057dd37b93c09c07df8caea85c0bc40239a287127faa36e54be6a339f2c572182a8fab991e02978428d1c3148baeba15
6
+ metadata.gz: 6c514f30207c427ba89267a620fbc70b95d46d2ea802afaa7feeff3113601e051e57a25de12cbf036271f5535267c4355ebfe82eb7838eb94a7ccb1d12d065c6
7
+ data.tar.gz: 9c5f8ca6061c6e1fe7c99612608f4cd6541b145091c965ece9cbf8e6bfc6a81c154fa7b965c50074c2a9289fa2491377ee83fdd54efec13ec2a17caaeb724431
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 0.2
4
4
 
5
+ ### 0.2.5 (October 30, 2019)
6
+
7
+ * Handle namespaces when prepending ([#7](https://github.com/shioyama/invisible/pull/7))
8
+
5
9
  ### 0.2.4 (October 30, 2019)
6
10
 
7
11
  * Only dup module if prepending class has different visibility
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- invisible (0.2.3)
4
+ invisible (0.2.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "invisible/version"
2
3
 
3
4
  module Invisible
@@ -84,7 +85,7 @@ maintain their original visibility.
84
85
  mod = dup
85
86
 
86
87
  if name
87
- return if base.const_defined?(mod_name = "Invisible#{name}")
88
+ return if base.const_defined?(mod_name = ['Invisible', *name.split('::')].join('__'))
88
89
  base.const_set(mod_name, mod)
89
90
  end
90
91
 
@@ -1,3 +1,3 @@
1
1
  module Invisible
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invisible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg