albacore 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/albacore/albacore_module.rb +5 -0
- data/lib/albacore/cli.rb +2 -1
- data/lib/albacore/version.rb +1 -1
- data/spec/cli_spec.rb +2 -0
- data/spec/spec_helper.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93f54cd91a9aa41e8c3b0b2be0bede297d0845b4
|
4
|
+
data.tar.gz: 25da6036260fd0b40ca03c2699ca99f986a6c8ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ab61c89223892a4338a42e2e155935bc3edddd54cbec58f695ad53023ad8ba8e97d7a6840758891d49b157e4f644975d9664d28503c089104be039dafe195bf
|
7
|
+
data.tar.gz: 7523f5eb704bea30e728c13955b6bad4f397b279015fb0d74da117421c94ce4eefcd956fe1c3eb00af0551be43b7113a0f0c6b4dfc4aca31a5971aeb6028e6bf
|
@@ -23,6 +23,11 @@ module Albacore
|
|
23
23
|
'Gemfile'
|
24
24
|
end
|
25
25
|
|
26
|
+
# Name of the default .semver file, used by Cli
|
27
|
+
def semver_file
|
28
|
+
'.semver'
|
29
|
+
end
|
30
|
+
|
26
31
|
# set the application -- good for testing
|
27
32
|
# the infrastructure of albacore by resetting the
|
28
33
|
# state after each test
|
data/lib/albacore/cli.rb
CHANGED
@@ -34,10 +34,11 @@ PLEASE READ https://github.com/Albacore/albacore/wiki/Albacore-binary
|
|
34
34
|
|
35
35
|
# Create a new Rakefile file if the file does not exist.
|
36
36
|
command :initialize, :init do
|
37
|
-
files = [Albacore.rakefile, Albacore.gemfile]
|
37
|
+
files = [Albacore.rakefile, Albacore.gemfile, Albacore.semver_file]
|
38
38
|
if files.any? { |file| File.exist? file }
|
39
39
|
puts "One of #{files.inspect} already exists"
|
40
40
|
else
|
41
|
+
Albacore::CrossPlatformCmd.system 'semver init' unless ENV['TEST']
|
41
42
|
File.open Albacore.gemfile, 'w+' do |io|
|
42
43
|
io.puts <<-DATA
|
43
44
|
source 'https://rubygems.org'
|
data/lib/albacore/version.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
@@ -6,8 +6,10 @@ describe Albacore::Cli do
|
|
6
6
|
# Output to a file that doesn't conflict with the project's Rakefile file.
|
7
7
|
@test_rake = 'Test_Rakefile'
|
8
8
|
@test_gem = 'Test_Gemfile'
|
9
|
+
@test_semver = 'Test_Semver'
|
9
10
|
Albacore.stub(:rakefile).and_return @test_rake
|
10
11
|
Albacore.stub(:gemfile).and_return @test_gem
|
12
|
+
Albacore.stub(:semver_file).and_return @test_semver
|
11
13
|
|
12
14
|
# Capture the output that would typically appear in the console.
|
13
15
|
@original_stdout = $stdout
|
data/spec/spec_helper.rb
CHANGED