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 +4 -4
- data/lib/gourami/attributes.rb +2 -1
- data/lib/gourami/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3779db38f4b70d32e20dd18a93475ce89bb060d2
|
4
|
+
data.tar.gz: 1782175e4495a98bcdc11a4168daaae3bdc08cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98147fa182b83285ce9d9fc9a841608b05a4e938338efcccf6867735a1f218fe64864ea5ae66c25772e4511c760b011d89ea5b3b756fb79295a7dba7254ec221
|
7
|
+
data.tar.gz: ca40a30b3db73ffc95d2bdb9c9eeac3ae84c9539258bdc140690f760e145d2f7ed43c6d37e89d8c3dfdbbbfe2b496dfeb63f169f40d85a9055acd28a513895d6
|
data/lib/gourami/attributes.rb
CHANGED
@@ -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
|
|
data/lib/gourami/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2020-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|