puppet-modulebuilder 0.2.0 → 0.2.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 +4 -4
- data/.travis.yml +5 -2
- data/CHANGELOG.md +10 -0
- data/Gemfile +1 -1
- data/README.md +6 -24
- data/Rakefile +10 -6
- data/lib/puppet/modulebuilder/builder.rb +5 -5
- data/lib/puppet/modulebuilder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca2a1887e9b40f9439cdf6fb1335b5ce7978d1ab3c4d806fc90c7ec735949957
|
4
|
+
data.tar.gz: 5961801ac2e64949b4367a8e7f3be1c0ef505008da5f30e0c80b4cc26ad60ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cbf20f57e42e53825e1afc3a9f20c7c5e3334c7e2e360ff26f08e6cd7600de89c5fda05769b2242ec080c1c7e0796e295a47828cefca0f47b68dcc9fb631eaf
|
7
|
+
data.tar.gz: e78d9e044df24a6e87564173adfaa6f21d0cecff194440277657e5083a0edf67a6aad3924bb530f3a44018b1d7d77dbad449fbeb8f573d05f3855f602e841595
|
data/.travis.yml
CHANGED
@@ -2,13 +2,16 @@
|
|
2
2
|
os: linux
|
3
3
|
language: ruby
|
4
4
|
cache: bundler
|
5
|
+
env:
|
6
|
+
- SIMPLECOV=yes
|
5
7
|
jobs:
|
6
8
|
include:
|
9
|
+
- rvm: 2.7
|
7
10
|
- rvm: 2.5.7
|
8
|
-
env:
|
9
|
-
- SIMPLECOV=yes
|
10
11
|
before_install: gem install bundler -v 2.1.4
|
11
12
|
- rvm: 2.4.9
|
12
13
|
before_install: gem install bundler -v 2.1.4
|
13
14
|
- rvm: 2.1.9
|
14
15
|
script: "bundle exec rake spec # don't try to run rubocop on ancient ruby"
|
16
|
+
env:
|
17
|
+
- SIMPLECOV=no
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
|
4
4
|
|
5
|
+
|
6
|
+
## [v0.2.1](https://github.com/puppetlabs/puppet-modulebuilder/tree/v0.2.1) (2020-06-08)
|
7
|
+
|
8
|
+
[Full Changelog](https://github.com/puppetlabs/puppet-modulebuilder/compare/v0.2.0...v0.2.1)
|
9
|
+
|
10
|
+
**Fixed bugs:**
|
11
|
+
|
12
|
+
- \(IAC-864\) fix symlinked source [\#23](https://github.com/puppetlabs/puppet-modulebuilder/pull/23) ([DavidS](https://github.com/DavidS))
|
13
|
+
- \(IAC-859\) add Ruby 2.7 testing; address deprecation warnings [\#22](https://github.com/puppetlabs/puppet-modulebuilder/pull/22) ([DavidS](https://github.com/DavidS))
|
14
|
+
|
5
15
|
## [v0.2.0](https://github.com/puppetlabs/puppet-modulebuilder/tree/v0.2.0) (2020-04-30)
|
6
16
|
|
7
17
|
[Full Changelog](https://github.com/puppetlabs/puppet-modulebuilder/compare/v0.1.0...v0.2.0)
|
data/Gemfile
CHANGED
@@ -13,9 +13,9 @@ group :development do
|
|
13
13
|
gem 'rubocop-rspec', '~> 1.38'
|
14
14
|
|
15
15
|
gem 'codecov', '~> 0.1'
|
16
|
+
gem 'github_changelog_generator', '~> 1.15', require: false
|
16
17
|
gem 'simplecov', '~> 0.18'
|
17
18
|
gem 'simplecov-console', '~> 0.6'
|
18
|
-
gem 'github_changelog_generator', '~> 1.15', require: false
|
19
19
|
end
|
20
20
|
|
21
21
|
if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.5.0')
|
data/README.md
CHANGED
@@ -2,37 +2,19 @@
|
|
2
2
|
|
3
3
|
# Puppet::Modulebuilder
|
4
4
|
|
5
|
-
|
5
|
+
The `puppet-modulebuilder` gem contains the reference implementation for building Puppet modules from source.
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
## Installation
|
10
|
-
|
11
|
-
Add this line to your application's Gemfile:
|
7
|
+
## Usage
|
12
8
|
|
13
9
|
```ruby
|
14
|
-
|
10
|
+
builder = Puppet::Modulebuilder::Builder.new('./puppetlabs-motd', './pkg', nil)
|
11
|
+
builder.build
|
15
12
|
```
|
16
13
|
|
17
|
-
And then execute:
|
18
|
-
|
19
|
-
$ bundle install
|
20
|
-
|
21
|
-
Or install it yourself as:
|
22
|
-
|
23
|
-
$ gem install puppet-modulebuilder
|
24
|
-
|
25
|
-
## Usage
|
26
|
-
|
27
|
-
TODO: Write usage instructions here
|
28
|
-
|
29
14
|
## Development
|
30
15
|
|
31
|
-
|
32
|
-
|
33
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
16
|
+
To release a new version, update the version number in `version.rb`, run `bundle exec rake changelog` and create a mergeback PR with the results. If that passes, run `bundle exec rake 'release[upstream]'`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
34
17
|
|
35
18
|
## Contributing
|
36
19
|
|
37
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
38
|
-
|
20
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/puppetlabs/puppet-modulebuilder.
|
data/Rakefile
CHANGED
@@ -25,19 +25,23 @@ end
|
|
25
25
|
|
26
26
|
task default: [:spec, :acceptance]
|
27
27
|
|
28
|
-
|
29
28
|
if Bundler.rubygems.find_name('github_changelog_generator').any?
|
30
29
|
require 'github_changelog_generator/task'
|
31
30
|
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
32
|
-
|
33
|
-
config.
|
34
|
-
config.project = "puppet-modulebuilder"
|
31
|
+
config.user = 'puppetlabs'
|
32
|
+
config.project = 'puppet-modulebuilder'
|
35
33
|
require 'puppet/modulebuilder/version'
|
36
34
|
config.future_release = "v#{Puppet::Modulebuilder::VERSION}"
|
37
35
|
config.exclude_labels = ['maintenance']
|
38
|
-
config.header =
|
36
|
+
config.header = <<-HEADER
|
37
|
+
# Change log
|
38
|
+
|
39
|
+
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
|
40
|
+
HEADER
|
41
|
+
.gsub(%r{^ *}, '')
|
42
|
+
|
39
43
|
config.add_pr_wo_labels = true
|
40
44
|
config.issues = false
|
41
|
-
config.merge_prefix =
|
45
|
+
config.merge_prefix = '### UNCATEGORIZED PRS; GO LABEL THEM'
|
42
46
|
end
|
43
47
|
end
|
@@ -35,7 +35,7 @@ module Puppet::Modulebuilder
|
|
35
35
|
return @source if @source_validated
|
36
36
|
|
37
37
|
validate_source!
|
38
|
-
@source
|
38
|
+
@source = File.realpath(@source)
|
39
39
|
end
|
40
40
|
|
41
41
|
# Build a module package from a module directory.
|
@@ -400,12 +400,12 @@ module Puppet::Modulebuilder
|
|
400
400
|
File.symlink?(*args)
|
401
401
|
end
|
402
402
|
|
403
|
-
def fileutils_cp(
|
404
|
-
FileUtils.cp(
|
403
|
+
def fileutils_cp(src, dest, **options)
|
404
|
+
FileUtils.cp(src, dest, **options)
|
405
405
|
end
|
406
406
|
|
407
|
-
def fileutils_mkdir_p(
|
408
|
-
FileUtils.mkdir_p(
|
407
|
+
def fileutils_mkdir_p(dir, **options)
|
408
|
+
FileUtils.mkdir_p(dir, **options)
|
409
409
|
end
|
410
410
|
|
411
411
|
def file_stat(*args)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-modulebuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sheena
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitar
|