thread_order 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.travis.yml +9 -0
- data/Readme.md +1 -1
- data/lib/thread_order/version.rb +1 -1
- data/spec/run +1 -1
- data/spec/thread_order_spec.rb +14 -4
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZThiYjJhMDE4YzFkMzZkNWM2YWIxNzMyOTExNDgyZjJlM2MzYmRjYw==
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 50e3d2b7c7ad8cee3c27f4f8a3987e81b7784f8cde679d99755b42e470148307
|
4
|
+
data.tar.gz: 925a0587cf2b148720a1424ff4d1b21b83eeeee3ba19ed2e45485a85d75bca97
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
OTIxMjliZDc1NmZkMTU4NjA5OTYzYjliYmI1N2QxNjdhNGVjMTZlZDc5OGFj
|
11
|
-
N2UwY2U3ZjQ5ZDdlY2RkMWE4OThjYzNlMjU0MTEwZTc4MjM0NGQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MTI1ZDZkMGE1NGM0MzIzZTdiMGRjMDAyNjJhMTlmNWE4NWY5MWFjOTQyOTg5
|
14
|
-
NDJiMTI5YzJhNzE3MTIxNzYzNzRkOGEzMTcwNzQ4ZTBjMTM3YTZiZWVlODk3
|
15
|
-
YWRlMjM5YTg3YmY0ZTdmYTVlYjYxYWQ1ZmMwZmUwMDkwM2E0OTQ=
|
6
|
+
metadata.gz: 5edb30b469db61cd167140c937f5f74b9e692d772285e6bb162bca469a188984dca144f15f60283e080d3d6d029f665421f959c7186a2eb9d4483bc5534c77e0
|
7
|
+
data.tar.gz: 4acd809ff035f2ba23f98b9bdee7b1c36532b9b2562eac74f512f70cefe11fc2313494b890caba6acf689ded6edd25a095ce4604c9280811c4d1f2f389c1a1ba
|
data/.travis.yml
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
language: ruby
|
2
|
+
before_install:
|
3
|
+
# jruby-head does not have bundler.
|
4
|
+
- which bundle || gem install bundler
|
2
5
|
script: spec/run
|
3
6
|
rvm:
|
4
7
|
- 1.8.7
|
@@ -7,6 +10,10 @@ rvm:
|
|
7
10
|
- 2.0.0
|
8
11
|
- 2.1
|
9
12
|
- 2.2
|
13
|
+
- 2.3.7
|
14
|
+
- 2.4.4
|
15
|
+
- 2.5.1
|
16
|
+
- 2.6.0
|
10
17
|
- ruby-head
|
11
18
|
- ree
|
12
19
|
- jruby-18mode
|
@@ -17,4 +24,6 @@ matrix:
|
|
17
24
|
include:
|
18
25
|
- rvm: jruby
|
19
26
|
env: JRUBY_OPTS='--2.0'
|
27
|
+
allow_failures:
|
28
|
+
- rvm: rbx
|
20
29
|
fast_finish: true
|
data/Readme.md
CHANGED
data/lib/thread_order/version.rb
CHANGED
data/spec/run
CHANGED
@@ -34,7 +34,7 @@ get_gem "rspec-core" "https://rubygems.org/downloads/rspec-core-3.2.1.ge
|
|
34
34
|
get_gem "rspec-support" "https://rubygems.org/downloads/rspec-support-3.2.2.gem" &&
|
35
35
|
get_gem "rspec-expectations" "https://rubygems.org/downloads/rspec-expectations-3.2.0.gem" &&
|
36
36
|
get_gem "rspec-mocks" "https://rubygems.org/downloads/rspec-mocks-3.2.1.gem" &&
|
37
|
-
get_gem "diff-lcs" "https://rubygems.org/downloads/diff-lcs-1.
|
37
|
+
get_gem "diff-lcs" "https://rubygems.org/downloads/diff-lcs-1.3.gem" || exit 1
|
38
38
|
|
39
39
|
|
40
40
|
# run specs
|
data/spec/thread_order_spec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
initial_loaded_features = $LOADED_FEATURES.dup.freeze
|
2
|
+
|
1
3
|
require 'thread_order'
|
2
4
|
|
3
5
|
RSpec.describe ThreadOrder do
|
@@ -142,12 +144,20 @@ RSpec.describe ThreadOrder do
|
|
142
144
|
expect(thread_names).to eq [:a, nil]
|
143
145
|
end
|
144
146
|
|
145
|
-
|
147
|
+
define_method :not_loaded! do |filename|
|
148
|
+
# newer versions of Ruby require thread.rb somewhere, so if it was required
|
149
|
+
# before any of our code was required, then don't bother with the assertion
|
150
|
+
# there's no obvious way to deal with it, and it wasn't us who required it
|
151
|
+
next if initial_loaded_features.include? filename
|
146
152
|
loaded_filenames = $LOADED_FEATURES.map { |filepath| File.basename filepath }
|
153
|
+
expect(loaded_filenames).to_not include filename
|
154
|
+
end
|
155
|
+
|
156
|
+
it 'is implemented without depending on the stdlib' do
|
147
157
|
begin
|
148
|
-
|
149
|
-
|
150
|
-
|
158
|
+
not_loaded! 'monitor.rb'
|
159
|
+
not_loaded! 'thread.rb'
|
160
|
+
not_loaded! 'thread.bundle'
|
151
161
|
rescue RSpec::Expectations::ExpectationNotMetError
|
152
162
|
pending if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' # somehow this still gets loaded in some JRubies
|
153
163
|
raise
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thread_order
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Cheek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.0'
|
27
27
|
description: Test helper for ordering threaded code (does not depend on gems or stdlib,
|
@@ -31,8 +31,8 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- .gitignore
|
35
|
-
- .travis.yml
|
34
|
+
- ".gitignore"
|
35
|
+
- ".travis.yml"
|
36
36
|
- Gemfile
|
37
37
|
- License.txt
|
38
38
|
- Readme.md
|
@@ -52,21 +52,20 @@ require_paths:
|
|
52
52
|
- lib
|
53
53
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
64
|
rubyforge_project:
|
65
|
-
rubygems_version: 2.
|
65
|
+
rubygems_version: 2.7.6
|
66
66
|
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Test helper for ordering threaded code
|
69
69
|
test_files:
|
70
70
|
- spec/run
|
71
71
|
- spec/thread_order_spec.rb
|
72
|
-
has_rdoc:
|