rake-funnel 0.20.1 → 0.20.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f08e7fd2daf8b94adc2b74e4c6f46e1929e9160
|
4
|
+
data.tar.gz: 2eb3341a6fee6a13b0852a52a15aa7dc39e1136c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07e69ce186b9d9f51b67de17982caf74cf5246ec0ce181c8716922dcc602a2f57c8c7f39fb1c7505eeb27a17d0fdba44894e6401d7cf90443c319a760bc24122
|
7
|
+
data.tar.gz: ca88f3464ddbef5a69d05ba60e6d30699f926a5eb923c9507d9b45ade243669d606ffc0b966f51b2640874f2eefb785efb305668be8adb9b203fdf187211053b
|
@@ -30,8 +30,6 @@ module Rake
|
|
30
30
|
def define(_args, &task_block) # rubocop:disable Metrics/AbcSize
|
31
31
|
patches.each(&:apply!)
|
32
32
|
|
33
|
-
desc 'Output task timing information' unless Rake.application.last_description
|
34
|
-
|
35
33
|
task name, :failed do |_, task_args|
|
36
34
|
yield(*[self, task_args].slice(0, task_block.arity)) if task_block
|
37
35
|
|
data/lib/rake/funnel/version.rb
CHANGED
@@ -16,21 +16,21 @@ describe Rake::Funnel::Support::TemplateEngine do
|
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'should omit newlines for pure ruby lines' do
|
19
|
-
# rubocop:disable
|
19
|
+
# rubocop:disable Layout/IndentHeredoc
|
20
20
|
template = <<-EOF
|
21
21
|
<%= 42 %>
|
22
22
|
EOF
|
23
|
-
# rubocop:enable
|
23
|
+
# rubocop:enable Layout/IndentHeredoc
|
24
24
|
|
25
25
|
expect(described_class.render(template)).to eq('42')
|
26
26
|
end
|
27
27
|
|
28
28
|
it 'should not omit newlines for mixed ruby lines' do
|
29
|
-
# rubocop:disable
|
29
|
+
# rubocop:disable Layout/IndentHeredoc
|
30
30
|
template = <<-EOF
|
31
31
|
12 <%= 34 %> 56
|
32
32
|
EOF
|
33
|
-
# rubocop:enable
|
33
|
+
# rubocop:enable Layout/IndentHeredoc
|
34
34
|
|
35
35
|
expect(described_class.render(template)).to eq("12 34 56\n")
|
36
36
|
end
|
@@ -305,12 +305,12 @@ describe Rake::Funnel::Support::VersionInfo do
|
|
305
305
|
describe '#read_version_from' do
|
306
306
|
let(:file) { 'file with version info' }
|
307
307
|
let(:contents) do
|
308
|
-
# rubocop:disable
|
308
|
+
# rubocop:disable Layout/IndentHeredoc
|
309
309
|
<<-EOF
|
310
310
|
first line with expected version number
|
311
311
|
other crap
|
312
312
|
EOF
|
313
|
-
# rubocop:enable
|
313
|
+
# rubocop:enable Layout/IndentHeredoc
|
314
314
|
end
|
315
315
|
|
316
316
|
it 'should read the first line with leading and trailing whitespace removed' do
|
@@ -39,6 +39,7 @@ describe Rake::Funnel::Tasks::MSBuild do
|
|
39
39
|
|
40
40
|
allow(Mapper).to receive(:new).and_return(mapper)
|
41
41
|
allow(Finder).to receive(:new).and_return(finder)
|
42
|
+
allow(BuildTool).to receive(:find)
|
42
43
|
end
|
43
44
|
|
44
45
|
before do
|
@@ -49,6 +50,10 @@ describe Rake::Funnel::Tasks::MSBuild do
|
|
49
50
|
expect(finder).to have_received(:single)
|
50
51
|
end
|
51
52
|
|
53
|
+
it 'should use MSBuild finder' do
|
54
|
+
expect(BuildTool).to have_received(:find)
|
55
|
+
end
|
56
|
+
|
52
57
|
it 'should use MSBuild mapper' do
|
53
58
|
expect(Mapper).to have_received(:new).with(:MSBuild)
|
54
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-funnel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Groß
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|