puppetlabs_spec_helper 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,118 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-06-17 09:41:41 +0200 using RuboCop version 0.49.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 4
10
+ # Configuration parameters: AllowSafeAssignment.
11
+ Lint/AssignmentInCondition:
12
+ Exclude:
13
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
14
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/fixtures.rb'
15
+ - 'lib/puppetlabs_spec_helper/rake_tasks.rb'
16
+
17
+ # Offense count: 2
18
+ # Cop supports --auto-correct.
19
+ # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
20
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
21
+ Lint/EndAlignment:
22
+ Exclude:
23
+ - 'lib/puppetlabs_spec_helper/rake_tasks.rb'
24
+ - 'spec/watchr.rb'
25
+
26
+ # Offense count: 4
27
+ Lint/HandleExceptions:
28
+ Exclude:
29
+ - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
30
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
31
+ - 'lib/puppetlabs_spec_helper/rake_tasks.rb'
32
+
33
+ # Offense count: 2
34
+ Lint/UselessAssignment:
35
+ Exclude:
36
+ - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
37
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
38
+
39
+ # Offense count: 2
40
+ # Configuration parameters: CustomTransform, IgnoreMethods.
41
+ RSpec/FilePath:
42
+ Exclude:
43
+ - 'spec/unit/puppetlabs_spec_helper/tasks/beaker_spec.rb'
44
+ - 'spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb'
45
+
46
+ # Offense count: 3
47
+ # Configuration parameters: AssignmentOnly.
48
+ RSpec/InstanceVariable:
49
+ Exclude:
50
+ - 'spec/acceptance/smoke_spec.rb'
51
+
52
+ # Offense count: 6
53
+ RSpec/MultipleExpectations:
54
+ Max: 3
55
+
56
+ # Offense count: 13
57
+ RSpec/NamedSubject:
58
+ Exclude:
59
+ - 'spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb'
60
+ - 'spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb'
61
+
62
+ # Offense count: 2
63
+ # Configuration parameters: IgnoreSymbolicNames.
64
+ RSpec/VerifiedDoubles:
65
+ Exclude:
66
+ - 'spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb'
67
+
68
+ # Offense count: 2
69
+ Security/Eval:
70
+ Exclude:
71
+ - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
72
+
73
+ # Offense count: 4
74
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
75
+ # SupportedStyles: nested, compact
76
+ Style/ClassAndModuleChildren:
77
+ Exclude:
78
+ - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
79
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb'
80
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
81
+
82
+ # Offense count: 11
83
+ Style/Documentation:
84
+ Exclude:
85
+ - 'spec/**/*'
86
+ - 'test/**/*'
87
+ - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
88
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb'
89
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
90
+ - 'lib/puppetlabs_spec_helper/tasks/beaker.rb'
91
+ - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
92
+
93
+ # Offense count: 1
94
+ Style/DoubleNegation:
95
+ Exclude:
96
+ - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
97
+
98
+ # Offense count: 6
99
+ # Configuration parameters: AllowedVariables.
100
+ Style/GlobalVars:
101
+ Exclude:
102
+ - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
103
+ - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
104
+
105
+ # Offense count: 1
106
+ # Configuration parameters: MinBodyLength.
107
+ Style/GuardClause:
108
+ Exclude:
109
+ - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
110
+
111
+ # Offense count: 1
112
+ # Cop supports --auto-correct.
113
+ # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
114
+ # SupportedStyles: predicate, comparison
115
+ Style/NumericPredicate:
116
+ Exclude:
117
+ - 'spec/**/*'
118
+ - 'lib/puppetlabs_spec_helper/tasks/beaker.rb'
data/.travis.yml CHANGED
@@ -4,19 +4,27 @@ cache: bundler
4
4
  before_install:
5
5
  # https://github.com/bundler/bundler/issues/3558
6
6
  gem update bundler
7
- script: bundle exec rake spec
7
+ script: env COVERAGE=yes bundle exec rake
8
8
  matrix:
9
9
  fast_finish: true
10
10
  include:
11
- - rvm: 2.3.1
11
+ - rvm: '2.4'
12
+ env: PUPPET_GEM_VERSION='~> 5.0'
13
+ - rvm: '2.3'
14
+ env: PUPPET_GEM_VERSION='~> 5.0'
15
+ - rvm: '2.1'
16
+ env: PUPPET_GEM_VERSION='~> 5.0'
17
+ - rvm: '2.4'
12
18
  env: PUPPET_GEM_VERSION='~> 4.0'
13
- - rvm: 2.1
19
+ - rvm: '2.3'
14
20
  env: PUPPET_GEM_VERSION='~> 4.0'
15
- - rvm: 2.1
21
+ - rvm: '2.1'
22
+ env: PUPPET_GEM_VERSION='~> 4.0'
23
+ - rvm: '2.1'
16
24
  env: PUPPET_GEM_VERSION='~> 3.0'
17
- - rvm: 2.0
25
+ - rvm: '2.0'
18
26
  env: PUPPET_GEM_VERSION='~> 3.0'
19
- - rvm: 1.9.3
27
+ - rvm: '1.9'
20
28
  env: PUPPET_GEM_VERSION='~> 3.0'
21
29
  notifications:
22
30
  email: false
data/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
- # Change log
2
- All notable changes to this project will be documented in this file.
3
- This project adheres to [Semantic Versioning](http://semver.org/).
1
+ # Changelog
2
+
3
+ All significant changes to this repo will be summarized in this file.
4
+
5
+
6
+ ## [v2.9.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.9.0) (2018-06-18)
7
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...v2.9.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - \(maint\) adding ruby code coverage setup and rake task [\#245](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/245) ([tphoney](https://github.com/tphoney))
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Stable development structure for this gem [\#246](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/246) ([cardil](https://github.com/cardil))
16
+
17
+ # Previous Changes
4
18
 
5
19
  ## [2.8.0]
6
20
  ### Summary
@@ -84,7 +98,7 @@ Cleanups and fixes around fixture handling.
84
98
  Adds a `spec_list_json` rake task
85
99
 
86
100
  ### Added
87
- - `spec_list_json` rake task to output a module's spec tests as a JSON document
101
+ - `spec_list_json` rake task to output a module's spec tests as a JSON document
88
102
 
89
103
  ## [2.3.0]
90
104
  ### Added
@@ -498,3 +512,6 @@ compatible yet.
498
512
  [0.3.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.2.0...0.3.0
499
513
  [0.2.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.1.0...0.2.0
500
514
  [0.1.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.0.0...0.1.0
515
+
516
+
517
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Gemfile CHANGED
@@ -5,18 +5,20 @@ source 'https://rubygems.org'
5
5
  gemspec
6
6
 
7
7
  group :development do
8
- gem "puppet", ENV['PUPPET_GEM_VERSION'] || ENV['PUPPET_VERSION'] || '~> 4.0'
9
- if RUBY_VERSION =~ /^1\./
10
- gem 'rubocop', '0.41.2'
11
- else
12
- gem 'rubocop'
13
- gem 'rubocop-rspec', '~> 1.6' if RUBY_VERSION >= '2.3.0'
8
+ gem 'codecov'
9
+ gem 'github_changelog_generator'
10
+ gem 'puppet', ENV['PUPPET_GEM_VERSION'] || ENV['PUPPET_VERSION'] || '~> 4.0'
11
+ gem 'simplecov', '~> 0'
12
+ gem 'simplecov-console'
13
+ if RUBY_VERSION >= '2.1'
14
+ gem 'rubocop', '< 0.50'
15
+ gem 'rubocop-rspec', '~> 1'
14
16
  end
15
17
  end
16
18
 
17
19
  # json_pure 2.0.2 added a requirement on ruby >= 2. We pin to json_pure 2.0.1
18
20
  # if using ruby 1.x
19
- gem 'json_pure', '<=2.0.1', :require => false if RUBY_VERSION =~ /^1\./
21
+ gem 'json_pure', '<=2.0.1' if RUBY_VERSION =~ %r{^1\.}
20
22
  gem 'rack', '~> 1'
21
23
 
22
24
  # vim:filetype=ruby