pork 1.2.0 → 1.2.1

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: b274b6a156004d552304773fb69e973bfaf353d8
4
- data.tar.gz: 82f04565402f03bd35384c40360d5620dc38459f
3
+ metadata.gz: 6903decbd7e24cdc4848e408399a9140b99ba00a
4
+ data.tar.gz: 6c063a3b6d9f2d235a01d0ac8ddfc5747469f310
5
5
  SHA512:
6
- metadata.gz: 97dfb60738d88e33cee54ac7bd5a4795b4fa9c17faad1438f4a272e21105ceab1cfa26a945b041c86f45295a8fcf634d7c476d88c268c1811b4acd34165cd379
7
- data.tar.gz: 67e6724a57b7d0fec805d1f89123c57f61810207f06301c9f5ae5c7d7f7d3173a463e073e8da5269ff2a8973222fe5cffb1e31ea8640f8ad0e58642536470367
6
+ metadata.gz: d43f1c00c61f6a5ba2b960488a5fddc704019274a2aa07be09deb1dddd86c1f5071cbc3f1a137d05e74982d34f03f7c918c10b893edcf42c9d339ab625603c3b
7
+ data.tar.gz: 7efae535ea50be7e15e4506721a43d06219d91d0dcec549224413b68224429a6350f5bbbab36c2a4d1f7ec3a01d172ee0146b4660c8fa2d37159e8add997cfa1
data/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGES
2
2
 
3
+ ## Pork 1.2.1 -- 2015-03-18
4
+
5
+ ### Bugs fixed
6
+
7
+ * Fixed that sometimes it cannot find the test because source_location
8
+ sometimes won't use the full path. Always use `File.expand_path` then.
9
+ * Properly strip pork backtrace.
10
+
3
11
  ## Pork 1.2.0 -- 2015-03-17
4
12
 
5
13
  ### Incompatible changes
@@ -54,8 +54,8 @@ module Pork
54
54
  when :describe
55
55
  arg.build_all_tests(r, current)
56
56
  when :would
57
- loc = test.source_location
58
- ((r[loc.first] ||= {})[loc.last] ||= []) << current
57
+ file, line = test.source_location
58
+ ((r[File.expand_path(file)] ||= {})[line] ||= []) << current
59
59
  end
60
60
  r
61
61
  end
data/lib/pork/stat.rb CHANGED
@@ -71,7 +71,7 @@ module Pork
71
71
  if $VERBOSE
72
72
  err.backtrace
73
73
  else
74
- strip(err.backtrace.reject{ |line| line =~ %r{/pork(/\w+)?\.rb:\d+} })
74
+ strip(err.backtrace.reject{ |l| l =~ %r{/lib/pork(/\w+)*\.rb:\d+} })
75
75
  end
76
76
  end
77
77
 
data/lib/pork/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Pork
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
data/pork.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: pork 1.2.0 ruby lib
2
+ # stub: pork 1.2.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "pork"
6
- s.version = "1.2.0"
6
+ s.version = "1.2.1"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.authors = ["Lin Jen-Shin (godfat)"]
11
- s.date = "2015-03-17"
11
+ s.date = "2015-03-18"
12
12
  s.description = "Pork -- Simple and clean and modular testing library.\n\nInspired by [Bacon][].\n\n[Bacon]: https://github.com/chneukirchen/bacon"
13
13
  s.email = ["godfat (XD) godfat.org"]
14
14
  s.files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pork
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lin Jen-Shin (godfat)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: muack