puppet-modulebuilder 0.2.0 → 0.2.1

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: 2da08da68dec074cc50dc14e8a860df902b5246e41bf78b667184787b647104d
4
- data.tar.gz: bd4ee562e9bfe9fefd38bee365dee4cb49d022d94758311d60ff94f00fbfd813
3
+ metadata.gz: ca2a1887e9b40f9439cdf6fb1335b5ce7978d1ab3c4d806fc90c7ec735949957
4
+ data.tar.gz: 5961801ac2e64949b4367a8e7f3be1c0ef505008da5f30e0c80b4cc26ad60ff0
5
5
  SHA512:
6
- metadata.gz: 665bdb0b8dc6a79049122794264293637df282f5ce08807025286ac2c1e91728af27f38aa444bde93e42b1847c3b01991dbf0f8f749507bd6639cedca6d95c9c
7
- data.tar.gz: 49384a88f4eee08264682eedad55ec6cf70a201459a297406969b5185fc39cbeae4b9e10c83a8c4a58c96fc35b87e48e5f1ea016385f3ff17488132b429a1684
6
+ metadata.gz: 7cbf20f57e42e53825e1afc3a9f20c7c5e3334c7e2e360ff26f08e6cd7600de89c5fda05769b2242ec080c1c7e0796e295a47828cefca0f47b68dcc9fb631eaf
7
+ data.tar.gz: e78d9e044df24a6e87564173adfaa6f21d0cecff194440277657e5083a0edf67a6aad3924bb530f3a44018b1d7d77dbad449fbeb8f573d05f3855f602e841595
@@ -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
@@ -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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/puppet/modulebuilder`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ The `puppet-modulebuilder` gem contains the reference implementation for building Puppet modules from source.
6
6
 
7
- TODO: Delete this and the text above, and describe your gem
8
-
9
- ## Installation
10
-
11
- Add this line to your application's Gemfile:
7
+ ## Usage
12
8
 
13
9
  ```ruby
14
- gem 'puppet-modulebuilder'
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
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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/[USERNAME]/puppet-modulebuilder.
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
- raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
33
- config.user = "puppetlabs"
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 = "# Change log\n\nAll 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)."
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 = "### UNCATEGORIZED PRS; GO LABEL THEM"
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(*args)
404
- FileUtils.cp(*args)
403
+ def fileutils_cp(src, dest, **options)
404
+ FileUtils.cp(src, dest, **options)
405
405
  end
406
406
 
407
- def fileutils_mkdir_p(*args)
408
- FileUtils.mkdir_p(*args)
407
+ def fileutils_mkdir_p(dir, **options)
408
+ FileUtils.mkdir_p(dir, **options)
409
409
  end
410
410
 
411
411
  def file_stat(*args)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Puppet # rubocop:disable Style/ClassAndModuleChildren
4
4
  module Modulebuilder
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
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.0
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-04-30 00:00:00.000000000 Z
12
+ date: 2020-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitar