pork 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdbd288e9e6c43e60dfb0d7fc15f456d557da42b
4
- data.tar.gz: 1b391c3d7b4a8ec1aa4166e65f140830c38c7afb
3
+ metadata.gz: 5c333c750fa9fe99405cd0024453616146a69228
4
+ data.tar.gz: 2b24b3e04eff5e93bf4d0bcce241659b739c5ee6
5
5
  SHA512:
6
- metadata.gz: ad7c493a34029247ceef94e09154710fee21e76aba5c2863dd4e734e3abeb173d671c8932575f91daa542b570bb7808666fe6df8d45114abb644a3edf1452e7d
7
- data.tar.gz: e3d889709be117ba545c879299eb52b6ff66f9e8a68cf49594bf35a18af7b4b47a4ffdf9c438535f4156d3451ff115aef19b7d1f8a555b4020ef486e23968685
6
+ metadata.gz: 842730cee76a15b84924c24003c789a9bc7dcf4b3a1a585cc73a0ddcaaeb8d5d83d6606e32ce8ecb0a5242f623857042b756ce29e10b627e1c170f57284e14dc
7
+ data.tar.gz: 20215fb6237c3539b5574372b60ad2fa2e542d30e306f9008a8964c4ad6f2b17745c05d7f3ac892747d5aa9306d2c5f1c842d2270cbe2b275c6d9d233889e02f
data/CHANGES.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # CHANGES
2
2
 
3
+ ## Pork 1.4.4 -- 2015-11-10
4
+
5
+ ### Bugs fixed
6
+
7
+ * Now `Pork.protected_exceptions` would not create stat object.
8
+ We should not create it unless we're trying to run a test.
9
+
3
10
  ## Pork 1.4.3 -- 2015-10-08
4
11
 
5
12
  ### Enhancement
@@ -32,7 +32,7 @@ module Pork
32
32
  end
33
33
 
34
34
  def self.protected_exceptions
35
- stat.protected_exceptions
35
+ @protected_exceptions ||= [Pork::Error, StandardError]
36
36
  end
37
37
 
38
38
  def self.Rainbows!
@@ -10,7 +10,7 @@ module Pork
10
10
  module Stat::Imp
11
11
  attr_accessor :stop
12
12
  def initialize rt=Pork.report_class.new,
13
- protected_exceptions=[Pork::Error, StandardError],
13
+ protected_exceptions=Pork.protected_exceptions,
14
14
  st=Time.now, mu=Mutex.new,
15
15
  t=0, a=0, s=0, f=0, e=0, x=[]
16
16
  super
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Pork
3
- VERSION = '1.4.3'
3
+ VERSION = '1.4.4'
4
4
  end
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: pork 1.4.3 ruby lib
2
+ # stub: pork 1.4.4 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "pork"
6
- s.version = "1.4.3"
6
+ s.version = "1.4.4"
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-10-08"
11
+ s.date = "2015-11-10"
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 = [
@@ -59,7 +59,7 @@ Gem::Specification.new do |s|
59
59
  "test/test_stat.rb"]
60
60
  s.homepage = "https://github.com/godfat/pork"
61
61
  s.licenses = ["Apache License 2.0"]
62
- s.rubygems_version = "2.4.8"
62
+ s.rubygems_version = "2.5.0"
63
63
  s.summary = "Pork -- Simple and clean and modular testing library."
64
64
  s.test_files = [
65
65
  "test/test_bacon.rb",
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.4.3
4
+ version: 1.4.4
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-10-08 00:00:00.000000000 Z
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: method_source
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.4.8
104
+ rubygems_version: 2.5.0
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Pork -- Simple and clean and modular testing library.