Skip to content

Commit

Permalink
Adding on_unsupported_os method impl+tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Suszyński Krzysztof committed Jul 6, 2017
1 parent 525a58b commit d58e554
Show file tree
Hide file tree
Showing 10 changed files with 444 additions and 9 deletions.
1 change: 0 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Style/FileName:
- 'Rakefile'
- '*.gemspec'
- lib/rspec-puppet-facts-unsupported.rb
- spec/rspec-puppet-facts-unsupported_spec.rb
Metrics/BlockLength:
Exclude:
- 'spec/**/*_spec.rb'
8 changes: 5 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ def req(req_s)
end

group :test do
gem 'rspec', '~> 3', require: false
gem 'rubocop', '~> 0.49', require: false if req('>= 2.0') =~ RVERSION
gem 'simplecov', '~> 0.14.1', require: false
gem 'rspec', '~> 3', require: false
gem 'rspec-collection_matchers', '~> 1.1.3', require: false
gem 'rubocop', '~> 0.49', require: false if req('>= 2.0') =~ RVERSION
gem 'simplecov', '~> 0.14.1', require: false
end

group :development do
gem 'bundler', '~> 1.15.1', require: false
gem 'pry-byebug', '~> 3.4', '>= 3.4.2', require: false if req('>= 2.0') =~ RVERSION
gem 'rake', '~> 10', require: false
end
Expand Down
40 changes: 39 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PATH
remote: .
specs:
rspec-puppet-facts-unsupported (0.1.0)
rspec-puppet-facts (~> 1.8.0)

GEM
remote: https://rubygems.org/
Expand All @@ -11,7 +12,27 @@ GEM
coderay (1.1.1)
diff-lcs (1.3)
docile (1.1.5)
facter (2.4.6)
facterdb (0.3.11)
facter
jgrep
fast_gettext (1.1.0)
gettext (3.2.3)
locale (>= 2.0.5)
text (>= 1.3.0)
gettext-setup (0.25)
fast_gettext (~> 1.1.0)
gettext (>= 3.0.2)
locale
hiera (3.4.0)
jgrep (1.4.1)
json
json (1.8.6)
locale (2.1.2)
mcollective-client (2.11.0)
json
stomp
systemu
method_source (0.8.2)
parallel (1.11.2)
parser (2.4.0.0)
Expand All @@ -24,13 +45,20 @@ GEM
pry-byebug (3.4.2)
byebug (~> 9.0)
pry (~> 0.10)
puppet (5.0.0)
facter (> 2.0, < 4)
gettext-setup (>= 0.10, < 1)
hiera (>= 3.2.1, < 4)
locale (~> 2.1)
rainbow (2.2.2)
rake
rake (10.5.0)
rspec (3.6.0)
rspec-core (~> 3.6.0)
rspec-expectations (~> 3.6.0)
rspec-mocks (~> 3.6.0)
rspec-collection_matchers (1.1.3)
rspec-expectations (>= 2.99.0.beta1)
rspec-core (3.6.0)
rspec-support (~> 3.6.0)
rspec-expectations (3.6.0)
Expand All @@ -39,6 +67,12 @@ GEM
rspec-mocks (3.6.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.6.0)
rspec-puppet-facts (1.8.0)
facter
facterdb (>= 0.3.0)
json
mcollective-client
puppet
rspec-support (3.6.0)
rubocop (0.49.1)
parallel (~> 1.10)
Expand All @@ -54,16 +88,20 @@ GEM
simplecov-html (~> 0.10.0)
simplecov-html (0.10.1)
slop (3.6.0)
stomp (1.4.4)
systemu (2.6.5)
text (1.3.1)
unicode-display_width (1.3.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.15)
bundler (~> 1.15.1)
pry-byebug (~> 3.4, >= 3.4.2)
rake (~> 10)
rspec (~> 3)
rspec-collection_matchers (~> 1.1.3)
rspec-puppet-facts-unsupported!
rubocop (~> 0.49)
simplecov (~> 0.14.1)
Expand Down
7 changes: 4 additions & 3 deletions lib/rspec-puppet-facts-unsupported.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'rspec-puppet-facts-unsupported/version'

# A main module of rspec-puppet-facts-unsupported
module RspecPuppetFactsUnsupported
# your code goes here
# a placeholder module
end

require 'rspec-puppet-facts-unsupported/version'
require 'rspec-puppet-facts-unsupported/on_unsupported_os'
Loading

0 comments on commit d58e554

Please sign in to comment.