knapsack_pro 0.1.2 → 0.2.0

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: b300b67986e3d1f899db86baa3c750e3c1984b6e
4
- data.tar.gz: 537267adfaaeacf16890fb3ef30bde398aa82d04
3
+ metadata.gz: b182a470dcef48877e231e561627a941a639b948
4
+ data.tar.gz: 60893b62fec4539303eb546658e36f3246fff499
5
5
  SHA512:
6
- metadata.gz: 111b2b41ddec465bec5a5769427f3dacd8deb6309c9efc32e5ee43dd567e582824d78095832befcb0e73dcd4466d11a5a50fc20261f4e45c6055b1ee03ecc3b3
7
- data.tar.gz: f43acacaca9c57986df0b64cdd2ad5995ad362f5ceeeab160224969ce9a8a3175c7c2457d39d49a58f3ede018d1e3e37e6143b2f0b1ceab75e3073d874e2001f
6
+ metadata.gz: 373d0bbbe448f47cfc04019029e52e256a5b2a9723e9d0af27b6d9cc31671832003f635d1e660825549c15f3df25c74a19e8a1e299080b21bff5246edb0d9d70
7
+ data.tar.gz: 380dd12e04d66fc7731bddbba57ce6823588bc1bc6b6ecb388179929791e6c052f0be776fed6bf0abedfa3f6d1f018aca31d23d42bcee504570b03c1d203d7ec
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 0.2.0
6
+
7
+ * Change file path patterns to support 1-level symlinks by default
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/2
10
+
11
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.1.2...v0.2.0
12
+
5
13
  ### 0.1.2
6
14
 
7
15
  * Fix Travis CI environment variables support
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Circle CI](https://circleci.com/gh/KnapsackPro/knapsack_pro-ruby.svg)](https://circleci.com/gh/KnapsackPro/knapsack_pro-ruby)
4
4
  [![Gem Version](https://badge.fury.io/rb/knapsack_pro.svg)](https://rubygems.org/gems/knapsack_pro)
5
5
  [![Code Climate](https://codeclimate.com/github/KnapsackPro/knapsack_pro-ruby/badges/gpa.svg)](https://codeclimate.com/github/KnapsackPro/knapsack_pro-ruby)
6
- [![Test Coverage](https://codeclimate.com/github/KnapsackPro/knapsack_pro-ruby/badges/coverage.svg)](https://codeclimate.com/github/KnapsackPro/knapsack_pro-ruby)
6
+ [![Test Coverage](https://codeclimate.com/github/KnapsackPro/knapsack-pro-ruby/badges/coverage.svg)](https://codeclimate.com/github/KnapsackPro/knapsack-pro-ruby/coverage)
7
7
 
8
8
  Knapsack Pro gem splits tests across CI nodes and makes sure that tests will run comparable time on each node. It uses [KnapsackPro.com API](http://docs.knapsackpro.com). Original idea came from [knapsack](https://github.com/ArturT/knapsack) gem.
9
9
 
@@ -14,7 +14,7 @@ The knapsack_pro gem supports:
14
14
  * [Minitest](http://docs.seattlerb.org/minitest/)
15
15
  * [Turnip](https://github.com/jnicklas/turnip)
16
16
 
17
- __Would you like to try knapsack_pro gem?__ Drop me an [email](https://github.com/KnapsackPro/knapsack_pro-ruby/blob/master/knapsack_pro.gemspec#L10) so I will generate API keys for you.
17
+ __Would you like to try knapsack_pro gem?__ Please fill the [sign up form](https://docs.google.com/forms/d/1S8b5I-W2wr4_8C0tKu9AiW9y_5vq3SW9j2MMUql-hjE/viewform?c=0&w=1&hl=en).
18
18
 
19
19
  # How knapsack_pro works?
20
20
 
@@ -2,7 +2,7 @@ module KnapsackPro
2
2
  module Adapters
3
3
  class BaseAdapter
4
4
  # Just example, please overwrite constant in subclass
5
- TEST_DIR_PATTERN = 'test/**/*_test.rb'
5
+ TEST_DIR_PATTERN = 'test/**{,/*/**}/*_test.rb'
6
6
 
7
7
  def self.bind
8
8
  adapter = new
@@ -1,7 +1,7 @@
1
1
  module KnapsackPro
2
2
  module Adapters
3
3
  class CucumberAdapter < BaseAdapter
4
- TEST_DIR_PATTERN = 'features/**/*.feature'
4
+ TEST_DIR_PATTERN = 'features/**{,/*/**}/*.feature'
5
5
 
6
6
  def self.test_path(scenario_or_outline_table)
7
7
  if scenario_or_outline_table.respond_to?(:file)
@@ -1,7 +1,7 @@
1
1
  module KnapsackPro
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
  @@parent_of_test_dir = nil
6
6
 
7
7
  def self.test_path(obj)
@@ -1,7 +1,7 @@
1
1
  module KnapsackPro
2
2
  module Adapters
3
3
  class RSpecAdapter < BaseAdapter
4
- TEST_DIR_PATTERN = 'spec/**/*_spec.rb'
4
+ TEST_DIR_PATTERN = 'spec/**{,/*/**}/*_spec.rb'
5
5
 
6
6
  def self.test_path(example_group)
7
7
  unless example_group[:turnip]
@@ -1,3 +1,3 @@
1
1
  module KnapsackPro
2
- VERSION = '0.1.2'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  describe KnapsackPro::Adapters::BaseAdapter do
2
2
  it do
3
- expect(described_class::TEST_DIR_PATTERN).to eq 'test/**/*_test.rb'
3
+ expect(described_class::TEST_DIR_PATTERN).to eq 'test/**{,/*/**}/*_test.rb'
4
4
  end
5
5
 
6
6
  describe '.bind' do
@@ -1,6 +1,6 @@
1
1
  describe KnapsackPro::Adapters::CucumberAdapter do
2
2
  it do
3
- expect(described_class::TEST_DIR_PATTERN).to eq 'features/**/*.feature'
3
+ expect(described_class::TEST_DIR_PATTERN).to eq 'features/**{,/*/**}/*.feature'
4
4
  end
5
5
 
6
6
  context do
@@ -6,7 +6,7 @@ end
6
6
 
7
7
  describe KnapsackPro::Adapters::MinitestAdapter do
8
8
  it do
9
- expect(described_class::TEST_DIR_PATTERN).to eq 'test/**/*_test.rb'
9
+ expect(described_class::TEST_DIR_PATTERN).to eq 'test/**{,/*/**}/*_test.rb'
10
10
  end
11
11
 
12
12
  describe '.test_path' do
@@ -1,6 +1,6 @@
1
1
  describe KnapsackPro::Adapters::RSpecAdapter do
2
2
  it do
3
- expect(described_class::TEST_DIR_PATTERN).to eq 'spec/**/*_spec.rb'
3
+ expect(described_class::TEST_DIR_PATTERN).to eq 'spec/**{,/*/**}/*_spec.rb'
4
4
  end
5
5
 
6
6
  context do
@@ -17,7 +17,7 @@ describe KnapsackPro::TestFilePattern do
17
17
  context 'when ENV not defined' do
18
18
  let(:env_test_file_pattern) { nil }
19
19
 
20
- it { should eq 'test/**/*_test.rb' }
20
+ it { should eq 'test/**{,/*/**}/*_test.rb' }
21
21
  end
22
22
  end
23
23
  end
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.1.2
4
+ version: 0.2.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-28 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