knapsack 1.13.2 → 1.13.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: ca381a35887a4f7778e1c4970639918277aea4ea
4
- data.tar.gz: 3447ee491b44873f374b784db69f4904d39eef40
3
+ metadata.gz: 719ba9d4cfc8bc37b1409b517f03c16d9906b6c5
4
+ data.tar.gz: 5734c293161e912ec892c61cd1a95917d92cc213
5
5
  SHA512:
6
- metadata.gz: b56704853c9fbd56bb63200d0973b990f73051c06a8521b24c9269dcb25625cbae8dac9d1b538636711ebef596e5f45f72442db421b65fb5dff5c0e556d49e44
7
- data.tar.gz: 04dacdc1f6bf7e3f11d7a8f81f0b5ff81c398bdf5d1499c44a1a3f88748019f881699af04005da3b3bdce75f4070ed92c2646c765fba8353ac590c8a9d15bb8d
6
+ metadata.gz: 61250f2f1792424e16b9530d11ed6d37c45e30bc0f89b7adb1eb34dd17d3497fae06f18fb2eb3fa1d2a383893c64c22dd5d2fb629e2d861b2a9e229b8cda9e7e
7
+ data.tar.gz: ad64bd1b049327ca1f2dd8ea8dcecd45eb3f0c4d8e5c8d9597a9d0f257df160e5597405cf62bf25e77fd5cf0525b53ec73436e0af593f965676f2a6d889cf523
@@ -2,6 +2,14 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 1.13.3
6
+
7
+ * Fix: Trailing slash should be removed from allocator test_dir.
8
+
9
+ https://github.com/ArturT/knapsack/issues/57
10
+
11
+ https://github.com/ArturT/knapsack/compare/v1.13.2...v1.13.3
12
+
5
13
  ### 1.13.2
6
14
 
7
15
  * Add support for test files in directory with spaces.
data/README.md CHANGED
@@ -93,6 +93,7 @@ How knapsack_pro makes my life easier as opposed to regular knapsack gem?
93
93
  - [Info for snap-ci.com users](#info-for-snap-cicom-users)
94
94
  - [Step 1](#step-1-4)
95
95
  - [Step 2](#step-2-4)
96
+ - [Info for Jenkins](#info-for-jenkins)
96
97
  - [FAQ](#faq)
97
98
  - [What time offset warning means?](#what-time-offset-warning-means)
98
99
  - [How to generate knapsack report?](#how-to-generate-knapsack-report)
@@ -591,6 +592,17 @@ Knapsack supports snap-ci.com ENVs `SNAP_WORKER_TOTAL` and `SNAP_WORKER_INDEX`.
591
592
  # Step for Spinach
592
593
  bundle exec rake knapsack:spinach
593
594
 
595
+ ### Info for Jenkins
596
+
597
+ In order to run parallel jobs with Jenkins you should use Jenkins Pipeline.
598
+ You can learn basics about it in the article [Parallelism and Distributed Builds with Jenkins](https://www.cloudbees.com/blog/parallelism-and-distributed-builds-jenkins).
599
+
600
+ Here is example `Jenkinsfile` working with Jenkins Pipeline:
601
+
602
+ https://github.com/mknapik/jenkins-pipeline-knapsack/blob/master/Jenkinsfile
603
+
604
+ More info can be found int the [issue](https://github.com/ArturT/knapsack/issues/42).
605
+
594
606
  ## FAQ
595
607
 
596
608
  ### What time offset warning means?
@@ -25,7 +25,7 @@ module Knapsack
25
25
  end
26
26
 
27
27
  def test_dir
28
- Knapsack::Config::Env.test_dir || @report_distributor.test_file_pattern.gsub(/^(.*?)\//).first
28
+ Knapsack::Config::Env.test_dir || @report_distributor.test_file_pattern.split('/').first
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module Knapsack
2
- VERSION = '1.13.2'
2
+ VERSION = '1.13.3'
3
3
  end
@@ -62,7 +62,7 @@ describe Knapsack::Allocator do
62
62
  expect(report_distributor).to receive(:test_file_pattern).and_return(test_file_pattern)
63
63
  end
64
64
 
65
- it { should eql 'test_dir/' }
65
+ it { should eql 'test_dir' }
66
66
  end
67
67
  end
68
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knapsack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.2
4
+ version: 1.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-22 00:00:00.000000000 Z
11
+ date: 2017-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  version: '0'
285
285
  requirements: []
286
286
  rubyforge_project:
287
- rubygems_version: 2.6.8
287
+ rubygems_version: 2.6.11
288
288
  signing_key:
289
289
  specification_version: 4
290
290
  summary: Knapsack splits tests across CI nodes and makes sure that tests will run