knapsack 1.3.4 → 1.4.0

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: d3884defa102a784ebc24edee1f7f0bce15e47c2
4
- data.tar.gz: 54a6980e2ae231d9048a5d864a345995af50bba9
3
+ metadata.gz: 8319351a256487728d985749b72592013e4300db
4
+ data.tar.gz: 685600b211177aa493dc3d607067d8553eb248f2
5
5
  SHA512:
6
- metadata.gz: 99669c6406a29636495159672d56dfe176ed4573c690929e18a8b092c54b269408ca3eecc76b005a6a5842d34496d08bb8cdcb644af01feeaca38d7deca87409
7
- data.tar.gz: f09fbc5afeac38e7ec5a943e3527c049fb2f7b77c2df42dff9967f0db4840fb17a681fcbe052546ab36be9aaf6544648ecc1610b06cd7c816d20441358790a22
6
+ metadata.gz: 2e17a9f6638b01ff7c94df361a29be64a5ae9b7402bdf7bfe108b3f3531d3f6be80a081d3c2eb50c5ad24bdb89ba479b4e73f055e4a8ca2316ba66e39c646800
7
+ data.tar.gz: 51de58b779209637241afe7dbb131412073bd77be4a66cfaccccd0a68407dd29a938fab9ba2a3d8497d6ee25c1f675b15c9ee7d9703b02828407ebf76939741e
data/.travis.yml CHANGED
@@ -6,6 +6,7 @@ rvm:
6
6
  - 2.1.5
7
7
  - 2.2.0
8
8
  - 2.2.2
9
+ - 2.2.3
9
10
  addons:
10
11
  code_climate:
11
12
  repo_token: 38686058eed480dd0fcf8bce9015733e0bae88e44e30f4a1ac63df8aec2f86d8
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 1.4.0
6
+
7
+ * Rename RspecAdapter to RSpecAdapter so that it is consistent
8
+
9
+ https://github.com/ArturT/knapsack/pull/28
10
+
11
+ * Change file path patterns to support 1-level symlinks by default
12
+
13
+ https://github.com/ArturT/knapsack/pull/27
14
+
15
+ https://github.com/ArturT/knapsack/compare/v1.3.4...v1.4.0
16
+
5
17
  ### 1.3.4
6
18
 
7
19
  * Make knapsack backwards compatible with earlier version of minitest
data/README.md CHANGED
@@ -21,7 +21,7 @@ Presentations about gem:
21
21
  * [X 2014 Kraków Ruby User Group](http://slides.com/arturt/parallel-tests-in-comparable-time)
22
22
  * [VII 2014 Lunar Logic Dev Meeting](http://slides.com/arturt/knapsack)
23
23
 
24
- **[Sign up](http://knapsack.launchrock.com) to get info about launch Knapsack Pro with more features and free access for beta users.**
24
+ **Would you like to try [knapsack_pro gem](https://github.com/KnapsackPro/knapsack_pro-ruby) with more features and free access for beta users? Please [fill the form](https://docs.google.com/forms/d/1S8b5I-W2wr4_8C0tKu9AiW9y_5vq3SW9j2MMUql-hjE/viewform?c=0&w=1&hl=en).**
25
25
 
26
26
  ### Without Knapsack
27
27
 
@@ -107,7 +107,7 @@ require 'knapsack'
107
107
 
108
108
  # CUSTOM_CONFIG_GOES_HERE
109
109
 
110
- Knapsack::Adapters::RspecAdapter.bind
110
+ Knapsack::Adapters::RSpecAdapter.bind
111
111
  ```
112
112
 
113
113
  ### Step for Cucumber
@@ -2,7 +2,7 @@ module Knapsack
2
2
  module Adapters
3
3
  class BaseAdapter
4
4
  # Just examples, please overwrite constants in subclasses
5
- TEST_DIR_PATTERN = 'test/**/*_test.rb'
5
+ TEST_DIR_PATTERN = 'test/**{,/*/**}/*_test.rb'
6
6
  REPORT_PATH = 'knapsack_base_report.json'
7
7
 
8
8
  def self.bind
@@ -1,7 +1,7 @@
1
1
  module Knapsack
2
2
  module Adapters
3
3
  class CucumberAdapter < BaseAdapter
4
- TEST_DIR_PATTERN = 'features/**/*.feature'
4
+ TEST_DIR_PATTERN = 'features/**{,/*/**}/*.feature'
5
5
  REPORT_PATH = 'knapsack_cucumber_report.json'
6
6
 
7
7
  def bind_time_tracker
@@ -1,7 +1,7 @@
1
1
  module Knapsack
2
2
  module Adapters
3
3
  class MinitestAdapter < BaseAdapter
4
- TEST_DIR_PATTERN = 'test/**/*_test.rb'
4
+ TEST_DIR_PATTERN = 'test/**{,/*/**}/*_test.rb'
5
5
  REPORT_PATH = 'knapsack_minitest_report.json'
6
6
  @@parent_of_test_dir = nil
7
7
 
@@ -1,7 +1,7 @@
1
1
  module Knapsack
2
2
  module Adapters
3
- class RspecAdapter < BaseAdapter
4
- TEST_DIR_PATTERN = 'spec/**/*_spec.rb'
3
+ class RSpecAdapter < BaseAdapter
4
+ TEST_DIR_PATTERN = 'spec/**{,/*/**}/*_spec.rb'
5
5
  REPORT_PATH = 'knapsack_rspec_report.json'
6
6
 
7
7
  def bind_time_tracker
@@ -13,7 +13,7 @@ module Knapsack
13
13
  else
14
14
  example.metadata
15
15
  end
16
- Knapsack.tracker.test_path = RspecAdapter.test_path(current_example_group)
16
+ Knapsack.tracker.test_path = RSpecAdapter.test_path(current_example_group)
17
17
  Knapsack.tracker.start_timer
18
18
  end
19
19
 
@@ -54,5 +54,9 @@ module Knapsack
54
54
  example_group[:file_path]
55
55
  end
56
56
  end
57
+
58
+ # This is added to provide backwards compatabiliy
59
+ class RspecAdapter < RSpecAdapter
60
+ end
57
61
  end
58
62
  end
@@ -2,7 +2,7 @@ module Knapsack
2
2
  module Runners
3
3
  class RSpecRunner
4
4
  def self.run(args)
5
- allocator = Knapsack::AllocatorBuilder.new(Knapsack::Adapters::RspecAdapter).allocator
5
+ allocator = Knapsack::AllocatorBuilder.new(Knapsack::Adapters::RSpecAdapter).allocator
6
6
 
7
7
  puts
8
8
  puts 'Report specs:'
@@ -1,3 +1,3 @@
1
1
  module Knapsack
2
- VERSION = '1.3.4'
2
+ VERSION = '1.4.0'
3
3
  end
@@ -1,4 +1,4 @@
1
- describe Knapsack::Adapters::RspecAdapter do
1
+ describe Knapsack::Adapters::RSpecAdapter do
2
2
  context do
3
3
  before { expect(::RSpec).to receive(:configure) }
4
4
  it_behaves_like 'adapter'
@@ -75,6 +75,12 @@ describe Knapsack::AllocatorBuilder do
75
75
  end
76
76
  end
77
77
 
78
+ context 'when RSpecAdapter' do
79
+ let(:adapter_class) { Knapsack::Adapters::RSpecAdapter }
80
+ it_behaves_like 'allocator builder'
81
+ end
82
+
83
+ # To make sure we do not break backwards compatibility
78
84
  context 'when RspecAdapter' do
79
85
  let(:adapter_class) { Knapsack::Adapters::RspecAdapter }
80
86
  it_behaves_like 'allocator builder'
@@ -87,7 +93,7 @@ describe Knapsack::AllocatorBuilder do
87
93
  end
88
94
 
89
95
  describe '#test_dir' do
90
- let(:adapter_class) { Knapsack::Adapters::RspecAdapter }
96
+ let(:adapter_class) { Knapsack::Adapters::RSpecAdapter }
91
97
 
92
98
  subject { allocator_builder.test_dir }
93
99
 
@@ -15,7 +15,7 @@ if ENV['CUSTOM_LOGGER']
15
15
  Knapsack.logger.level = Logger::INFO
16
16
  end
17
17
 
18
- Knapsack::Adapters::RspecAdapter.bind
18
+ Knapsack::Adapters::RSpecAdapter.bind
19
19
 
20
20
  RSpec.configure do |config|
21
21
  config.order = :random
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.3.4
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake