cookbook-release 0.1 → 0.3

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: 1fcf382dc644cd29130d51f7592cf01700e1cb84
4
- data.tar.gz: 422d1b34f9a96ad642b2b101c8188697ffc78a73
3
+ metadata.gz: 3992bd40c87681c52c0b994fedcb2e11ee7917cd
4
+ data.tar.gz: 30ea8bd1b8b09ebad45af0d4c9a804fcbd164939
5
5
  SHA512:
6
- metadata.gz: 8a8e6d46bb049d01efb805518e63289dbd872b4b1f4ffca52f4e5f4114c3ee0ccb94772a24183006ed99ba5165004f6eefade13612cb1e3c7d7e016dd2b2c37e
7
- data.tar.gz: f36559e550cc0e9a5c04dceaf8068bd8b1edeca14a3a152e813cda2d2d1d0ed8d7f0e526d4b9de6cbd2ac1c34467ec960390b02c8b091f6e33dd2dfda4a8446b
6
+ metadata.gz: 8c66f6197241ff119e8d8cfc7c05968ee7848ad2796ca0af9b2ab8847c9e40e389ce856d85143f407b3264affaecca27cd95c22aa25069d8d2d35fcbcbb957c3
7
+ data.tar.gz: a6bb258baa5861ca94216e60a51521272b5e76193491431d764b7745bb3b73f30ce24578636ec48392cb8460fcbe3c96c0f01a335f65aa4601c2e5ab0b497701
data/.travis.yml CHANGED
@@ -1,3 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
+ deploy:
5
+ provider: rubygems
6
+ api_key:
7
+ secure: b2DxgLbIDryhuaaTqnph9b15Yhh4ZNfOsiL6AqO2Cb4rlr+IUnrcR8+aQyhHlk2zKi/1FCIOTDKpp8mZOERkzN6EtGrvCLdDsN4ILdem0weVQCl/1xh/+JI6qWszg5jOdx7AXste6hzKR7Y+liIGaw5GkvuUlLA4oE5Yvb2Fgd9sNtiUjbwn0gVvxcHkfmlsmR2p/mHjKmqYNfx1ycMfdRrzzehhW6p8p5h57uVjI/m+YAM05OUyrJVTPLwdNteE+lbs7gCBDEq1EVBup7e4H0XKaz1+9jCSRCvZLkjNMcpbXImth2N65VFbNLr59tHjj9Y56n9GOTdOH9HQPXoFV9a6eZ9E3oI0ZXvRyjeWJsRRzE6K6zEHGH8lSXSi/Vfa1uiXhFLTggVC2t5jl3SFk+dEh5koKz7DPlqxijinIWjEQGBtTxaRdAuXdbB+LY/mrjEJoPbtMj6ruFqh+fcwTrRfGgyQxYSATC3PizJrTrpZDNeTWET0QukZPjEnkPWB3WWWezwz4OgCT5pGt8aXs2wtvN604vuNJR9XtgPIlm9asf7Jj5V23GA71LU1SnedAxjfqIV16x3dm4O8eNzYRy+pai0BvlWO57UaSRHwqIYcqxM50KPr8rdLEKusPJha5Ysywc06XCsrG10nPyEWnRYhHxscZVXsQyqWHKjF7AU=
8
+ gem: cookbook-release
9
+ on:
10
+ tags: true
11
+ repo: criteo/cookbook-release
@@ -6,7 +6,7 @@ require 'English'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'cookbook-release'
9
- spec.version = '0.1'
9
+ spec.version = '0.3'
10
10
  spec.authors = ['Grégoire Seux']
11
11
  spec.email = 'g.seux@criteo.com'
12
12
  spec.summary = 'Provide primitives (and rake tasks) to release a cookbook'
@@ -5,6 +5,8 @@ require 'highline/import'
5
5
 
6
6
  class GitUtilities
7
7
 
8
+ attr_accessor :no_prompt
9
+
8
10
  def initialize(options={})
9
11
  @tag_prefix = options['tag_prefix'] || ''
10
12
  end
@@ -62,7 +64,8 @@ class GitUtilities
62
64
  cmd.run_command
63
65
  cmd.error!
64
66
  remotes = cmd.stdout.split("\n")
65
- if remotes.size == 1
67
+ if remotes.size == 1 || @no_prompt
68
+ puts "Choosing remote #{remotes.first}" if @no_prompt
66
69
  remotes.first
67
70
  else
68
71
  choose(*remotes)
@@ -17,6 +17,7 @@ class Release
17
17
  def initialize(git, opts={})
18
18
  @git = git
19
19
  @no_prompt = opts[:no_prompt]
20
+ @git.no_prompt = @no_prompt
20
21
  end
21
22
 
22
23
  def last_release
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookbook-release
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grégoire Seux