cookbook-release 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/cookbook-release.gemspec +1 -1
- data/lib/cookbook-release/release.rb +2 -1
- data/lib/cookbook-release.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7538788e3e44d58e55dfe48772447e2a3bb907ae4b2d4cff09fcafc54c824335
|
|
4
|
+
data.tar.gz: 43b8f4c6cc08721f3afc8cbf1c49252480d23ce504d2ab3694c158af2a7f9600
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab64808c6d9ea7a0355e03e3caf20597786f61c29f3606ca57bbf2228c9aa4b674b02a7b133bb094b0c1cf493ad63083cbb42384ae180f88216b7e6d527a1614
|
|
7
|
+
data.tar.gz: 47de72ef77bdc293efffea2617868e40379ac24cd5b160d283730427ff71ba54560fd72f636f9b31b81e896f1b3d762170a9957c40923485e5ad00035cc061b2
|
data/README.md
CHANGED
|
@@ -63,6 +63,7 @@ Optional environment variables:
|
|
|
63
63
|
|
|
64
64
|
```
|
|
65
65
|
export COOKBOOK_CATEGORY="Other" # defaults to Other
|
|
66
|
+
export SKIP_COOKOOK_UPLOAD=true #Just prepare release and push tag to git, but don't upload
|
|
66
67
|
```
|
|
67
68
|
|
|
68
69
|
Note: this setup is intended to be used in a CI system such as jenkins or travis.
|
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 = '1.
|
|
9
|
+
spec.version = '1.8.0'
|
|
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'
|
|
@@ -34,6 +34,7 @@ module CookbookRelease
|
|
|
34
34
|
def initialize(git, opts={})
|
|
35
35
|
@git = git
|
|
36
36
|
@no_prompt = opts[:no_prompt]
|
|
37
|
+
@skip_upload = opts[:skip_upload]
|
|
37
38
|
@git.no_prompt = @no_prompt
|
|
38
39
|
@category = opts[:category] || 'Other'
|
|
39
40
|
end
|
|
@@ -108,7 +109,7 @@ module CookbookRelease
|
|
|
108
109
|
exit 1 unless agreed
|
|
109
110
|
git.push_tag(new_version)
|
|
110
111
|
supermarket = Supermarket.new
|
|
111
|
-
supermarket.publish_ck(@category, git.sub_dir)
|
|
112
|
+
supermarket.publish_ck(@category, git.sub_dir) unless @skip_upload
|
|
112
113
|
rescue
|
|
113
114
|
puts HighLine.color("Release aborted, you have to reset to previous state manually", :red)
|
|
114
115
|
puts ":use with care: #{git.reset_command(new_version)}"
|
data/lib/cookbook-release.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cookbook-release
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Grégoire Seux
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-05-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: semantic
|