community_cookbook_releaser 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ccr +3 -3
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aeaf69832312ef54d8d6798cb0f0b1edd553b65a
4
- data.tar.gz: cecfe431cdf5bc6b88fbf3afcc4ceb0e008a55c1
3
+ metadata.gz: 9025a43c703f5aafc6e3db1bd00397901eea55ed
4
+ data.tar.gz: 52fe09630e52650febdd6be140a472256c0d5251
5
5
  SHA512:
6
- metadata.gz: 1e0a35dccd4625e9be1142d046adaa880f192800f45a28160b86bb952dc1348535bce99a836909e8ea883c28428845b0bf633b28b8b9d6d75965eba81d459ced
7
- data.tar.gz: fc5153c09204716706cebda667e35c5ed6e86609a1d09136a5edc01f7bdbe3e37bf0ad8bc8b8a9169e919167e134d968d05abfe552d4df9bb55af0e3a955b933
6
+ metadata.gz: 4ccc1b421e05997f46531a03ebb2ef6b8d7dcd7754b4b8d59ab76263b7c414946f40978234115d78ecb167e489f655c93d326e8d750e0198b8c7b71346d6e389
7
+ data.tar.gz: 2ec5b5736823e2ba1c3ede2f81d0eac183f0c4a0826b4f36a17f9dcfe7e527bb410bbc0f07a99be0d0f42bfd931efc69bf0bda16307c66a0de257c63312f675f
data/bin/ccr CHANGED
@@ -24,7 +24,7 @@ def fail_if_cb_files
24
24
  exit 1
25
25
  end
26
26
 
27
- unless File.open('metadata.rb').read =~ /version\s*'\d*.\d*.\d*'/
27
+ unless File.open('metadata.rb').read =~ /version\s*('|")\d*.\d*.\d*('|")/
28
28
  puts_red("metadata.rb doesn't appear to have a valid version string!")
29
29
  exit 1
30
30
  end
@@ -50,11 +50,11 @@ def bump_version(old_version)
50
50
  end
51
51
 
52
52
  def current_metadata_version
53
- File.open('metadata.rb').read.match(/version\s*'(\d*.\d*.\d*)'/)[1]
53
+ File.open('metadata.rb').read.match(/version\s*('|")(\d*.\d*.\d*)('|")/)[2]
54
54
  end
55
55
 
56
56
  def prompted_new_version
57
- current_version = File.open('metadata.rb').read.match(/version\s*'(\d*.\d*.\d*)'/)[1]
57
+ current_version = File.open('metadata.rb').read.match(/version\s*('|")(\d*.\d*.\d*)('|")/)[2]
58
58
  next_version = bump_version(current_version)
59
59
 
60
60
  print "New version to release [autobump to #{next_version}]: "
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: community_cookbook_releaser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-06 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -48,7 +48,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
- version: 2.1.0
51
+ version: 2.2.0
52
52
  required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - ">="
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.6.8
59
+ rubygems_version: 2.6.11
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: A simple script in gem form for releasing chef managed community cookbooks.