knapsack 1.13.1 → 1.13.2

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: dccd9dc0039475c5c3229f3905f2588e5bd9ba7a
4
- data.tar.gz: 457e878a8f360750b8665c31763214fa8a382e05
3
+ metadata.gz: ca381a35887a4f7778e1c4970639918277aea4ea
4
+ data.tar.gz: 3447ee491b44873f374b784db69f4904d39eef40
5
5
  SHA512:
6
- metadata.gz: 0664599e9da27777472a8f01fdd59d2141bf0143d4d4f86f412e0852b2e752470ce49ffe854d869e532553df1169de1bec90c648e65ecbab1f5c2c76abb23248
7
- data.tar.gz: 69bc340f405108487dd4f22d92c94bddc168c107d8d4adbe2958e5f50e8f0374e69c94687a9fff2d92836de71638fbdc3f7ba046d5a95d8c16095b8f06db79e5
6
+ metadata.gz: b56704853c9fbd56bb63200d0973b990f73051c06a8521b24c9269dcb25625cbae8dac9d1b538636711ebef596e5f45f72442db421b65fb5dff5c0e556d49e44
7
+ data.tar.gz: 04dacdc1f6bf7e3f11d7a8f81f0b5ff81c398bdf5d1499c44a1a3f88748019f881699af04005da3b3bdce75f4070ed92c2646c765fba8353ac590c8a9d15bb8d
@@ -2,6 +2,15 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 1.13.2
6
+
7
+ * Add support for test files in directory with spaces.
8
+
9
+ Related:
10
+ https://github.com/KnapsackPro/knapsack_pro-ruby/issues/27
11
+
12
+ https://github.com/ArturT/knapsack/compare/v1.13.1...v1.13.2
13
+
5
14
  ### 1.13.1
6
15
 
7
16
  * Fix: Get rid of call #zero? method on $?.exitstatus in test runners tasks
data/README.md CHANGED
@@ -36,11 +36,19 @@ The knapsack gem supports:
36
36
 
37
37
  | Feature | knapsack gem | knapsack_pro gem
38
38
  | --- | :---: | :---:
39
+ | Queue mode designed for most optimal dynamic test suite split | ✘ | ✔
39
40
  | Test suite split based on tests time execution | ✔ | ✔
40
41
  | Automated tests time execution recording | ✘ | ✔
41
42
  | Test suite split based on most up to date tests time execution data | ✘ | ✔
42
43
  | [Show all features](https://knapsackpro.com/features?utm_source=github&utm_medium=readme&utm_campaign=knapsack_gem&utm_content=show_all_features) | |
43
44
 
45
+ How knapsack_pro makes my life easier as opposed to regular knapsack gem?
46
+
47
+ * The knapsack_pro version has queue mode designed for most optimal test suite split thanks to dynamic tests allocation.
48
+ * With the knapsack_pro version the setup and the ongoing work is easier because you don’t have to manually generate knapsack json report with test files time execution for each test suite like rspec, cucumber etc.
49
+ * The knapsack_pro version tracks all you branches so when your test code changes the knapsack_pro tries to provide you as optimal test suite split as possible.
50
+ * When your test codebase changes over time you need to manually generate a new knapsack report in free gem version which is extra overhead and waste of time of the developer.
51
+
44
52
  **Would you like to try [knapsack_pro gem](https://github.com/KnapsackPro/knapsack_pro-ruby) with more features and free access for early users? Please [visit Knapsack Pro](http://knapsackpro.com?utm_source=github&utm_medium=readme&utm_campaign=knapsack_gem&utm_content=try_knapsack_pro).**
45
53
 
46
54
  ### Presentations about knapsack gem
@@ -18,7 +18,10 @@ module Knapsack
18
18
  end
19
19
 
20
20
  def stringify_node_tests
21
- node_tests.join(' ')
21
+ node_tests
22
+ .map do |test_file|
23
+ %{"#{test_file}"}
24
+ end.join(' ')
22
25
  end
23
26
 
24
27
  def test_dir
@@ -1,3 +1,3 @@
1
1
  module Knapsack
2
- VERSION = '1.13.1'
2
+ VERSION = '1.13.2'
3
3
  end
@@ -39,7 +39,7 @@ describe Knapsack::Allocator do
39
39
 
40
40
  describe '#stringify_node_tests' do
41
41
  subject { allocator.stringify_node_tests }
42
- it { should eql node_tests.join(' ') }
42
+ it { should eql %{"a_spec.rb" "b_spec.rb" "c_spec.rb" "d_spec.rb"} }
43
43
  end
44
44
 
45
45
  describe '#test_dir' do
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.1
4
+ version: 1.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-01 00:00:00.000000000 Z
11
+ date: 2017-03-22 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.5.1
287
+ rubygems_version: 2.6.8
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