blank_slate 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: 567001f8d93a8d8bb9845be407a92f367e32043838c78095bf844946e0ad8866
4
- data.tar.gz: 78bedcf0d089ec310d61f7881eb185a3e889f5bd5a65d6d5b26a6b6e33a70926
3
+ metadata.gz: d98e8ec51e0d5404e761fa84b0b4f7fc65c238a752d747ea4b5ba6f94a3c2c1f
4
+ data.tar.gz: dc6643c7f80e4d635133cd1c8b3dfebe9132bf0ee5896f4ad86ba7808112882a
5
5
  SHA512:
6
- metadata.gz: a86f1397bfc4166be81f3becf22638cc478862a03b860d1b9161b2c04615d574228b84a71f80c384b3917a8aa83267626fab5a93e9ba14c12b9553fbbf8b83b7
7
- data.tar.gz: d9e881744f54d53e7d7b6e43af2754e09fa759192a890a0ecbee3da99fe512030cd6d379504d4a8cc97de67e9a0c398966c51bd296de97e01e6af997b3acfcba
6
+ metadata.gz: 9ac8ea9d6e58504ea64e013a081c692dc5d8b5b4bd870f90445b70380cd3e8b1ddaf26b875690681f9a94ef850afef2707b2505e4d56261f0ce19b722ec9d195
7
+ data.tar.gz: 2b725ebbf53bdf4e6c711d3d21f17fdb7d695ae687f93de36ed59709cfcdc7adff7531aedbc82fa157209c4e74d58335cf302f27b2afeca7101db1043466dc86
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  Gemfile.lock
10
+ *.gem
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.1.1
2
+
3
+ 1.1.0 used method_defined? which has an arity of 2 in Ruby 2.6 but 1 in previous rubies.
4
+ This was changed to check instance_methods(false)
5
+
1
6
  # 1.1.0
2
7
 
3
8
  Make BlankSlate a shallow copy of a class. Ancestor methods are preserved.
data/lib/blank_slate.rb CHANGED
@@ -3,7 +3,7 @@ module BlankSlate
3
3
  blank_slate = Class.new(klass, &block)
4
4
  blank_slate.class_eval do
5
5
  klass.instance_methods(false).
6
- reject{|meth| method_defined?(meth, false) }.
6
+ reject{|meth| instance_methods(false).include?(meth) }.
7
7
  each do |meth|
8
8
  define_method(meth){ nil }
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module BlankSlate
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blank_slate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay
@@ -98,7 +98,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.0.2
101
+ rubyforge_project:
102
+ rubygems_version: 2.7.6
102
103
  signing_key:
103
104
  specification_version: 4
104
105
  summary: Impliment a null object without resorting to method_missing.