diff --git a/.github/workflows/rspec.yaml b/.github/workflows/rspec.yaml new file mode 100644 index 000000000..6ad128da2 --- /dev/null +++ b/.github/workflows/rspec.yaml @@ -0,0 +1,33 @@ +name: CI + +on: [pull_request] + +jobs: + rspec: + runs-on: ubuntu-latest + environment: test + container: + image: ruby:3.0.6 + + steps: + - uses: actions/checkout@v1 + + - name: Gem cache + id: cache-bundle + uses: actions/cache@v1 + with: + path: vendor/bundle + key: bundle-${{ hashFiles('**/Gemfile.lock') }} + + - name: Bundle install + env: + RAILS_ENV: test + run: | + gem install bundler + bundle install + + - name: Run tests + env: + RAILS_ENV: test + run: | + bundle exec rspec diff --git a/.gitignore b/.gitignore index 9db39f5f5..5f8dd9622 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ test/version_tmp tmp vendor/ .idea/ +.ruby-version diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index 276cbf9e2..000000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -2.3.0 diff --git a/Gemfile b/Gemfile index ac23ef3eb..a8f477153 100644 --- a/Gemfile +++ b/Gemfile @@ -7,9 +7,5 @@ gem 'pry-nav' gem 'pry-rescue' # optional dependency for more accurate timezone conversion -gem 'tzinfo', '1.2.5' -# gem 'tzinfo', '2.0.0' - -# required for CircleCI to build properly with ruby 1.9.3 -gem 'json', '~> 1.8.3' +gem 'tzinfo', '2.0.6' gem 'rack', '~> 1.6.4' diff --git a/lib/netsuite/version.rb b/lib/netsuite/version.rb index a44aaba9d..6d715e199 100644 --- a/lib/netsuite/version.rb +++ b/lib/netsuite/version.rb @@ -1,3 +1,3 @@ module Netsuite - VERSION = '0.7.9' + VERSION = '0.7.10' end diff --git a/netsuite.gemspec b/netsuite.gemspec index 48bed9576..7ef459083 100644 --- a/netsuite.gemspec +++ b/netsuite.gemspec @@ -17,5 +17,5 @@ Gem::Specification.new do |gem| gem.add_dependency 'savon', '>= 2.3.0' - gem.add_development_dependency 'rspec', '~> 3.1.0' + gem.add_development_dependency 'rspec', '~> 3.12.0' end diff --git a/spec/netsuite/configuration_spec.rb b/spec/netsuite/configuration_spec.rb index bf1773e07..9c0aebd91 100644 --- a/spec/netsuite/configuration_spec.rb +++ b/spec/netsuite/configuration_spec.rb @@ -56,7 +56,7 @@ context 'when the wsdl has not been set' do it 'returns a path to the WSDL to use for the API' do - expect(config.wsdl).to eq("https://webservices.netsuite.com/wsdl/v2015_1_0/netsuite.wsdl") + expect(config.wsdl).to eq("https://webservices.netsuite.com/wsdl/v2023_1_0/netsuite.wsdl") end end @@ -290,7 +290,7 @@ describe '#api_version' do context 'when no api_version is defined' do it 'defaults to 2015_1' do - expect(config.api_version).to eq('2015_1') + expect(config.api_version).to eq('2023_1') end end end