tainbox 0.2.3 → 0.2.4

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: f1d90e3036928f02e1e541bb6be2442a2eef11dd
4
- data.tar.gz: 8f82d0447b079b1eefd8ecd4770d80ae421a1419
3
+ metadata.gz: b2735a31c1d27ad1a86053b6905d4893c69dd1e4
4
+ data.tar.gz: 091caf4740fd5367953c5b7c967f81a0f641851d
5
5
  SHA512:
6
- metadata.gz: b3dd133bcc4b170c2628c14f22338e546b1ce6d150347175997c2894411205943654193e52d7df51d32693300559c9ada285c3c0e6a54839206e16d83a594d31
7
- data.tar.gz: ffc7c3348fc39ba1fec0d99f06016e3248ebbce12dacbde5516e194e4c9e7cb9355be11ef0d0c4c566ff3b92f845bb28617374a2ffc6b9af303583eea1db757c
6
+ metadata.gz: c50e882c9ec96f1b432ada0556736d9c3ecb977377ab5e04ac18e6d1a8bec06aca0b4f1392e813608ebaf52ac12a7bdcbe3862f1b0e9d4a1818daf086e60ba7d
7
+ data.tar.gz: 82963904be2adf09142aa7672041d9b158ea990f233aea1ffd3d73edc44be8a9e2a6bea5818667e798a2bfeadffbf05f60bd73f4b6c9862aff43d5241dae4d6b
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.2.4
4
+
5
+ * Fix bug where `:readonly` behaved as `:writeonly` and vice versa
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Tainbox
2
2
 
3
- Tainbox is a utility gem that can be used to inject attributes into ruby objects. It is similar to <a href="https://github.com/solnic/virtus">Virtus</a>, but works a bit more sensibly (hopefully) and throws in some additional features.
3
+ Tainbox is a utility gem that can be used to inject attributes into Ruby objects. It is similar to <a href="https://github.com/solnic/virtus">Virtus</a>, but works a bit more sensibly (hopefully) and throws in some additional features.
4
4
 
5
5
  ## But we already have attr_accessor!
6
6
 
@@ -17,7 +17,7 @@ module Tainbox::ClassMethods
17
17
 
18
18
  def attribute(name, type = nil, **args)
19
19
  args = args.dup
20
- readonly, writeonly = args.delete(:writeonly), args.delete(:readonly)
20
+ readonly, writeonly = args.delete(:readonly), args.delete(:writeonly)
21
21
  definer = Tainbox::AttributeDefiner.new(self, name, type, args)
22
22
  definer.define_getter unless writeonly
23
23
  definer.define_setter unless readonly
@@ -1,3 +1,3 @@
1
1
  module Tainbox
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
data/lib/tainbox.rb CHANGED
@@ -10,6 +10,7 @@ module Tainbox
10
10
  end
11
11
  end
12
12
 
13
+ require_relative 'tainbox/version'
13
14
  require_relative 'tainbox/class_methods'
14
15
  require_relative 'tainbox/instance_methods'
15
16
  require_relative 'tainbox/type_converter'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tainbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Gubitskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-16 00:00:00.000000000 Z
11
+ date: 2015-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - ".rspec"
78
+ - CHANGELOG.md
78
79
  - Gemfile
79
80
  - LICENSE.txt
80
81
  - README.md