gourami 1.1.0 → 1.2.0

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: a1302c6c706d67636c8cf01672c1c50dbec89ff6
4
- data.tar.gz: 74147a041e097f6218f56f72ba9aa9faf6824e73
3
+ metadata.gz: 3779db38f4b70d32e20dd18a93475ce89bb060d2
4
+ data.tar.gz: 1782175e4495a98bcdc11a4168daaae3bdc08cd2
5
5
  SHA512:
6
- metadata.gz: 892353b9b9a4f4b9a55b7beeee102c72c025cfc7603dec3eec22c3372376bc9201537878a50c15af2bf7d10fd1307f0d57d843bd69dd29b29d9322dd8ecaf4bf
7
- data.tar.gz: 09bc3491c1b7733dccfd701cb10246ead8c32e7ddc6648d11f6975d556d0001a870f455e3a842d807575da2e312e8194323e5b551c136c26890b192e9599f1bd
6
+ metadata.gz: 98147fa182b83285ce9d9fc9a841608b05a4e938338efcccf6867735a1f218fe64864ea5ae66c25772e4511c760b011d89ea5b3b756fb79295a7dba7254ec221
7
+ data.tar.gz: ca40a30b3db73ffc95d2bdb9c9eeac3ae84c9539258bdc140690f760e145d2f7ed43c6d37e89d8c3dfdbbbfe2b496dfeb63f169f40d85a9055acd28a513895d6
@@ -2,6 +2,7 @@ module Gourami
2
2
  module Attributes
3
3
 
4
4
  module ClassMethods
5
+
5
6
  # Copy parent attributes to inheriting class.
6
7
  #
7
8
  # @param klass [Class]
@@ -26,7 +27,7 @@ module Gourami
26
27
 
27
28
  mixin = Module.new do |mixin|
28
29
  unless options[:skip_reader]
29
- if base.instance_methods.include?(name) && !options[:override_reader]
30
+ if !base.attributes.key?(name) && base.instance_methods.include?(name) && !options[:override_reader]
30
31
  raise AttributeNameConflictError, "#{name} is already a method. To use the existing method, use `:skip_reader => true` option. To override the existing method, use `:override_reader => true` option."
31
32
  end
32
33
 
@@ -1,3 +1,3 @@
1
1
  module Gourami
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gourami
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TSMMark
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-27 00:00:00.000000000 Z
11
+ date: 2020-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler