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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69ea25a5800b85ee00d0af3c0129aec353c1fa95
4
- data.tar.gz: 9bf8e1ae90ce5094fa1c9bb3a15e736c151fe491
3
+ metadata.gz: 6b1682255e31a6958a82b8a8fd45e9afaba9b8a0
4
+ data.tar.gz: e119f7a5ca8551568fd427e7fd79183cbbe43539
5
5
  SHA512:
6
- metadata.gz: b03505ddcac1cc3a69ed2eca8dee762d35872d0063dec027214894c06263be54de8a160b9f0c0d36cea1cda2aa51995060f814e0c763daa33eb94ce8f633fbf7
7
- data.tar.gz: 8a2971ff0047dcd9ec8a28c62211bc0f39aa327fd11165faf53775e20bcde6b7945538c8667abde0b84debc6f87f12347373d0db400985ccbab79e7d34c62cfb
6
+ metadata.gz: e0686da1f4cc3f2890729bac493027a676b716cc24a740d775f56940beba9b30fdb1f3c5257102937b67d5b2c68829e41bdde1edb5eb6f8189cb7fbe3165a689
7
+ data.tar.gz: e0b91fa13d358ada299c370657afdc82e0bb8ff00d9f9ce34984aa1a8ed0e120e208351aa5d1aa80552515853253d1de74d3b49672fa455c056144b206111a1e
@@ -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)
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'tokyo'
3
- spec.version = '0.0.5'
3
+ spec.version = '0.0.6'
4
4
  spec.authors = ['Slee Woo']
5
5
  spec.email = ['mail@sleewoo.com']
6
6
  spec.description = 'Super-simple testing library for Ruby'
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.5
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-01 00:00:00.000000000 Z
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.5
194
+ summary: tokyo-0.0.6
195
195
  test_files: []