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 +4 -4
- data/.travis.yml +8 -0
- data/cookbook-release.gemspec +1 -1
- data/lib/cookbook-release/git-utilities.rb +4 -1
- data/lib/cookbook-release/release.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: 3992bd40c87681c52c0b994fedcb2e11ee7917cd
|
4
|
+
data.tar.gz: 30ea8bd1b8b09ebad45af0d4c9a804fcbd164939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/cookbook-release.gemspec
CHANGED
@@ -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.
|
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)
|