Skip to content

Commit

Permalink
Require FacterDB 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jun 9, 2024
1 parent beadd79 commit 3803db4
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 142 deletions.
10 changes: 5 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-07-06 14:12:32 UTC using RuboCop version 1.50.2.
# on 2024-06-09 13:06:43 UTC using RuboCop version 1.63.5.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -12,7 +12,7 @@ Performance/MapCompact:
Exclude:
- 'lib/rspec-puppet-facts.rb'

# Offense count: 32
# Offense count: 29
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Expand All @@ -29,7 +29,7 @@ RSpec/ExpectInHook:
Exclude:
- 'spec/rspec_puppet_facts_spec.rb'

# Offense count: 20
# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
Expand All @@ -52,14 +52,14 @@ RSpec/MessageSpies:
RSpec/MultipleExpectations:
Max: 2

# Offense count: 46
# Offense count: 49
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/rspec_puppet_facts_spec.rb'

# Offense count: 14
# Offense count: 13
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 6
Expand Down
2 changes: 1 addition & 1 deletion rspec-puppet-facts.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Gem::Specification.new do |s|

s.add_runtime_dependency 'deep_merge', '~> 1.2'
s.add_runtime_dependency 'facter', '< 5'
s.add_runtime_dependency 'facterdb', '>= 0.5.0', '< 2'
s.add_runtime_dependency 'facterdb', '~> 2.1'
s.add_runtime_dependency 'puppet', '>= 7', '< 9'
end
10 changes: 5 additions & 5 deletions spec/fixtures/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"7",
"8"
"11",
"12"
]
},
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"5",
"6",
"7"
"7",
"8",
"9"
]
}
],
Expand Down
Loading

0 comments on commit 3803db4

Please sign in to comment.