disposable 0.4.2 → 0.4.3

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: f5456dc9441dfd2abd73248171b431ebc61aa999
4
- data.tar.gz: 1dddb07f693e9d894387ee25d9127b15d4ceadcb
3
+ metadata.gz: 530dcd8e13e2d3eeb6a5ef859a3380f610454980
4
+ data.tar.gz: d6a2514c02e39f6bdd45d92c604f1ee332edb1f3
5
5
  SHA512:
6
- metadata.gz: 362fd4826566616d0c8f1129b5898f27a1f7c342e4472843ea406fdcd9dc0782d2188e2e5bf228bc225b6607f2cefbfc4619fe61f7edfaf2616ebc84bb635721
7
- data.tar.gz: 287ed98cc543a4cee24aafa03ffc7c372fc1cb7e904c11618d8b7caa5afda2839960645db873a32edfce2d035fc23e92618f66a4e1c5bbbdb8e5c13e995532b4
6
+ metadata.gz: 7f78687f62314fc4dd51b2ed1a6cca4313c84db0f78e18d683131daf18acab106a1e5e031e0e27bf05e26111a68e8e5e67aeba431aa842ee7eff9889349f81d2
7
+ data.tar.gz: 5875a24195e83c063c8446dc9a06ad9642e861b52b1f2573ed1ac6884d2a4eaee0af82a7dc7de3fc6261797e51f02593ef6f9aa48d18d46221d1d0303b633e63
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.4.3
2
+
3
+ * Fix `NoMethodError: private method `property' called for MyForm:Class in Reform.` by using `class_eval`.
4
+
1
5
  # 0.4.2
2
6
 
3
7
  * `Twin#schema` doesn't `extend` at runtime anymore but uses a decorator for `each`.
@@ -1,6 +1,8 @@
1
1
  module Disposable::Twin::Parent
2
2
  def self.included(includer)
3
- includer.property(:parent, virtual: true)
3
+ includer.class_eval do
4
+ property(:parent, virtual: true)
5
+ end
4
6
  end
5
7
 
6
8
  # FIXME: for collections, this will merge options for every element.
@@ -1,3 +1,3 @@
1
1
  module Disposable
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -138,3 +138,17 @@ class TwinAsTest < MiniTest::Spec
138
138
 
139
139
  end
140
140
  # TODO: test coercion!
141
+
142
+ class AccessorsTest < Minitest::Spec
143
+ Song = Struct.new(:format)
144
+
145
+ class Twin < Disposable::Twin
146
+ property :format # Kernel#format
147
+ end
148
+
149
+ it do
150
+ twin = Twin.new(Song.new("bla"))
151
+ twin.format.must_equal "bla"
152
+ twin.format = "blubb"
153
+ end
154
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disposable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uber
@@ -278,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
278
278
  version: '0'
279
279
  requirements: []
280
280
  rubyforge_project:
281
- rubygems_version: 2.5.1
281
+ rubygems_version: 2.5.2
282
282
  signing_key:
283
283
  specification_version: 4
284
284
  summary: Decorators on top of your ORM layer with change tracking, collection semantics