puppet-blacksmith 5.1.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 305f0506d63f4917fafb2bc2c7a136901dcb00afad6344fb8237c8f9fd49243e
4
- data.tar.gz: b6a858b2f0a624f0b0f263ffa7dd9040c4c979366a79430addb7d21f5f037f7f
3
+ metadata.gz: c9a6f0b030d273a95e8e0c4c9aa6a2064627e81a8de340568374ababcd78b725
4
+ data.tar.gz: 65aa44875428323c3863e2fa144eb8bc568018659880494446da84c486062de2
5
5
  SHA512:
6
- metadata.gz: 9bfbb91e54799c358123411a37e9aefea96036ea71f4da8c452eaea90f938c5473c0315287c94c3f07e735e4a29452c56a718f7472f6e35b835e39ce3d6a5b0d
7
- data.tar.gz: bd96a1ce3caabc6841b2e9d57ddff9d642bd418895fa099c147832cf947334c0b6bf4769e128f62619f9d8d13dd0f1542e15f424e690e0aa5fd3b9ae11b34420
6
+ metadata.gz: 78d1b672f742c6ea6512c80f48fea18565fdce5cb261faa5290544327ef5edea57b24072ac845203f21096fa1fb8ed04f2579a0f5c3775083a47f7a611d83517
7
+ data.tar.gz: 210e663c53a3bded6079c4056b17c9ce470284444b0ef22ae1e0912ae40bbfdd70a7455a5fb6d9f7d7fdcc22a08e04d52dc00d047cab292448934513edd4d878
@@ -30,6 +30,7 @@ module Blacksmith
30
30
 
31
31
  # clear any (auto-)pre-existing task
32
32
  [
33
+ :build,
33
34
  :bump,
34
35
  'bump:major',
35
36
  'bump:minor',
@@ -56,6 +57,14 @@ module Blacksmith
56
57
 
57
58
  namespace :module do
58
59
 
60
+ desc 'Build the module using puppet-modulebuilder'
61
+ task :build do
62
+ require 'puppet/modulebuilder'
63
+ builder = Puppet::Modulebuilder::Builder.new(Dir.pwd, nil, nil)
64
+ package_file = builder.build
65
+ puts "Built #{package_file}"
66
+ end
67
+
59
68
  namespace :bump do
60
69
  [:major, :minor, :patch, :full].each do |level|
61
70
  desc "Bump module version to the next #{level.upcase} version"
@@ -126,7 +135,7 @@ module Blacksmith
126
135
  end
127
136
 
128
137
  desc "Push module to the Puppet Forge"
129
- task :push => :build do
138
+ task :push => :'module:build' do
130
139
  m = Blacksmith::Modulefile.new
131
140
  forge = Blacksmith::Forge.new
132
141
  puts "Uploading to Puppet Forge #{m.author}/#{m.name}"
@@ -140,7 +149,7 @@ module Blacksmith
140
149
  end
141
150
 
142
151
  desc "Release the Puppet module, doing a clean, build, bump_commit, tag, push and git push."
143
- release_dependencies = @build ? [:clean, :build, :bump_commit, :tag, :push] : [:clean, :bump_commit, :tag]
152
+ release_dependencies = @build ? [:clean, :'module:build', :bump_commit, :tag, :push] : [:clean, :bump_commit, :tag]
144
153
  task :release => release_dependencies do
145
154
  puts "Pushing to remote git repo"
146
155
  git.push!
@@ -1,3 +1,3 @@
1
1
  module Blacksmith
2
- VERSION = '5.1.0'
2
+ VERSION = '6.0.0'
3
3
  end
@@ -15,9 +15,9 @@ RSpec.shared_context "forge" do
15
15
  let(:module_name) { "test" }
16
16
  let(:version) { "1.0.0" }
17
17
  let(:module_name) { "maestrodev-test" }
18
- let(:spec_data) { File.join(File.dirname(__FILE__), '/../data') }
18
+ let(:spec_data) { File.join(__dir__, '..', 'data') }
19
19
  let(:spec_module) { File.join(spec_data, module_name) }
20
- let(:target) { File.expand_path(File.join(__FILE__, "../../..", "pkg", module_name)) }
20
+ let(:target) { File.expand_path(File.join(__dir__, "..", "..", "pkg", module_name)) }
21
21
  let(:package) { "#{target}.tar.gz" }
22
22
 
23
23
  let(:headers) { { 'User-Agent' => %r{^Blacksmith/#{Blacksmith::VERSION} Ruby/.* \(.*\)$} } }
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe 'Blacksmith::Git' do
4
4
 
5
5
  subject { Blacksmith::Git.new(path) }
6
- let(:path) { File.expand_path(File.join(File.dirname(__FILE__), '../../tmp/git_test')) }
6
+ let(:path) { File.expand_path(File.join(__dir__, '../../tmp/git_test')) }
7
7
  let(:version) { '1.0.0' }
8
8
  let(:metadata_file) { "metadata.json" }
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-blacksmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MaestroDev
@@ -9,38 +9,38 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-03-07 00:00:00.000000000 Z
12
+ date: 2020-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rest-client
15
+ name: puppet-modulebuilder
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '2.0'
20
+ version: '0.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '2.0'
27
+ version: '0.1'
28
28
  - !ruby/object:Gem::Dependency
29
- name: bundler
29
+ name: rest-client
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :development
34
+ version: '2.0'
35
+ type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: '2.0'
42
42
  - !ruby/object:Gem::Dependency
43
- name: rake
43
+ name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - ">="
@@ -54,19 +54,19 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
- name: pdk
57
+ name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 1.17.0
62
+ version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 1.17.0
69
+ version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: puppet
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -81,20 +81,6 @@ dependencies:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: 2.7.16
84
- - !ruby/object:Gem::Dependency
85
- name: puppetlabs_spec_helper
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
84
  - !ruby/object:Gem::Dependency
99
85
  name: cucumber
100
86
  requirement: !ruby/object:Gem::Requirement