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 +4 -4
- data/lib/power_assert/context.rb +2 -0
- data/lib/power_assert/version.rb +1 -1
- data/power_assert.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fafbacedd1becf9af37faac7bb16a421a942ca09023da5cb1d4193728d8e9a2f
|
4
|
+
data.tar.gz: 8c7ab62fed1753794ec81de417cd44790c94c79e8bd24667bbdf17b036e576aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58cf9bde7c6dd7586470e9bd0d10c5ff6c02983854ce59eb6ca27e933ee77ec325bc178f268883884098f2b29196bad0906cacfe161a27221cbb4040dec79085
|
7
|
+
data.tar.gz: '085b5e61f07309413a163e07d361c6257a685df7460451226cc95701114b7e1812c6d5efe935fdc012cf9756b016419065b99ebf272c2a7a6b51e3e6cc24270c'
|
data/lib/power_assert/context.rb
CHANGED
@@ -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
|
data/lib/power_assert/version.rb
CHANGED
data/power_assert.gemspec
CHANGED
@@ -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.
|
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-
|
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.
|