puppet-blacksmith 4.1.0 → 4.1.1

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: f006f3c1be57de47df962b7a653f07c87eb61db0713ff114c47ebe8e6a669f4d
4
- data.tar.gz: 69225ae6f22e58d4f11f75f6f37922b5377df32a5b1c9231f89cd22e887d2351
3
+ metadata.gz: 64c50079d3271f0977114af00ce1fbac7354f6db5ec9b85b0546e372e2a854f8
4
+ data.tar.gz: 2f27c150e0714c4e677c44543b4409dad2a6b31e30e96e4657708d377cd8802b
5
5
  SHA512:
6
- metadata.gz: 386ad8efbc13c3f4c6c18e2a4abec43ad1d74f07e5100137f410c176d474ef37eb947323471eaac5c6d3b5ffd08023c948a3fccbe0daaa04160516f98e2c94a3
7
- data.tar.gz: 171770abef7ac2afb77957f9e82572f496149a31cf47ffdd9f411ef3721beea83dc419a564a3a1989a3c92cc7dac754095f1f092c9fb23034c59bdaa02a19356
6
+ metadata.gz: 36a5d6bcef39dff1c2fa07c1a5c9c42a0ee923fc2a583ba1288749fc85dbee91e39346d64f169abea9ae2c32edae1e745811ac3b1e6bba6fdd507ac4b81aa38b
7
+ data.tar.gz: c70062cd97bf7d947825bb9fcb1c9e4367a64afaa235b655bd8bfd6cffd92cca61f3dff870c7da3d919d0df43e19ccf767342c94be5b1ec20982c809a13c71f7
@@ -5,7 +5,7 @@ require 'puppet_blacksmith'
5
5
  module Blacksmith
6
6
  class RakeTask < ::Rake::TaskLib
7
7
 
8
- attr_accessor :tag_pattern, :tag_message_pattern, :commit_message_pattern, :build
8
+ attr_accessor :tag_pattern, :tag_message_pattern, :tag_sign, :commit_message_pattern, :build
9
9
 
10
10
  def initialize(*args, &task_block)
11
11
  @build = true
@@ -14,6 +14,16 @@ module Blacksmith
14
14
  define(args, &task_block)
15
15
  end
16
16
 
17
+ def git
18
+ git = Blacksmith::Git.new
19
+ git.tag_pattern = @tag_pattern
20
+ git.tag_message_pattern = @tag_message_pattern
21
+ git.commit_message_pattern = @commit_message_pattern
22
+ git.tag_sign = @tag_sign
23
+
24
+ git
25
+ end
26
+
17
27
  def define(args, &task_block)
18
28
 
19
29
  task_block.call(*[self, args].slice(0, task_block.arity)) if task_block
@@ -58,10 +68,10 @@ module Blacksmith
58
68
  end
59
69
 
60
70
  desc "Bump module to specific version number"
61
- task :bump_to_version, [:new_version] do |t, args|
71
+ task :bump_to_version, [:new_version] do |t, targs|
62
72
  m = Blacksmith::Modulefile.new
63
- v = m.bump_to_version!(args[:new_version])
64
- puts "Bumping version to #{args[:new_version]}"
73
+ m.bump_to_version!(targs[:new_version])
74
+ puts "Bumping version to #{targs[:new_version]}"
65
75
  end
66
76
 
67
77
  desc "Bump module version to the next patch"
@@ -74,10 +84,6 @@ module Blacksmith
74
84
  desc "Git tag with the current module version"
75
85
  task :tag do
76
86
  m = Blacksmith::Modulefile.new
77
- git = Blacksmith::Git.new
78
- git.tag_pattern = @tag_pattern
79
- git.tag_message_pattern = @tag_message_pattern
80
- git.commit_message_pattern = @commit_message_pattern
81
87
  git.tag!(m.version)
82
88
  end
83
89
 
@@ -108,10 +114,6 @@ module Blacksmith
108
114
  desc "Bump module version to the next #{level.upcase} version and git commit"
109
115
  task level => "bump:#{level}".to_sym do
110
116
  m = Blacksmith::Modulefile.new
111
- git = Blacksmith::Git.new
112
- git.tag_pattern = @tag_pattern
113
- git.tag_message_pattern = @tag_message_pattern
114
- git.commit_message_pattern = @commit_message_pattern
115
117
  git.commit_modulefile!(m.version)
116
118
  end
117
119
  end
@@ -120,10 +122,6 @@ module Blacksmith
120
122
  desc "Bump version and git commit"
121
123
  task :bump_commit => :bump do
122
124
  m = Blacksmith::Modulefile.new
123
- git = Blacksmith::Git.new
124
- git.tag_pattern = @tag_pattern
125
- git.tag_message_pattern = @tag_message_pattern
126
- git.commit_message_pattern = @commit_message_pattern
127
125
  git.commit_modulefile!(m.version)
128
126
  end
129
127
 
@@ -145,17 +143,13 @@ module Blacksmith
145
143
  release_dependencies = @build ? [:clean, :build, :bump_commit, :tag, :push] : [:clean, :bump_commit, :tag]
146
144
  task :release => release_dependencies do
147
145
  puts "Pushing to remote git repo"
148
- git = Blacksmith::Git.new
149
- git.tag_pattern = @tag_pattern
150
- git.tag_message_pattern = @tag_message_pattern
151
- git.commit_message_pattern = @commit_message_pattern
152
146
  git.push!
153
147
  end
154
148
 
155
149
  desc "Set specific module dependency version"
156
- task :dependency, [:module_name, :version] do |t, args|
157
- mn = args[:module_name]
158
- mv = args[:version]
150
+ task :dependency, [:module_name, :version] do |t, targs|
151
+ mn = targs[:module_name]
152
+ mv = targs[:version]
159
153
  m = Blacksmith::Modulefile.new
160
154
  m.bump_dep! mn, mv
161
155
  puts "Updated module dependency #{mn} to #{mv}"
@@ -1,3 +1,3 @@
1
1
  module Blacksmith
2
- VERSION = '4.1.0'
2
+ VERSION = '4.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-blacksmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MaestroDev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-04 00:00:00.000000000 Z
11
+ date: 2017-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client