tainbox 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2735a31c1d27ad1a86053b6905d4893c69dd1e4
4
- data.tar.gz: 091caf4740fd5367953c5b7c967f81a0f641851d
3
+ metadata.gz: f3cdb8b1f3522aa2aa7727643d085dd51331b793
4
+ data.tar.gz: da26b459da9500f1d165974c3c51a7f25eeb2a17
5
5
  SHA512:
6
- metadata.gz: c50e882c9ec96f1b432ada0556736d9c3ecb977377ab5e04ac18e6d1a8bec06aca0b4f1392e813608ebaf52ac12a7bdcbe3862f1b0e9d4a1818daf086e60ba7d
7
- data.tar.gz: 82963904be2adf09142aa7672041d9b158ea990f233aea1ffd3d73edc44be8a9e2a6bea5818667e798a2bfeadffbf05f60bd73f4b6c9862aff43d5241dae4d6b
6
+ metadata.gz: c102942b369c5af93a4ad7501bfc7c31b65be312459bf77a4214959cb0473748dca9c46d6e547a8274fcb6a1ab8bdb3dc6afb6e876a99139539de277aca50333
7
+ data.tar.gz: 55690f07a99f245640e1c46e3dcc80fbf181d7503d23c2149fbce6652ea42db1b144a67f042315673316cf0b3a8367f8ed8f3e366b941a0b0ab7ad151f26ae0c
data/CHANGELOG.md CHANGED
@@ -3,3 +3,7 @@
3
3
  ## 0.2.4
4
4
 
5
5
  * Fix bug where `:readonly` behaved as `:writeonly` and vice versa
6
+
7
+ ## 0.2.5
8
+
9
+ * `suppress_tainbox_initializer!` is inherited correctly
@@ -5,15 +5,20 @@ module Tainbox::ClassMethods
5
5
 
6
6
  def inherited(subclass)
7
7
  subclass.tainbox_attributes = tainbox_attributes.dup
8
+ subclass.tainbox_initializer_suppressed = tainbox_initializer_suppressed
8
9
  end
9
10
 
10
11
  def tainbox_initializer_suppressed?
11
12
  !!tainbox_initializer_suppressed
12
13
  end
13
14
 
15
+ protected
16
+
17
+ attr_writer :tainbox_initializer_suppressed
18
+
14
19
  private
15
20
 
16
- attr_accessor :tainbox_initializer_suppressed
21
+ attr_reader :tainbox_initializer_suppressed
17
22
 
18
23
  def attribute(name, type = nil, **args)
19
24
  args = args.dup
@@ -1,3 +1,3 @@
1
1
  module Tainbox
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
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.4
4
+ version: 0.2.5
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-09-10 00:00:00.000000000 Z
11
+ date: 2015-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport