puppet-blacksmith 5.1.0 → 6.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +199 -9
- data/lib/puppet_blacksmith/forge.rb +1 -1
- data/lib/puppet_blacksmith/modulefile.rb +4 -1
- data/lib/puppet_blacksmith/rake_tasks.rb +21 -5
- data/lib/puppet_blacksmith/version.rb +1 -1
- data/spec/data/metadata-different-author.json +36 -0
- data/spec/data/metadata-no-author.json +35 -0
- data/spec/puppet_blacksmith/forge_shared.rb +2 -2
- data/spec/puppet_blacksmith/git_spec.rb +1 -1
- data/spec/puppet_blacksmith/modulefile_spec.rb +26 -0
- data/spec/spec_helper.rb +24 -0
- metadata +35 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e245b9c1dd5511577bfdee9a4b13d43747755d360ff6489fa87251033819e823
|
4
|
+
data.tar.gz: 67b1f15dddd35faeb8d86a70e255cae13cbeaf20e6fff840f2ef6c8a187281fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 602fa94091986550141377a0fd867b9a999c865cbfcd74ee98d804d69f4ee983d5883a59e34b1739355a5120531c68294787b85b11a7d1c2247d861588974a05
|
7
|
+
data.tar.gz: d04eafeeb3507cf89af8ef28ac2cbe0efd0ade986c165e8eb68ba9b0edafaba6c2c81c42149abe9f669ddb919f7130e67731f36822ecbe7441dc8b51298c3a55
|
data/LICENSE
CHANGED
@@ -1,13 +1,203 @@
|
|
1
1
|
Copyright (c) 2013 MaestroDev
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
Apache License
|
4
|
+
Version 2.0, January 2004
|
5
|
+
http://www.apache.org/licenses/
|
6
6
|
|
7
|
-
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
1. Definitions.
|
10
|
+
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
12
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
13
|
+
|
14
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
15
|
+
the copyright owner that is granting the License.
|
16
|
+
|
17
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
18
|
+
other entities that control, are controlled by, or are under common
|
19
|
+
control with that entity. For the purposes of this definition,
|
20
|
+
"control" means (i) the power, direct or indirect, to cause the
|
21
|
+
direction or management of such entity, whether by contract or
|
22
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
23
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
24
|
+
|
25
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
26
|
+
exercising permissions granted by this License.
|
27
|
+
|
28
|
+
"Source" form shall mean the preferred form for making modifications,
|
29
|
+
including but not limited to software source code, documentation
|
30
|
+
source, and configuration files.
|
31
|
+
|
32
|
+
"Object" form shall mean any form resulting from mechanical
|
33
|
+
transformation or translation of a Source form, including but
|
34
|
+
not limited to compiled object code, generated documentation,
|
35
|
+
and conversions to other media types.
|
36
|
+
|
37
|
+
"Work" shall mean the work of authorship, whether in Source or
|
38
|
+
Object form, made available under the License, as indicated by a
|
39
|
+
copyright notice that is included in or attached to the work
|
40
|
+
(an example is provided in the Appendix below).
|
41
|
+
|
42
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
43
|
+
form, that is based on (or derived from) the Work and for which the
|
44
|
+
editorial revisions, annotations, elaborations, or other modifications
|
45
|
+
represent, as a whole, an original work of authorship. For the purposes
|
46
|
+
of this License, Derivative Works shall not include works that remain
|
47
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
48
|
+
the Work and Derivative Works thereof.
|
49
|
+
|
50
|
+
"Contribution" shall mean any work of authorship, including
|
51
|
+
the original version of the Work and any modifications or additions
|
52
|
+
to that Work or Derivative Works thereof, that is intentionally
|
53
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
54
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
55
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
56
|
+
means any form of electronic, verbal, or written communication sent
|
57
|
+
to the Licensor or its representatives, including but not limited to
|
58
|
+
communication on electronic mailing lists, source code control systems,
|
59
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
60
|
+
Licensor for the purpose of discussing and improving the Work, but
|
61
|
+
excluding communication that is conspicuously marked or otherwise
|
62
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
63
|
+
|
64
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
65
|
+
on behalf of whom a Contribution has been received by Licensor and
|
66
|
+
subsequently incorporated within the Work.
|
67
|
+
|
68
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
69
|
+
this License, each Contributor hereby grants to You a perpetual,
|
70
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
71
|
+
copyright license to reproduce, prepare Derivative Works of,
|
72
|
+
publicly display, publicly perform, sublicense, and distribute the
|
73
|
+
Work and such Derivative Works in Source or Object form.
|
74
|
+
|
75
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
76
|
+
this License, each Contributor hereby grants to You a perpetual,
|
77
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
78
|
+
(except as stated in this section) patent license to make, have made,
|
79
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
80
|
+
where such license applies only to those patent claims licensable
|
81
|
+
by such Contributor that are necessarily infringed by their
|
82
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
83
|
+
with the Work to which such Contribution(s) was submitted. If You
|
84
|
+
institute patent litigation against any entity (including a
|
85
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
86
|
+
or a Contribution incorporated within the Work constitutes direct
|
87
|
+
or contributory patent infringement, then any patent licenses
|
88
|
+
granted to You under this License for that Work shall terminate
|
89
|
+
as of the date such litigation is filed.
|
90
|
+
|
91
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
92
|
+
Work or Derivative Works thereof in any medium, with or without
|
93
|
+
modifications, and in Source or Object form, provided that You
|
94
|
+
meet the following conditions:
|
95
|
+
|
96
|
+
(a) You must give any other recipients of the Work or
|
97
|
+
Derivative Works a copy of this License; and
|
98
|
+
|
99
|
+
(b) You must cause any modified files to carry prominent notices
|
100
|
+
stating that You changed the files; and
|
101
|
+
|
102
|
+
(c) You must retain, in the Source form of any Derivative Works
|
103
|
+
that You distribute, all copyright, patent, trademark, and
|
104
|
+
attribution notices from the Source form of the Work,
|
105
|
+
excluding those notices that do not pertain to any part of
|
106
|
+
the Derivative Works; and
|
107
|
+
|
108
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
109
|
+
distribution, then any Derivative Works that You distribute must
|
110
|
+
include a readable copy of the attribution notices contained
|
111
|
+
within such NOTICE file, excluding those notices that do not
|
112
|
+
pertain to any part of the Derivative Works, in at least one
|
113
|
+
of the following places: within a NOTICE text file distributed
|
114
|
+
as part of the Derivative Works; within the Source form or
|
115
|
+
documentation, if provided along with the Derivative Works; or,
|
116
|
+
within a display generated by the Derivative Works, if and
|
117
|
+
wherever such third-party notices normally appear. The contents
|
118
|
+
of the NOTICE file are for informational purposes only and
|
119
|
+
do not modify the License. You may add Your own attribution
|
120
|
+
notices within Derivative Works that You distribute, alongside
|
121
|
+
or as an addendum to the NOTICE text from the Work, provided
|
122
|
+
that such additional attribution notices cannot be construed
|
123
|
+
as modifying the License.
|
124
|
+
|
125
|
+
You may add Your own copyright statement to Your modifications and
|
126
|
+
may provide additional or different license terms and conditions
|
127
|
+
for use, reproduction, or distribution of Your modifications, or
|
128
|
+
for any such Derivative Works as a whole, provided Your use,
|
129
|
+
reproduction, and distribution of the Work otherwise complies with
|
130
|
+
the conditions stated in this License.
|
131
|
+
|
132
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
133
|
+
any Contribution intentionally submitted for inclusion in the Work
|
134
|
+
by You to the Licensor shall be under the terms and conditions of
|
135
|
+
this License, without any additional terms or conditions.
|
136
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
137
|
+
the terms of any separate license agreement you may have executed
|
138
|
+
with Licensor regarding such Contributions.
|
139
|
+
|
140
|
+
6. Trademarks. This License does not grant permission to use the trade
|
141
|
+
names, trademarks, service marks, or product names of the Licensor,
|
142
|
+
except as required for reasonable and customary use in describing the
|
143
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
144
|
+
|
145
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
146
|
+
agreed to in writing, Licensor provides the Work (and each
|
147
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
148
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
149
|
+
implied, including, without limitation, any warranties or conditions
|
150
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
151
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
152
|
+
appropriateness of using or redistributing the Work and assume any
|
153
|
+
risks associated with Your exercise of permissions under this License.
|
154
|
+
|
155
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
156
|
+
whether in tort (including negligence), contract, or otherwise,
|
157
|
+
unless required by applicable law (such as deliberate and grossly
|
158
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
159
|
+
liable to You for damages, including any direct, indirect, special,
|
160
|
+
incidental, or consequential damages of any character arising as a
|
161
|
+
result of this License or out of the use or inability to use the
|
162
|
+
Work (including but not limited to damages for loss of goodwill,
|
163
|
+
work stoppage, computer failure or malfunction, or any and all
|
164
|
+
other commercial damages or losses), even if such Contributor
|
165
|
+
has been advised of the possibility of such damages.
|
166
|
+
|
167
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
168
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
169
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
170
|
+
or other liability obligations and/or rights consistent with this
|
171
|
+
License. However, in accepting such obligations, You may act only
|
172
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
173
|
+
of any other Contributor, and only if You agree to indemnify,
|
174
|
+
defend, and hold each Contributor harmless for any liability
|
175
|
+
incurred by, or claims asserted against, such Contributor by reason
|
176
|
+
of your accepting any such warranty or additional liability.
|
177
|
+
|
178
|
+
END OF TERMS AND CONDITIONS
|
179
|
+
|
180
|
+
APPENDIX: How to apply the Apache License to your work.
|
181
|
+
|
182
|
+
To apply the Apache License to your work, attach the following
|
183
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
184
|
+
replaced with your own identifying information. (Don't include
|
185
|
+
the brackets!) The text should be enclosed in the appropriate
|
186
|
+
comment syntax for the file format. We also recommend that a
|
187
|
+
file or class name and description of purpose be included on the
|
188
|
+
same "printed page" as the copyright notice for easier
|
189
|
+
identification within third-party archives.
|
190
|
+
|
191
|
+
Copyright [yyyy] [name of copyright owner]
|
192
|
+
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
194
|
+
you may not use this file except in compliance with the License.
|
195
|
+
You may obtain a copy of the License at
|
196
|
+
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
198
|
+
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
202
|
+
See the License for the specific language governing permissions and
|
203
|
+
limitations under the License.
|
@@ -83,7 +83,7 @@ module Blacksmith
|
|
83
83
|
HEADERS.merge({'Authorization' => "Basic " + Base64.strict_encode64("#{username}:#{password}")})
|
84
84
|
end
|
85
85
|
else
|
86
|
-
HEADERS.merge({'Authorization' => "Bearer #{token || oauth_access_token}"})
|
86
|
+
HEADERS.merge({'Authorization' => "Bearer #{api_key || token || oauth_access_token}"})
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
@@ -21,8 +21,11 @@ module Blacksmith
|
|
21
21
|
def name
|
22
22
|
metadata['name'].split('-',2)[1]
|
23
23
|
end
|
24
|
+
def namespace
|
25
|
+
metadata['name'].split('-',2)[0]
|
26
|
+
end
|
24
27
|
def author
|
25
|
-
metadata['author'] ||
|
28
|
+
metadata['author'] || namespace
|
26
29
|
end
|
27
30
|
def version
|
28
31
|
metadata['version']
|
@@ -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)
|
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,21 +135,28 @@ 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
|
-
puts "Uploading to Puppet Forge #{m.
|
133
|
-
forge.push!(m.name, nil, m.
|
141
|
+
puts "Uploading to Puppet Forge #{m.namespace}/#{m.name}"
|
142
|
+
forge.push!(m.name, nil, m.namespace, m.version)
|
134
143
|
end
|
135
144
|
|
136
145
|
desc "Runs clean again"
|
137
146
|
task :clean do
|
138
147
|
puts "Cleaning for module build"
|
139
|
-
Rake::Task
|
148
|
+
if Rake::Task::task_defined?(:clean)
|
149
|
+
Rake::Task["clean"].execute
|
150
|
+
else
|
151
|
+
# identical to the clean task in puppetlabs_spec_helper on 2021-07-30
|
152
|
+
# https://github.com/puppetlabs/puppetlabs_spec_helper/blob/24d7b21280a26cc682146839f41dbf1c0793e494/lib/puppetlabs_spec_helper/rake_tasks.rb#L165-L168
|
153
|
+
require 'fileutils'
|
154
|
+
FileUtils.rm_rf('pkg/')
|
155
|
+
end
|
140
156
|
end
|
141
157
|
|
142
158
|
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]
|
159
|
+
release_dependencies = @build ? [:clean, :'module:build', :bump_commit, :tag, :push] : [:clean, :bump_commit, :tag]
|
144
160
|
task :release => release_dependencies do
|
145
161
|
puts "Pushing to remote git repo"
|
146
162
|
git.push!
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"operatingsystem_support": [
|
3
|
+
{
|
4
|
+
"operatingsystem": "CentOS",
|
5
|
+
"operatingsystemrelease": [
|
6
|
+
"4",
|
7
|
+
"5",
|
8
|
+
"6"
|
9
|
+
]
|
10
|
+
}
|
11
|
+
],
|
12
|
+
"requirements": [
|
13
|
+
{
|
14
|
+
"name": "pe",
|
15
|
+
"version_requirement": "3.2.x"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"name": "puppet",
|
19
|
+
"version_requirement": ">=2.7.20 <7.0.0"
|
20
|
+
}
|
21
|
+
],
|
22
|
+
"name": "maestrodev-test",
|
23
|
+
"version": "1.0.0",
|
24
|
+
"source": "git://github.com/puppetlabs/puppetlabs-stdlib",
|
25
|
+
"author": "MaestroDev",
|
26
|
+
"license": "Apache 2.0",
|
27
|
+
"summary": "Puppet Module Standard Library",
|
28
|
+
"description": "Standard Library for Puppet Modules",
|
29
|
+
"project_page": "https://github.com/puppetlabs/puppetlabs-stdlib",
|
30
|
+
"dependencies": [
|
31
|
+
{
|
32
|
+
"name": "puppetlabs-stdlib",
|
33
|
+
"version_requirement": ">= 3.0.0"
|
34
|
+
}
|
35
|
+
]
|
36
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"operatingsystem_support": [
|
3
|
+
{
|
4
|
+
"operatingsystem": "CentOS",
|
5
|
+
"operatingsystemrelease": [
|
6
|
+
"4",
|
7
|
+
"5",
|
8
|
+
"6"
|
9
|
+
]
|
10
|
+
}
|
11
|
+
],
|
12
|
+
"requirements": [
|
13
|
+
{
|
14
|
+
"name": "pe",
|
15
|
+
"version_requirement": "3.2.x"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"name": "puppet",
|
19
|
+
"version_requirement": ">=2.7.20 <7.0.0"
|
20
|
+
}
|
21
|
+
],
|
22
|
+
"name": "maestrodev-test",
|
23
|
+
"version": "1.0.0",
|
24
|
+
"source": "git://github.com/puppetlabs/puppetlabs-stdlib",
|
25
|
+
"license": "Apache 2.0",
|
26
|
+
"summary": "Puppet Module Standard Library",
|
27
|
+
"description": "Standard Library for Puppet Modules",
|
28
|
+
"project_page": "https://github.com/puppetlabs/puppetlabs-stdlib",
|
29
|
+
"dependencies": [
|
30
|
+
{
|
31
|
+
"name": "puppetlabs-stdlib",
|
32
|
+
"version_requirement": ">= 3.0.0"
|
33
|
+
}
|
34
|
+
]
|
35
|
+
}
|
@@ -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(
|
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(
|
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(
|
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
|
|
@@ -11,6 +11,32 @@ describe 'Blacksmith::Modulefile' do
|
|
11
11
|
it { expect(subject.name).to eql("test") }
|
12
12
|
end
|
13
13
|
|
14
|
+
context "using different author" do
|
15
|
+
let(:path) { "spec/data/metadata-different-author.json" }
|
16
|
+
|
17
|
+
subject { Blacksmith::Modulefile.new(path) }
|
18
|
+
|
19
|
+
it_behaves_like :metadata
|
20
|
+
|
21
|
+
describe "author and namespace" do
|
22
|
+
it { expect(subject.author).to eql("MaestroDev") }
|
23
|
+
it { expect(subject.namespace).to eql("maestrodev") }
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context "using no author" do
|
28
|
+
let(:path) { "spec/data/metadata-no-author.json" }
|
29
|
+
|
30
|
+
subject { Blacksmith::Modulefile.new(path) }
|
31
|
+
|
32
|
+
it_behaves_like :metadata
|
33
|
+
|
34
|
+
describe "author and namespace" do
|
35
|
+
it { expect(subject.author).to eql("maestrodev") }
|
36
|
+
it { expect(subject.namespace).to eql("maestrodev") }
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
14
40
|
context "using metadata.json" do
|
15
41
|
|
16
42
|
it_behaves_like :metadata
|
data/spec/spec_helper.rb
CHANGED
@@ -1 +1,25 @@
|
|
1
|
+
begin
|
2
|
+
require 'simplecov'
|
3
|
+
require 'simplecov-console'
|
4
|
+
require 'codecov'
|
5
|
+
rescue LoadError
|
6
|
+
else
|
7
|
+
SimpleCov.start do
|
8
|
+
track_files 'lib/**/*.rb'
|
9
|
+
|
10
|
+
add_filter '/spec'
|
11
|
+
|
12
|
+
enable_coverage :branch
|
13
|
+
|
14
|
+
# do not track vendored files
|
15
|
+
add_filter '/vendor'
|
16
|
+
add_filter '/.vendor'
|
17
|
+
end
|
18
|
+
|
19
|
+
SimpleCov.formatters = [
|
20
|
+
SimpleCov::Formatter::Console,
|
21
|
+
SimpleCov::Formatter::Codecov,
|
22
|
+
]
|
23
|
+
end
|
24
|
+
|
1
25
|
require 'puppet_blacksmith'
|
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:
|
4
|
+
version: 6.1.1
|
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:
|
12
|
+
date: 2021-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
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
|
20
|
+
version: '0.2'
|
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
|
27
|
+
version: '0.2'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
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: :
|
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:
|
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:
|
57
|
+
name: rake
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
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:
|
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
|
@@ -141,16 +127,22 @@ dependencies:
|
|
141
127
|
name: webmock
|
142
128
|
requirement: !ruby/object:Gem::Requirement
|
143
129
|
requirements:
|
144
|
-
- - "
|
130
|
+
- - ">="
|
145
131
|
- !ruby/object:Gem::Version
|
146
132
|
version: '2.0'
|
133
|
+
- - "<"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '4'
|
147
136
|
type: :development
|
148
137
|
prerelease: false
|
149
138
|
version_requirements: !ruby/object:Gem::Requirement
|
150
139
|
requirements:
|
151
|
-
- - "
|
140
|
+
- - ">="
|
152
141
|
- !ruby/object:Gem::Version
|
153
142
|
version: '2.0'
|
143
|
+
- - "<"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '4'
|
154
146
|
description: Puppet module tools for development and Puppet Forge management
|
155
147
|
email:
|
156
148
|
- voxpupuli@groups.io
|
@@ -169,6 +161,8 @@ files:
|
|
169
161
|
- lib/puppet_blacksmith/version.rb
|
170
162
|
- lib/puppet_blacksmith/version_helper.rb
|
171
163
|
- spec/data/maestrodev-test/metadata.json
|
164
|
+
- spec/data/metadata-different-author.json
|
165
|
+
- spec/data/metadata-no-author.json
|
172
166
|
- spec/data/metadata.json
|
173
167
|
- spec/data/response.json
|
174
168
|
- spec/puppet_blacksmith/forge_live_spec.rb
|
@@ -178,7 +172,8 @@ files:
|
|
178
172
|
- spec/puppet_blacksmith/modulefile_spec.rb
|
179
173
|
- spec/spec_helper.rb
|
180
174
|
homepage: http://github.com/voxpupuli/puppet-blacksmith
|
181
|
-
licenses:
|
175
|
+
licenses:
|
176
|
+
- Apache-2.0
|
182
177
|
metadata: {}
|
183
178
|
post_install_message:
|
184
179
|
rdoc_options: []
|
@@ -195,18 +190,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
190
|
- !ruby/object:Gem::Version
|
196
191
|
version: '0'
|
197
192
|
requirements: []
|
198
|
-
|
199
|
-
rubygems_version: 2.7.7
|
193
|
+
rubygems_version: 3.2.22
|
200
194
|
signing_key:
|
201
195
|
specification_version: 4
|
202
196
|
summary: Tasks to manage Puppet module builds
|
203
197
|
test_files:
|
204
|
-
- spec/
|
198
|
+
- spec/data/maestrodev-test/metadata.json
|
199
|
+
- spec/data/metadata-different-author.json
|
200
|
+
- spec/data/metadata-no-author.json
|
201
|
+
- spec/data/metadata.json
|
202
|
+
- spec/data/response.json
|
205
203
|
- spec/puppet_blacksmith/forge_live_spec.rb
|
204
|
+
- spec/puppet_blacksmith/forge_shared.rb
|
205
|
+
- spec/puppet_blacksmith/forge_spec.rb
|
206
206
|
- spec/puppet_blacksmith/git_spec.rb
|
207
207
|
- spec/puppet_blacksmith/modulefile_spec.rb
|
208
|
-
- spec/puppet_blacksmith/forge_spec.rb
|
209
208
|
- spec/spec_helper.rb
|
210
|
-
- spec/data/maestrodev-test/metadata.json
|
211
|
-
- spec/data/response.json
|
212
|
-
- spec/data/metadata.json
|