Skip to content

Commit a72dae4

Browse files
committed
Merge pull request #11 from mattolson/cleanup
Remove extra dependencies
2 parents 53d8ff1 + 6a9c340 commit a72dae4

File tree

9 files changed

+18
-36
lines changed

9 files changed

+18
-36
lines changed

.gitignore

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Ignore lockfiles
2-
/Gemfile.lock
3-
4-
# Ignore test output
5-
/spec/coverage
6-
/spec/reports
1+
.bundle
2+
Gemfile.lock
3+
coverage
4+
reports

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: ruby
22
rvm:
33
- ruby-head
4-
- 2.3.0
5-
- 2.2.4
6-
- 2.1.8
4+
- 2.3.1
5+
- 2.2.5
6+
- 2.1.10
77
matrix:
88
allow_failures:
99
- rvm: ruby-head

Gemfile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
source 'https://rubygems.org'
22

3-
# Specify your gem's dependencies in omniauth-bigcommerce.gemspec
43
gemspec
5-
6-
group :development, :test do
7-
gem 'rake'
8-
gem 'guard'
9-
gem 'guard-rspec'
10-
gem 'guard-bundler'
11-
gem 'rb-fsevent'
12-
gem 'growl'
13-
end

lib/omniauth-bigcommerce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
require "omniauth/bigcommerce/version"
1+
require 'omniauth/bigcommerce/version'
22
require 'omniauth/strategies/bigcommerce'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module OmniAuth
22
module BigCommerce
3-
VERSION = "0.2.0"
3+
VERSION = '0.2.0'
44
end
55
end

lib/omniauth/strategies/bigcommerce.rb

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@
33
module OmniAuth
44
module Strategies
55
class BigCommerce < OmniAuth::Strategies::OAuth2
6-
option :name, "bigcommerce"
7-
6+
option :name, 'bigcommerce'
87
option :provider_ignores_state, true
9-
10-
option :scope, "users_basic_information"
11-
8+
option :scope, 'users_basic_information'
129
option :authorize_options, [:scope, :context]
13-
14-
option :client_options,
15-
{
10+
option :client_options, {
1611
site: ENV['BC_AUTH_SERVICE'] || 'https://login.bigcommerce.com',
1712
authorize_url: '/oauth2/authorize',
1813
token_url: '/oauth2/token'
@@ -29,7 +24,7 @@ class BigCommerce < OmniAuth::Strategies::OAuth2
2924

3025
credentials do
3126
{
32-
:token => access_token
27+
token: access_token
3328
}
3429
end
3530

@@ -45,7 +40,7 @@ def raw_info
4540
@raw_info ||= access_token.params
4641
end
4742

48-
#Copied from OmniAuth Google OAuth2 (https://github.com/zquestz/omniauth-google-oauth2)
43+
# Copied from OmniAuth Google OAuth2 (https://github.com/zquestz/omniauth-google-oauth2)
4944
def authorize_params
5045
super.tap do |params|
5146
options[:authorize_options].each do |k|

omniauth-bigcommerce.gemspec

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@ Gem::Specification.new do |gem|
2020
gem.add_dependency 'omniauth-oauth2', '>= 1.1.1'
2121
gem.add_development_dependency 'rake'
2222
gem.add_development_dependency 'rspec'
23-
gem.add_development_dependency 'rack-test'
2423
gem.add_development_dependency 'simplecov'
25-
gem.add_development_dependency 'webmock'
2624
end

spec/omniauth/strategies/bigcommerce_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
subject do
55
OmniAuth::Strategies::BigCommerce.new({})
66
end
7-
7+
88
before do
99
OmniAuth.config.test_mode = true
1010
end
11-
11+
1212
after do
1313
OmniAuth.config.test_mode = false
1414
end
@@ -46,7 +46,7 @@
4646
expect(subject.callback_path).to eq('/auth/bigcommerce/callback')
4747
end
4848
end
49-
49+
5050
context 'authorize options' do
5151
describe 'context' do
5252
it 'should set the context parameter dynamically in the request' do

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require 'simplecov'
44
SimpleCov.start
5+
56
require 'omniauth-bigcommerce'
67

78
RSpec.configure do |config|

0 commit comments

Comments
 (0)