knapsack_pro 0.15.0 → 0.15.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 101cad777a313e9abf3c4c46950def8bbbf54a95
|
4
|
+
data.tar.gz: d90e2506c0e809c93c5b8f633c9eddad8de0febb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07d082962155f611b0d34c0038493ae1691e3912b8fc280b61a2302b4a14fecb7e705d26a0660df5f373adf62e9f6b11f23e0fd7f8bd9ce2370d2249ad5135ed
|
7
|
+
data.tar.gz: 10a1de469daa3a8819f7c1730593335cc3c125c60b995eece477d6ef98b2d13aaab8f986a0416fc44721141b34c051eec946c5ceac84ac84a4f926bddf25c5e1
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
2
2
|
|
3
3
|
* TODO
|
4
4
|
|
5
|
+
### 0.15.1
|
6
|
+
|
7
|
+
* Fix support for turnip >= 2.x
|
8
|
+
|
9
|
+
Related PR:
|
10
|
+
https://github.com/ArturT/knapsack/pull/47
|
11
|
+
|
12
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.15.0...v0.15.1
|
13
|
+
|
5
14
|
### 0.15.0
|
6
15
|
|
7
16
|
* Handle case when API returns no test files to execute on the node.
|
@@ -4,7 +4,13 @@ module KnapsackPro
|
|
4
4
|
TEST_DIR_PATTERN = 'spec/**{,/*/**}/*_spec.rb'
|
5
5
|
|
6
6
|
def self.test_path(example_group)
|
7
|
-
|
7
|
+
if defined?(Turnip) && Turnip::VERSION.to_i < 2
|
8
|
+
unless example_group[:turnip]
|
9
|
+
until example_group[:parent_example_group].nil?
|
10
|
+
example_group = example_group[:parent_example_group]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
else
|
8
14
|
until example_group[:parent_example_group].nil?
|
9
15
|
example_group = example_group[:parent_example_group]
|
10
16
|
end
|
data/lib/knapsack_pro/version.rb
CHANGED
@@ -30,19 +30,37 @@ describe KnapsackPro::Adapters::RSpecAdapter do
|
|
30
30
|
it { should eql 'a_spec.rb' }
|
31
31
|
|
32
32
|
context 'with turnip features' do
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
33
|
+
describe 'when the turnip version is less than 2' do
|
34
|
+
let(:current_example_metadata) do
|
35
|
+
{
|
36
|
+
file_path: "./spec/features/logging_in.feature",
|
37
|
+
turnip: true,
|
38
|
+
parent_example_group: {
|
39
|
+
file_path: "gems/turnip-1.2.4/lib/turnip/rspec.rb"
|
40
|
+
}
|
39
41
|
}
|
40
|
-
|
42
|
+
end
|
43
|
+
|
44
|
+
before { stub_const("Turnip::VERSION", '1.2.4') }
|
45
|
+
|
46
|
+
it { should eql './spec/features/logging_in.feature' }
|
41
47
|
end
|
42
48
|
|
43
|
-
|
49
|
+
describe 'when turnip is version 2 or greater' do
|
50
|
+
let(:current_example_metadata) do
|
51
|
+
{
|
52
|
+
file_path: "gems/turnip-2.0.0/lib/turnip/rspec.rb",
|
53
|
+
turnip: true,
|
54
|
+
parent_example_group: {
|
55
|
+
file_path: "./spec/features/logging_in.feature",
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
before { stub_const("Turnip::VERSION", '2.0.0') }
|
44
61
|
|
45
|
-
|
62
|
+
it { should eql './spec/features/logging_in.feature' }
|
63
|
+
end
|
46
64
|
end
|
47
65
|
end
|
48
66
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knapsack_pro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ArturT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|