Skip to content

Commit 0613deb

Browse files
authored
Merge pull request #148 from bigcommerce/PEN-541
PEN-541: Loosen faraday dependencies
2 parents def011a + 38fad91 commit 0613deb

File tree

9 files changed

+34
-31
lines changed

9 files changed

+34
-31
lines changed

.rubocop.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ AllCops:
44
- .bundle/**/*
55
- bin/**/*
66
- vendor/**/*
7+
- examples/**/*
78

89
Metrics/LineLength:
910
Max: 120
@@ -17,3 +18,9 @@ Metrics/MethodLength:
1718

1819
Style/Documentation:
1920
Enabled: false
21+
22+
Style/FormatStringToken:
23+
Enabled: false
24+
25+
Gemspec/RequiredRubyVersion:
26+
Enabled: false

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
language: ruby
2-
sudo: false
3-
cache: bundler
4-
52
rvm:
63
- ruby-head
74
- 2.0
85
- 2.1
96
- 2.2
10-
- 2.3.0
11-
7+
- 2.3
8+
- 2.4
9+
cache:
10+
bundler: true
11+
sudo: false
1212
matrix:
1313
allow_failures:
1414
- rvm: ruby-head
15+
fast_finish: true

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
source 'https://rubygems.org'
2+
23
gemspec
34

45
group :development do

LICENSE

Lines changed: 0 additions & 20 deletions
This file was deleted.

LICENSE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Copyright (c) 2017-present, BigCommerce Pty. Ltd. All rights reserved
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
4+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
5+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
6+
persons to whom the Software is furnished to do so, subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
9+
Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
12+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
13+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
14+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bigcommerce.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
99
s.required_ruby_version = '>= 2.0.0'
1010
s.license = 'MIT'
1111

12-
s.authors = ['Patrick Edelman']
12+
s.authors = ['BigCommerce Engineering']
1313
s.homepage = 'https://github.com/bigcommerce/bigcommerce-api-ruby'
1414
s.summary = 'Ruby client library for the BigCommerce API'
1515
s.description = s.summary
@@ -20,8 +20,8 @@ Gem::Specification.new do |s|
2020
s.add_development_dependency 'bundler'
2121
s.add_development_dependency 'rake'
2222

23-
s.add_dependency 'faraday', '~> 0.12.0'
24-
s.add_dependency 'faraday_middleware', '~> 0.10.0'
23+
s.add_dependency 'faraday', '~> 0.11'
24+
s.add_dependency 'faraday_middleware', '~> 0.11'
2525
s.add_dependency 'hashie', '~> 3.4'
2626
s.add_dependency 'jwt', '~> 1.5.4'
2727
end

examples/exception_handling.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def bc_handle_exception
3838
puts e.inspect
3939
rescue Bigcommerce::BandwidthLimitExceeded => e
4040
puts e.inspect
41-
rescue => e
41+
rescue StandardError => e
4242
puts "Some other Error #{e.inspect}"
4343
end
4444

lib/bigcommerce/exception.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def throw_http_exception!(code, env)
4545
unless env.body.empty?
4646
response_headers = begin
4747
JSON.parse(env.body, symbolize_names: true)
48-
rescue
48+
rescue StandardError
4949
{}
5050
end
5151
end

lib/bigcommerce/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Bigcommerce
2-
VERSION = '1.0.0'.freeze
2+
VERSION = '1.0.1'.freeze
33
end

0 commit comments

Comments
 (0)