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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8459e2ab287d35aab39714362dd1a67c00e3a1b6
4
- data.tar.gz: de71fc5144cbb5bdd60994ac7ada639b41c26fe4
3
+ metadata.gz: 93f54cd91a9aa41e8c3b0b2be0bede297d0845b4
4
+ data.tar.gz: 25da6036260fd0b40ca03c2699ca99f986a6c8ca
5
5
  SHA512:
6
- metadata.gz: 027a22bdb053bf94a9df10572e2982613b985b3d9cc69c3bea14337cdff0967af26ca372726da06dadc28017b83bac65750d7da8d1df8d8ec0a16e5475ed62ed
7
- data.tar.gz: bcb602717b386994bd383d0599608436fd4bbecf4e3409a98995cab06545891bee8a02de6c8c22344f0fe48be1c5670a210a6196ae5fa5a123e452fe2608686c
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
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
@@ -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
@@ -10,6 +10,7 @@ RSpec.configure do |config|
10
10
  ::Albacore.set_application(::Albacore::Application.new(@logout, @output))
11
11
  ::Albacore.log_level = Logger::DEBUG
12
12
  @logger = ::Albacore.application.logger
13
+ ENV['TEST'] = 'true'
13
14
  end
14
15
  end
15
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: albacore
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Feldt