Showing with 16 additions and 9 deletions.
  1. +1 −4 .travis.yml
  2. +6 −0 CHANGELOG.md
  3. +2 −1 Gemfile
  4. +3 −3 metadata.json
  5. +3 −0 spec/spec_helper.rb
  6. +1 −1 templates/tidy_cron.epp
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cache: bundler
before_install:
- bundle -v
- rm -f Gemfile.lock
- gem update --system
- gem update --system $RUBYGEMS_VERSION
- gem --version
- bundle -v
script:
Expand All @@ -26,9 +26,6 @@ matrix:
-
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
rvm: 2.4.4
-
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
rvm: 2.1.9
branches:
only:
- master
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Z Release 5.1.1

## Changes:
- Ensure nightly compression of metrics works with a large amount of files
- https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector/pull/8

# Minor Release 5.1.0

## Improvements
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ group :development do
gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
gem "json", '<= 2.0.4', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.4.4')
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "puppet-module-posix-default-r#{minor_version}", require: false, platforms: [:ruby]
gem "puppet-module-posix-dev-r#{minor_version}", require: false, platforms: [:ruby]
gem "puppet-module-win-default-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppetlabs-puppet_metrics_collector",
"version": "5.1.0",
"version": "5.1.1",
"author": "npwalker",
"summary": "A Puppet module for gathering metrics from PE components",
"license": "Apache-2.0",
Expand Down Expand Up @@ -68,7 +68,7 @@
"version_requirement": ">= 4.2.1"
}
],
"pdk-version": "1.9.0.pre (heads/master-0-g24ff96b)",
"pdk-version": "1.9.0.pre (heads/master-0-g7b2950b)",
"template-url": "https://github.com/puppetlabs/pdk-templates",
"template-ref": "heads/master-0-gbf720df"
"template-ref": "heads/master-0-g7281db5"
}
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
# by default Puppet runs at warning level
Puppet.settings[:strict] = :warning
end
c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT']
c.after(:suite) do
end
end

def ensure_module_defined(module_name)
Expand Down
2 changes: 1 addition & 1 deletion templates/tidy_cron.epp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ find "$DIR" -type f -ctime +$RETENTION_DAYS -delete
#compress files
cd "$DIR"
find . -type f -not -name "*.gz" -a -not -name "*.bz2" > "$DIR.tmp"
xargs -a "$DIR.tmp" tar -zcf "$DIR/$METRICS_TYPE-$(date +%Y.%m.%d.%H.%M.%S).tar.gz"
tar -zcf "$DIR/$METRICS_TYPE-$(date +%Y.%m.%d.%H.%M.%S).tar.gz" --files-from "$DIR.tmp"
xargs -a "$DIR.tmp" rm
rm "$DIR.tmp"