knapsack_pro 0.42.0 → 0.43.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: 57d4426354fb25838c3bb77b4fca90389abe875b
4
- data.tar.gz: b1099760fde424a458a77f6c405638c0658279b8
3
+ metadata.gz: 9c7638b4708729dc6be2aa59b875845f46957879
4
+ data.tar.gz: 785bb208759c0ba84cc9e3021a5711806b09db1c
5
5
  SHA512:
6
- metadata.gz: 623a862646a5e14aa0423a51b095569485d014a68c2b135756890465e94d3ec72aa5650a64133c143488d0bf7739dc169b902eff661bc3d59023062f9c7426b8
7
- data.tar.gz: 37e03af1ea495e3d42eb0d5f75d0fdcc53d77d689fc317d7931c4692f0348b2fcf6e5a76dbfb21dd3469808b1576a23c8fb3376730841c4d6e2641a8324ef0b6
6
+ metadata.gz: 4612de6330fccc174eda587022a3a473fcda794b359ef7a8a312b4b69108c2ae3187fe1ddbb236281ba35a10d4f41b46ecb2d70a9f0fba9016be970585d56304
7
+ data.tar.gz: 67cd9aca589ff47089ed931cfde1adef6a6080036cc207ecbff3c4ee5fee7363dac49de29b2fac5471dbbb71b4409e1ab22989bab9611c5bb5f4df6aa389888b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 0.43.0
6
+
7
+ * Extract correct test directory from test file pattern that has multiple patterns.
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/43
10
+
11
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.42.0...v0.43.0
12
+
5
13
  ### 0.42.0
6
14
 
7
15
  * Clear RSpec examples without shared examples in similar way as in RSpec 3.6.0
@@ -9,7 +9,7 @@ module KnapsackPro
9
9
  end
10
10
 
11
11
  def test_dir
12
- test_file_pattern.split('/').first
12
+ test_file_pattern.split('/').first.gsub(/({)/, '')
13
13
  end
14
14
 
15
15
  private
@@ -1,3 +1,3 @@
1
1
  module KnapsackPro
2
- VERSION = '0.42.0'
2
+ VERSION = '0.43.0'
3
3
  end
@@ -14,9 +14,19 @@ describe KnapsackPro::BaseAllocatorBuilder do
14
14
  subject { allocator_builder.test_dir }
15
15
 
16
16
  before do
17
- expect(KnapsackPro::TestFilePattern).to receive(:call).with(adapter_class).and_return('spec/**{,/*/**}/*_spec.rb')
17
+ expect(KnapsackPro::TestFilePattern).to receive(:call).with(adapter_class).and_return(test_file_pattern)
18
18
  end
19
19
 
20
- it { should eq 'spec' }
20
+ context 'when single pattern' do
21
+ let(:test_file_pattern) { 'spec/**{,/*/**}/*_spec.rb' }
22
+
23
+ it { should eq 'spec' }
24
+ end
25
+
26
+ context 'when multiple patterns' do
27
+ let(:test_file_pattern) { '{spec/controllers/**/*.rb,spec/decorators/**/*.rb}' }
28
+
29
+ it { should eq 'spec' }
30
+ end
21
31
  end
22
32
  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.42.0
4
+ version: 0.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-11 00:00:00.000000000 Z
11
+ date: 2017-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake