Showing with 431 additions and 392 deletions.
  1. +5 −1 .gitignore
  2. +1 −1 .rspec
  3. +68 −0 .rubocop.yml
  4. +11 −9 .sync.yml
  5. +35 −19 .travis.yml
  6. +1 −0 .yardopts
  7. +12 −2 CHANGELOG.md
  8. +59 −197 CONTRIBUTING.md
  9. +54 −28 Gemfile
  10. +44 −26 README.md
  11. +23 −38 Rakefile
  12. +26 −9 manifests/init.pp
  13. +14 −9 metadata.json
  14. +3 −0 spec/classes/coverage_spec.rb
  15. +50 −23 spec/defines/windows_eventlog/windows_eventlog_spec.rb
  16. +2 −0 spec/spec_helper.rb
  17. +23 −30 spec/spec_helper_acceptance.rb
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
pkg/
Gemfile.lock
Gemfile.local
vendor/
.vendor/
spec/fixtures/
.vagrant/
.bundle/
coverage/
*.iml
log/
.idea/
*.iml
.*.sw
2 changes: 1 addition & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--format documentation
--color
--color
68 changes: 68 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
AllCops:
TargetRubyVersion: 1.9
Include:
- ./**/*.rb
Exclude:
- vendor/**/*
- .vendor/**/*
- pkg/**/*
- spec/fixtures/**/*

# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 328

# 'Complexity' is very relative
Metrics/PerceivedComplexity:
Enabled: false

# 'Complexity' is very relative
Metrics/CyclomaticComplexity:
Enabled: false

# 'Complexity' is very relative
Metrics/AbcSize:
Enabled: false

# Method length is not necessarily an indicator of code quality
Metrics/MethodLength:
Enabled: false

# Module length is not necessarily an indicator of code quality
Metrics/ModuleLength:
Enabled: false

# Class length is not necessarily an indicator of code quality
Metrics/ClassLength:
Enabled: false

# dealbreaker:
Style/TrailingCommaInArguments:
Enabled: false
Style/TrailingCommaInLiteral:
Enabled: false
Style/ClosingParenthesisIndentation:
Enabled: false

Lint/AmbiguousRegexpLiteral:
Enabled: true
Style/RegexpLiteral:
Enabled: true
Style/WordArray:
Enabled: true

# this catches the cases of using `module` for parser functions, types, or
# providers
Style/ClassAndModuleChildren:
Enabled: false

Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false

# More comfortable block layouts
Style/BlockDelimiters:
Enabled: False

Style/MultilineBlockLayout:
Enabled: False
20 changes: 11 additions & 9 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
---
spec/spec_helper_acceptance.rb:
windows: true
dependencies:
- puppetlabs-stdlib
spec/acceptance/nodesets/centos-59-x64.yml:
spec/acceptance/nodesets/centos-511-x64.yml:
unmanaged: true
spec/acceptance/nodesets/centos-64-x64-pe.yml:
spec/acceptance/nodesets/centos-66-x64-pe.yml:
unmanaged: true
spec/acceptance/nodesets/centos-65-x64.yml:
spec/acceptance/nodesets/centos-66-x64.yml:
unmanaged: true
spec/acceptance/nodesets/ubuntu-server-10044-x64.yml:
spec/acceptance/nodesets/centos-72-x64.yml:
unmanaged: true
spec/acceptance/nodesets/ubuntu-server-12042-x64.yml:
spec/acceptance/nodesets/ubuntu-server-1204-x64.yml:
unmanaged: true
spec/acceptance/nodesets/ubuntu-server-1404-x64.yml:
unmanaged: true
spec/acceptance/nodesets/debian-78-x64.yml:
unmanaged: true
spec/acceptance/nodesets/debian-82-x64.yml:
unmanaged: true
.travis.yml:
secure: "FB+GouH3vel0+lcCFpctGorICXLEEyMa1C7qlJ9IZVBlW59rV/8ZOZg6rYdTGJ5VzSKN2oG/QPnjT//LucGMptjMPJafnXEkBhwP3QBzDdg+LSYjTBov0h8bpIjyycGvGXV5ERVSzSonkJuCdO92/pnP5nMFXGI0NVpvE7v2X1Y="
54 changes: 35 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,47 @@
notifications:
email: false
language: ruby
bundler_args: --without development system_tests
---
sudo: false
before_install: rm Gemfile.lock || true
script: bundle exec rake test
language: ruby
cache: bundler
bundler_args: --without system_tests development
before_install:
- bundle -v
- rm Gemfile.lock || true
- gem update --system
- gem update bundler
- gem --version
- bundle -v
script:
- 'bundle exec rake $CHECK'
matrix:
fast_finish: true
include:
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 3.0" FACTER_GEM_VERSION="~> 1.7.0"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
- rvm: 2.1.0
env: PUPPET_GEM_VERSION="~> 3.0" STRICT_VARIABLES=yes FUTURE_PARSER="yes"

- rvm: jruby-19mode
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: jruby-19mode
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.1
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.1
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.2
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.3.0
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=rubocop
- rvm: 2.3.0
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
allow_failures:
- rvm: 2.3.0
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
notifications:
email: false
deploy:
provider: puppetforge
user: puppet
password:
secure: "FB+GouH3vel0+lcCFpctGorICXLEEyMa1C7qlJ9IZVBlW59rV/8ZOZg6rYdTGJ5VzSKN2oG/QPnjT//LucGMptjMPJafnXEkBhwP3QBzDdg+LSYjTBov0h8bpIjyycGvGXV5ERVSzSonkJuCdO92/pnP5nMFXGI0NVpvE7v2X1Y="
secure: "FB+GouH3vel0+lcCFpctGorICXLEEyMa1C7qlJ9IZVBlW59rV/8ZOZg6rYdTGJ5VzSKN2oG/QPnjT//LucGMptjMPJafnXEkBhwP3QBzDdg+LSYjTBov0h8bpIjyycGvGXV5ERVSzSonkJuCdO92/pnP5nMFXGI0NVpvE7v2X1Y="
on:
tags: true
# all_branches is required to use tags
all_branches: true
# Only publish if our main Ruby target builds
rvm: 1.9.3
rvm: 2.2
1 change: 1 addition & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--markup markdown
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
__0.0.1__ <br/>
The initial version
## 2016-05-08 Release 1.1.1

* modulesync with voxpupuli defaults


## 2015-05-15 Release 1.1.0 (not published)

* Infer log_path using $name (when log_path is unset)

## 0.0.1

* The initial version
Loading