Skip to content

Commit

Permalink
Merge pull request #9 from CapSens/ruby-2-7-warnings
Browse files Browse the repository at this point in the history
add circleci config
  • Loading branch information
AntoineBecquet authored Jan 5, 2021
2 parents 0be743b + 5cd7ae5 commit 01060fa
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
45 changes: 45 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: 2.1
orbs:
ruby: circleci/[email protected]

jobs:
build:
docker:
- image: circleci/ruby:2.7-node
executor: ruby/default
steps:
- checkout
- run:
name: Bundle install
command: |
gem install bundler:2.1.4
bundle install --path vendor/bundle
- run:
name: Test
command: bundle exec rspec
- run:
name: Coding style
command: |
gem install rubocop
mkdir -p rubocop
rubocop --format html -o rubocop/rubocop.html || true
- run:
name: Notation
command: |
gem install sexp_processor -v 4.13.0
gem install rubycritic -v 4.3.2
rubycritic app --no-browser || true
- run:
name: "Axe d'optimisation"
command: |
gem install fasterer
fasterer || true
- run:
name: "Audit Securité du Gemfile"
command: |
gem install bundler-audit
bundle audit --update
- store_artifacts:
path: rubocop/rubocop.html
- store_artifacts:
path: tmp/rubycritic
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Metrics/BlockLength:
Exclude:
- spec/**/*

Metrics/LineLength:
Layout/LineLength:
Max: 120

Metrics/MethodLength:
Expand Down
2 changes: 1 addition & 1 deletion lib/loan_creator/in_fine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class InFine < LoanCreator::Common
# Thus we're generating a Linear loan instead of rewriting already existing code.
def lender_timetable
options = @options.merge(deferred_in_periods: duration_in_periods - 1)
LoanCreator::Linear.new(options).lender_timetable
LoanCreator::Linear.new(**options).lender_timetable
end
end
end
2 changes: 1 addition & 1 deletion loan_creator.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_development_dependency 'bundler', '~> 2.1.4'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'simplecov', '~> 0.16'
spec.add_development_dependency 'byebug', '~> 11.0'
Expand Down

0 comments on commit 01060fa

Please sign in to comment.