Skip to content

Commit

Permalink
Merge pull request #19 from ResultadosDigitais/update-ruby-agendor
Browse files Browse the repository at this point in the history
[MKTKERNEL-438] Update internal gem agendor_ruby - Update Ruby to 3.2
  • Loading branch information
giuliaangeli authored Feb 2, 2023
2 parents e84526a + df602fa commit 218c9ac
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 25 deletions.
41 changes: 41 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: 2.1

jobs:
build:
parameters:
ruby-version:
type: string
docker:
- image: << parameters.ruby-version >>
steps:
- checkout
- run: gem install bundler
- run: bundle install -j4
- run: bundle exec rspec --profile 10

coverage:
docker:
- image: cimg/ruby:3.2.0
environment:
COVERAGE: true
steps:
- checkout

- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run: gem install bundler
- run: bundle install -j4
- run: ./cc-test-reporter before-build
- run: bundle exec rspec --profile 10
- run: ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
workflows:
all-tests:
jobs:
- build:
matrix:
parameters:
ruby-version: ["cimg/ruby:2.6.6", "cimg/ruby:2.7.4", "cimg/ruby:3.2.0"]
- coverage
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

25 changes: 21 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ GEM
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
ast (2.4.2)
byebug (11.1.3)
codeclimate-test-reporter (1.0.7)
simplecov
coderay (1.1.3)
crack (0.4.5)
rexml
diff-lcs (1.4.4)
Expand All @@ -22,13 +24,25 @@ GEM
multipart-post (>= 1.2, < 3)
ruby2_keywords
faraday-net_http (1.0.1)
ffi (1.15.5-java)
hashdiff (1.0.1)
json (1.8.6)
json (1.8.6-java)
json (2.6.3)
json (2.6.3-java)
method_source (1.0.0)
multipart-post (2.1.1)
parallel (1.20.1)
parser (3.0.0.0)
ast (~> 2.4.1)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry (0.14.2-java)
coderay (~> 1.1)
method_source (~> 1.0)
spoon (~> 0.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (>= 0.13, < 0.15)
public_suffix (4.0.6)
rainbow (3.0.0)
regexp_parser (2.1.1)
Expand Down Expand Up @@ -64,8 +78,10 @@ GEM
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
spoon (0.0.6)
ffi
unicode-display_width (2.0.0)
vcr (6.0.0)
vcr (6.1.0)
webmock (3.11.2)
addressable (>= 2.3.6)
crack (>= 0.3.2)
Expand All @@ -80,11 +96,12 @@ DEPENDENCIES
agendor-ruby!
bundler (~> 2.0)
codeclimate-test-reporter
pry-byebug
rspec
rubocop
simplecov
vcr
webmock

BUNDLED WITH
2.2.9
2.4.6
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# agendor-ruby
[![Build
Status](https://travis-ci.org/ResultadosDigitais/agendor-ruby.svg)](https://travis-ci.org/ResultadosDigitais/agendor-ruby)
[![Code
Climate](https://codeclimate.com/github/ResultadosDigitais/agendor-ruby/badges/gpa.svg)](https://codeclimate.com/github/ResultadosDigitais/agendor-ruby)

Expand Down
3 changes: 2 additions & 1 deletion agendor-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require 'agendor/version'
Gem::Specification.new do |s|
s.name = 'agendor-ruby'
s.version = Agendor::VERSION
s.required_ruby_version = '>= 2.5.0'
s.required_ruby_version = '>= 2.5'
s.required_rubygems_version = '>= 2.0.0'
s.require_paths = ['lib']
s.authors = ['Bruno Ghisi', 'Nathan Thiesen', 'Vicente Silveira Inácio']
Expand Down Expand Up @@ -41,6 +41,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'faraday', '>= 0.17.0'
s.add_runtime_dependency 'json', '>= 1.8.0'
s.add_development_dependency 'bundler', '~> 2.0'
s.add_development_dependency 'pry-byebug'
s.add_development_dependency 'rspec'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'vcr'
Expand Down
3 changes: 1 addition & 2 deletions spec/agendor/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
let(:client) { Agendor::Deal.new('8a4bc1df-d464-473d-bf76-3d3d9492de5a') }

it 'creates a deal' do
expect(client.create({ title: 'Whatever xunda Deal', org_id: 1_374_944,
value: 50_000 })).to eq(1_613_012)
expect(client.create({title: 'Whatever xunda Deal', org_id: 1_374_944, value: 50_000})).to eq(1_613_012)
end
end

Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'pry-byebug'
require 'rspec'
require 'vcr'
require 'simplecov'
Expand Down

0 comments on commit 218c9ac

Please sign in to comment.