power_assert 1.1.2 → 1.1.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
  SHA256:
3
- metadata.gz: 2a370d0589f6825379578235e06ca2c1d249577582acda601f73d83bdc90220f
4
- data.tar.gz: 0ff765413706da6b356e96ee17b6767b6074b8093b9776f65e025d520395fc0b
3
+ metadata.gz: fafbacedd1becf9af37faac7bb16a421a942ca09023da5cb1d4193728d8e9a2f
4
+ data.tar.gz: 8c7ab62fed1753794ec81de417cd44790c94c79e8bd24667bbdf17b036e576aa
5
5
  SHA512:
6
- metadata.gz: 9c3bc4482abf9078cfc429b4ca32865521a11d9bc5ecc5cdaec7d796edd9f99d9146214101d10fe58dfe4438b5499a07e348396ed96e86dae6c6a6aab5fcd6a5
7
- data.tar.gz: 8197767a6e6ac199aa599a332254e7fdb40252856eb3a411ac55320af7bf25c4ae58591d3f3017d547aa67436a40ee58dac26bb5688ed627ebbfc65e21986d2c
6
+ metadata.gz: 58cf9bde7c6dd7586470e9bd0d10c5ff6c02983854ce59eb6ca27e933ee77ec325bc178f268883884098f2b29196bad0906cacfe161a27221cbb4040dec79085
7
+ data.tar.gz: '085b5e61f07309413a163e07d361c6257a685df7460451226cc95701114b7e1812c6d5efe935fdc012cf9756b016419065b99ebf272c2a7a6b51e3e6cc24270c'
@@ -179,6 +179,8 @@ module PowerAssert
179
179
  lineno = locs.last.lineno
180
180
  if File.exist?(path)
181
181
  line ||= File.open(path) {|fp| fp.each_line.drop(lineno - 1).first }
182
+ end
183
+ if line
182
184
  @parser = Parser.new(line, path, lineno, @assertion_proc.binding, assertion_method.to_s, @assertion_proc)
183
185
  end
184
186
  end
@@ -1,3 +1,3 @@
1
1
  module PowerAssert
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency 'bundler'
25
25
  s.add_development_dependency 'pry'
26
26
  s.add_development_dependency 'byebug'
27
+ s.add_development_dependency 'benchmark-ips'
27
28
  s.extra_rdoc_files = ['README.rdoc']
28
29
  s.rdoc_options = ['--main', 'README.rdoc']
29
30
  s.licenses = ['2-clause BSDL', "Ruby's"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_assert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuki Tsujimoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-10 00:00:00.000000000 Z
11
+ date: 2018-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: benchmark-ips
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: Power Assert for Ruby. Power Assert shows each value of variables and
98
112
  method calls in the expression. It is useful for testing, providing which value
99
113
  wasn't correct when the condition is not satisfied.