disposable 0.1.2 → 0.1.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 +5 -0
- data/README.md +1 -1
- data/database.sqlite3 +0 -0
- data/lib/disposable/callback.rb +4 -0
- data/lib/disposable/twin/composition.rb +3 -1
- data/lib/disposable/version.rb +1 -1
- data/test/callback_group_test.rb +11 -0
- data/test/twin/composition_test.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c253349d4d314ee180fd275bf708c5d1dc3fcc2
|
4
|
+
data.tar.gz: 76b13c0d6262f330cc183c2498ab60f8cb0bf127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d5f2a357dac409f5d1c89dd20a2dc66d6de8526bc27f62a9b7b290291d8ff2d7073cc3c06b74722ceba3be6ed9289de47ed1ac08b63ea81b50ef620999b7927
|
7
|
+
data.tar.gz: 8d21e16cf85e61cec5cc2591386b1879642588b5afe48d41f490f7880b1467f3259004155407a5d582d00c3c79ff86990b0abd270489e9918db200b936665c5a
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
data/database.sqlite3
CHANGED
Binary file
|
data/lib/disposable/callback.rb
CHANGED
data/lib/disposable/version.rb
CHANGED
data/test/callback_group_test.rb
CHANGED
@@ -219,4 +219,15 @@ class CallbackGroupInheritanceTest < MiniTest::Spec
|
|
219
219
|
RemovingInheritGroup.representer_class.representable_attrs.get(RemovingInheritGroup.hooks[0][1]).representer_module.hooks.to_s.must_equal "[[:on_add, [:reset_song!]]]"
|
220
220
|
RemovingInheritGroup.representer_class.representable_attrs.get(RemovingInheritGroup.hooks[2][1]).representer_module.hooks.to_s.must_equal "[[:on_change, [:sing!]]]"
|
221
221
|
end
|
222
|
+
|
223
|
+
# Group::clone
|
224
|
+
ClonedGroup = Group.clone
|
225
|
+
ClonedGroup.class_eval do
|
226
|
+
remove! :on_change, :change!
|
227
|
+
end
|
228
|
+
|
229
|
+
it do
|
230
|
+
Group.hooks.size.must_equal 4
|
231
|
+
ClonedGroup.hooks.size.must_equal 3
|
232
|
+
end
|
222
233
|
end
|
@@ -43,7 +43,8 @@ class TwinCompositionTest < MiniTest::Spec
|
|
43
43
|
requester.name.must_equal "Greg Howe"
|
44
44
|
|
45
45
|
|
46
|
-
request.save
|
46
|
+
res = request.save
|
47
|
+
res.must_equal true
|
47
48
|
|
48
49
|
# make sure models got synced and saved.
|
49
50
|
song.id.must_equal 2
|
@@ -73,4 +74,11 @@ class TwinCompositionTest < MiniTest::Spec
|
|
73
74
|
|
74
75
|
nested_hash.must_equal(:song=>{"title"=>"Tease", "id"=>2}, :requester=>{"name"=>"Wooten", "id"=>1, "captcha"=>"Awesome!"})
|
75
76
|
end
|
77
|
+
|
78
|
+
# save with one unsaveable model.
|
79
|
+
#save returns result.
|
80
|
+
it do
|
81
|
+
song.instance_eval { def save; false; end }
|
82
|
+
request.save.must_equal false
|
83
|
+
end
|
76
84
|
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.1.
|
4
|
+
version: 0.1.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: 2015-06-
|
11
|
+
date: 2015-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uber
|