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 +4 -4
- data/CHANGES.md +4 -0
- data/lib/disposable/twin/parent.rb +3 -1
- data/lib/disposable/version.rb +1 -1
- data/test/twin/twin_test.rb +14 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 530dcd8e13e2d3eeb6a5ef859a3380f610454980
|
4
|
+
data.tar.gz: d6a2514c02e39f6bdd45d92c604f1ee332edb1f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f78687f62314fc4dd51b2ed1a6cca4313c84db0f78e18d683131daf18acab106a1e5e031e0e27bf05e26111a68e8e5e67aeba431aa842ee7eff9889349f81d2
|
7
|
+
data.tar.gz: 5875a24195e83c063c8446dc9a06ad9642e861b52b1f2573ed1ac6884d2a4eaee0af82a7dc7de3fc6261797e51f02593ef6f9aa48d18d46221d1d0303b633e63
|
data/CHANGES.md
CHANGED
data/lib/disposable/version.rb
CHANGED
data/test/twin/twin_test.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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
|