Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Merge 9d296f4 into 2c7eccd
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanIrimie authored Aug 9, 2019
2 parents 2c7eccd + 9d296f4 commit f18152f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .jrubyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cli.debug=true
debug.fullTrace=true
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ rvm:
- 2.5
- 2.4
- 2.3
- jruby-head
cache:
bundler: true
branches:
only:
- master
before_install:
- gem update --system
- gem install bundler
- bundle install

script:
# - bundle exec rubocop
# - bundle exec rubycritic --no-browser -s 80 -f console
- bundle exec rake spec
16 changes: 4 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
PATH
remote: .
specs:
cli.rb-ng (0.0.1)
facter (0.0.1)
thor (~> 0.20.3)

GEM
remote: https://rubygems.org/
specs:
byebug (11.0.1)
coderay (1.1.2)
coveralls (0.8.23)
json (>= 1.8, < 3)
simplecov (~> 0.16.1)
Expand All @@ -18,13 +16,7 @@ GEM
diff-lcs (1.3)
docile (1.3.2)
json (2.2.0)
method_source (0.9.2)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry-byebug (3.7.0)
byebug (~> 11.0)
pry (~> 0.10)
json (2.2.0-java)
rake (10.5.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
Expand All @@ -50,13 +42,13 @@ GEM
tins (1.21.1)

PLATFORMS
java
ruby

DEPENDENCIES
bundler (~> 2.0)
cli.rb-ng!
coveralls (~> 0.8.23)
pry-byebug (~> 3.0)
facter!
rake (~> 10.0)
rspec (~> 3.0)

Expand Down
1 change: 0 additions & 1 deletion bin/facter
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# frozen_string_literal: true

require "bundler/setup"
require 'pry-byebug'
require_relative '../config/config'
require_relative '../lib/cli'
require_relative '../lib/base'
Expand Down
5 changes: 2 additions & 3 deletions facter-ng.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require_relative 'config/config'

Gem::Specification.new do |spec|
spec.name = "cli.rb-ng"
spec.name = "facter"
spec.version = FACTER_VERSION
spec.authors = ["Bogdan Irimie"]
spec.email = ["irimie.bogdan@puppet.com"]
Expand Down Expand Up @@ -33,10 +33,9 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'coveralls', '~> 0.8.23'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency "pry-byebug", "~> 3.0"
spec.add_development_dependency 'coveralls', '~> 0.8.23'


spec.add_runtime_dependency 'thor', '~> 0.20.3'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

describe '.load facts for OS' do
RSpec.describe '.load facts for OS' do
it 'load one fact' do
allow_any_instance_of(Module).to receive(:constants).and_return([:NetworkInterface])
fact_hash = Facter::FactLoader.load(:linux)
Expand Down
11 changes: 10 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@
require 'bundler/setup'
require_relative '../lib/fact_loader'
require_relative '../lib/facts/linux/network_interface'
require_relative 'facter/fact_loader_test'

# Configure SimpleCov
SimpleCov.start do
track_files 'lib/**/*.rb'
add_filter 'spec'
end

default_coverage = 8
SimpleCov.minimum_coverage ENV['COVERAGE'] || default_coverage

# Configure RSpec
RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'
Expand Down

0 comments on commit f18152f

Please sign in to comment.