cookbook-release 1.7.0 → 1.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59ea3c1e5d1d222c334a409f63333f4a7339cebc36655043656fd1c26c78ec2f
4
- data.tar.gz: 59d2e2dfb5db2d3bd9e28fc341b0839c0fdb63a0d8483764528cb2bede290320
3
+ metadata.gz: 1a2b23c7c9af0dd7ecb83cd1a4f89601951cacd6b8bf2577984559f2fc02cf81
4
+ data.tar.gz: 5940dfa4456a6003415dfdbdd22b558c912c59edbeecf587e2c0121e4bc492b5
5
5
  SHA512:
6
- metadata.gz: 5b292dadbf789958681065228a9732c0614008e9cca74a8e3bcf478cbbf42da2c0bef73f8a6ad2ae52309b0ac47573a6038ddd62480fb4c73afdab76616be4f1
7
- data.tar.gz: 5f856842d4d1588c21d3961d29f9346b8b41000e3054933dcfbdba830a3811703b5894b6ac41cdd530e9bb6d2e6a8911eb65874cfd423dfc0b98c2dc82f2f58f
6
+ metadata.gz: 4ed18ffa88071327c4ba652561e0b3d7bc2beabe18f472d2f75fe9865801743d81b3d78bf4343989e2e04504093b62b15b1c6266b22e3084dbfc1e1460844b8c
7
+ data.tar.gz: 2abe84b04bb5a9a5879f850dd4296cc0bff59d14a3de12e3ddafa886aaf0cfa88df0556d0ce631ad171221c58a31ed94d74a602c71945040979abbbf1194f551
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.
@@ -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.7.0'
9
+ spec.version = '1.9.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'
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_dependency 'mixlib-shellout'
25
25
  # TODO: support Chef 17 and leverage knife gem at some point
26
26
  spec.add_dependency 'chef', '>= 12.18.31', '< 17.0' # knife code has been moved to dedicated gem starting with Chef 17
27
- spec.add_dependency 'git-ng' # see https://github.com/schacon/ruby-git/issues/307
27
+ spec.add_dependency 'git'
28
28
  spec.add_dependency 'unicode-emoji'
29
29
 
30
30
 
@@ -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)}"
@@ -78,6 +78,7 @@ module CookbookRelease
78
78
  opts = {
79
79
  no_prompt: ENV['NO_PROMPT'],
80
80
  category: ENV['COOKBOOK_CATEGORY'],
81
+ skip_upload: ENV['SKIP_COOKOOK_UPLOAD']
81
82
  }
82
83
  git = GitUtilities.new
83
84
  Release.new(git, opts).release!
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.7.0
4
+ version: 1.9.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: 2021-07-02 00:00:00.000000000 Z
11
+ date: 2023-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic
@@ -73,7 +73,7 @@ dependencies:
73
73
  - !ruby/object:Gem::Version
74
74
  version: '17.0'
75
75
  - !ruby/object:Gem::Dependency
76
- name: git-ng
76
+ name: git
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="