pork 1.0.2 → 1.0.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
  SHA1:
3
- metadata.gz: 814a6e5d8622a7c77c53f88b539b81d77f39872f
4
- data.tar.gz: 4269395ba1774b0051195edd772d1c850298da6c
3
+ metadata.gz: 93ff53eb058bf9490356aab97ec7e4df4d381197
4
+ data.tar.gz: c0c795be8a249d408bd5e0ae7d4b07aefa293386
5
5
  SHA512:
6
- metadata.gz: 46b0342699c72744ff5cc2fc230c13b328df33ad1593ee872a83ac4283827f27e3b42cc926be1f4a93d586df15e8f813e1cac828fb86e1119e1739abad83f3ac
7
- data.tar.gz: 597fb9cbf4754d9866e55d9a7ed4c334d63c067791cfad332169341d1edcce6a7947b77dcd8173dd88732995733bbf7fabee790d11992c62a78e0c9130ac337a
6
+ metadata.gz: 30626f3c05d102b2aa1156c75819545c430d0e06c64e8bb9a564aa41c01bbfa88b08355b089b232b31325f448345b77f5221da9ccb13c71d97f3bcf9d1992353
7
+ data.tar.gz: 3dd03c8d7bf872dc3a7374715a0a812d0031f825148cdeeaa7f6893a9da3f9b1e029c4001ddfb27a3fe35bfc126c983dcafe4c4343ceebc2af49eafde05f0083
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
 
2
2
  language: ruby
3
3
  rvm:
4
- - 1.9
5
4
  - 2.0
6
5
  - 2.1
6
+ - 2.2
7
7
  - rbx-2
8
8
  - jruby
9
9
 
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGES
2
2
 
3
+ ## Pork 1.0.3 -- 2014-12-26
4
+
5
+ * Fix `Kernel#should` compatibility for JRuby 1.7.18- and Ruby 2.2.0 by
6
+ never assuming ThreadGroup#list would preserve the order.
7
+
3
8
  ## Pork 1.0.2 -- 2014-12-09
4
9
 
5
10
  * Hash difference is much improved. Now it uses `/` to separate keys,
data/lib/pork/should.rb CHANGED
@@ -3,8 +3,8 @@ require 'pork/executor'
3
3
 
4
4
  module Kernel
5
5
  def should *args, &block
6
- Pork::Expect.new(
7
- Thread.current.group.list.first[:pork_stat], self, *args, &block)
6
+ stat = Thread.current.group.list.find{ |t| t[:pork_stat] }[:pork_stat]
7
+ Pork::Expect.new(stat, self, *args, &block)
8
8
  end
9
9
  end
10
10
 
data/lib/pork/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Pork
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
data/pork.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: pork 1.0.2 ruby lib
2
+ # stub: pork 1.0.3 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "pork"
6
- s.version = "1.0.2"
6
+ s.version = "1.0.3"
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 = "2014-12-09"
11
+ s.date = "2014-12-26"
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.0.2
4
+ version: 1.0.3
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: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: muack