tokyo 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tokyo/assert.rb +0 -1
- data/lib/tokyo/unit.rb +1 -0
- data/tokyo.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b1682255e31a6958a82b8a8fd45e9afaba9b8a0
|
4
|
+
data.tar.gz: e119f7a5ca8551568fd427e7fd79183cbbe43539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0686da1f4cc3f2890729bac493027a676b716cc24a740d775f56940beba9b30fdb1f3c5257102937b67d5b2c68829e41bdde1edb5eb6f8189cb7fbe3165a689
|
7
|
+
data.tar.gz: e0b91fa13d358ada299c370657afdc82e0bb8ff00d9f9ce34984aa1a8ed0e120e208351aa5d1aa80552515853253d1de74d3b49672fa455c056144b206111a1e
|
data/lib/tokyo/assert.rb
CHANGED
@@ -131,7 +131,6 @@ module Tokyo
|
|
131
131
|
|
132
132
|
private
|
133
133
|
def __assert__ message, arguments, block
|
134
|
-
Tokyo.total_assertions << true
|
135
134
|
Kernel.throw(:__tokyo_status__, @object[:raised]) if @object[:raised]
|
136
135
|
result = __send_message__(@object[:returned], message, arguments, block)
|
137
136
|
return true if (@assert && result) || (@refute && !result)
|
data/lib/tokyo/unit.rb
CHANGED
@@ -12,6 +12,7 @@ module Tokyo
|
|
12
12
|
:refute
|
13
13
|
].each do |meth|
|
14
14
|
define_method meth do |obj = nil, &block|
|
15
|
+
Tokyo.total_assertions << true
|
15
16
|
__objects__[obj = block ? Tokyo.call_block(block) : {returned: obj}.freeze] = true
|
16
17
|
__assertions__.push(Tokyo::Assert.new(obj, meth, caller[0])).last
|
17
18
|
end
|
data/tokyo.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tokyo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Slee Woo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-progressbar
|
@@ -188,8 +188,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
version: '0'
|
189
189
|
requirements: []
|
190
190
|
rubyforge_project:
|
191
|
-
rubygems_version: 2.4.5
|
191
|
+
rubygems_version: 2.4.5.1
|
192
192
|
signing_key:
|
193
193
|
specification_version: 4
|
194
|
-
summary: tokyo-0.0.
|
194
|
+
summary: tokyo-0.0.6
|
195
195
|
test_files: []
|