koine-attributes 0.3.0 → 0.3.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
- SHA1:
3
- metadata.gz: 2a9535455293c05a1e29ea4562853bc4d9616722
4
- data.tar.gz: 442426418ec93bdf7988551b30a97261a7639ed8
2
+ SHA256:
3
+ metadata.gz: 0e5084ba31f9adf1ea9b5fb6b78e9610fe9f356cfad3750ad29462464a1b32e1
4
+ data.tar.gz: 3f95460ef6d2b437f1acaa4c2b09e4362c89064eb6bde193bfae07bbeb6766f9
5
5
  SHA512:
6
- metadata.gz: 69ffc8f35383086566c9c59a0551b889769f5f502877b14f2442a65b41aaafbcaf2191a105de1f5b8f72d4395a6a367be4aaf715d22f1e5d2ba2a1bcd2ece97f
7
- data.tar.gz: d818f1fb1c4cdfa4e2e3ebf2d989ba73f7a7a7955be6d931b80359bea084308be03ebf79ab3cdac6bd7a6b28beacc77df84c488c8be0d7300e0739f0e6fd8af3
6
+ metadata.gz: d51f5a49e6c18ed7222eddb3ddd371f4e1f48650593d6bb077f4af938e9d699afeca5d9f811a48fcf6755cae895c9cc48639da54199a3339959826e7ed98c9af
7
+ data.tar.gz: 1df02b7f68f1ff5b19d32a01253ef8aa8dd671cd41de21f6715da37387120bbd656a34f54a136381cfc56a20a6a626ca7d7eec2542653da713b962c325e37ae8
data/.travis.yml CHANGED
@@ -7,6 +7,7 @@ rvm:
7
7
  - 2.4.0
8
8
  - 2.4.1
9
9
  - 2.4.2
10
+ - 2.5
10
11
  script:
11
12
  - bundle exec rake test:coveralls
12
13
  before_install: gem install bundler -v 1.14.6
@@ -1,4 +1,3 @@
1
- require 'forwardable'
2
1
  require 'koine/attributes/version'
3
2
  require 'koine/attributes/adapter/base'
4
3
 
@@ -154,7 +153,17 @@ module Koine
154
153
  @_attributes_factory.add_attribute(name, adapter, &block)
155
154
 
156
155
  instance_eval do
157
- def_delegators :attributes, name, "#{name}=", "with_#{name}"
156
+ define_method name do
157
+ attributes.send(name)
158
+ end
159
+
160
+ define_method "#{name}=" do |value|
161
+ attributes.send("#{name}=", value)
162
+ end
163
+
164
+ define_method "with_#{name}" do |value|
165
+ attributes.send("with_#{name}", value)
166
+ end
158
167
 
159
168
  define_method :== do |other|
160
169
  attributes == other.send(:attributes)
@@ -1,5 +1,5 @@
1
1
  module Koine
2
2
  module Attributes
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koine-attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Jacobus
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-26 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.6.13
166
+ rubygems_version: 2.7.6
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Stronger setters and getters