omniauth-infusionsoft 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e83ca1c7d48ee8b8860b8e93a90f99f9a03e8f69
4
- data.tar.gz: 727cc28063eb00f628cd367402aa14623ca745dc
3
+ metadata.gz: 1aef53f4e8fe1edbc83c1826683347f4513b41d9
4
+ data.tar.gz: 80ff063f2b09f4c9d918cd33af3ac8a9f86f5996
5
5
  SHA512:
6
- metadata.gz: badbc0431570daf239222500ae41a7761f3670e1083031090a7dde4f73312986164cb3b800e144d430191687e7ae92fd189c23b326aa85da302fcb3be00e49fb
7
- data.tar.gz: 61032082677dded6e260276af28e48c6bda3d9343bed983e1f25e50b219fd8c49476cb3c9d43a370b839700cca3d60bd3477283e07821fda343fa4f9fe33c643
6
+ metadata.gz: 80f039dbf2634a16dd1de2bd8393f501212175eda9b84efada1744dfc7c9d681f6db044060d6ad8de37e4dea3cf4d735a2b53c21be9049358218427aaadeea45
7
+ data.tar.gz: 66e113cabf51fa976c78881a01741d0ec0762ba4c694b5bc4c2e97e1ba06a597cca0d49befd9b6267c78214c8ba192ff3fa561f04c7ced59b2e81cbd84c85361
data/.gitignore CHANGED
@@ -1,3 +1,2 @@
1
1
  *.gem
2
- Gemfile.lock
3
2
  coverage/
data/.rspec CHANGED
File without changes
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
data/Gemfile CHANGED
@@ -1,19 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in infusionsoft.gemspec
3
+ # Specify your gem's dependencies in omniauth-infusionsoft.gemspec
4
4
  gemspec
5
-
6
- gem 'rake'
7
-
8
- group :development do
9
- gem 'guard', '~> 2.6'
10
- gem 'guard-rspec', '~> 4.3'
11
- gem 'guard-bundler', '~> 2.0'
12
- end
13
-
14
- group :test do
15
- gem 'rack-test', '~> 0.6'
16
- gem 'rspec', '~> 3.0.0'
17
- gem 'simplecov', '~> 0.9'
18
- gem 'webmock', '~> 1.18'
19
- end
data/Gemfile.lock ADDED
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ omniauth-infusionsoft (1.0.3)
5
+ omniauth (~> 1.0)
6
+ omniauth-oauth2 (~> 1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ diff-lcs (1.2.5)
12
+ faraday (0.9.2)
13
+ multipart-post (>= 1.2, < 3)
14
+ hashie (3.4.3)
15
+ jwt (1.5.2)
16
+ multi_json (1.11.2)
17
+ multi_xml (0.5.5)
18
+ multipart-post (2.0.0)
19
+ oauth2 (1.0.0)
20
+ faraday (>= 0.8, < 0.10)
21
+ jwt (~> 1.0)
22
+ multi_json (~> 1.3)
23
+ multi_xml (~> 0.5)
24
+ rack (~> 1.2)
25
+ omniauth (1.2.2)
26
+ hashie (>= 1.2, < 4)
27
+ rack (~> 1.0)
28
+ omniauth-oauth2 (1.4.0)
29
+ oauth2 (~> 1.0)
30
+ omniauth (~> 1.2)
31
+ rack (1.6.4)
32
+ rake (10.3.2)
33
+ rspec (3.1.0)
34
+ rspec-core (~> 3.1.0)
35
+ rspec-expectations (~> 3.1.0)
36
+ rspec-mocks (~> 3.1.0)
37
+ rspec-core (3.1.5)
38
+ rspec-support (~> 3.1.0)
39
+ rspec-expectations (3.1.2)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.1.0)
42
+ rspec-mocks (3.1.2)
43
+ rspec-support (~> 3.1.0)
44
+ rspec-support (3.1.1)
45
+
46
+ PLATFORMS
47
+ ruby
48
+
49
+ DEPENDENCIES
50
+ bundler (~> 1.5)
51
+ omniauth-infusionsoft!
52
+ rake (~> 10.3)
53
+ rspec (~> 3.0)
data/LICENSE.txt CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/Readme.md CHANGED
@@ -1,3 +1,7 @@
1
+ [![Gem Version](https://badge.fury.io/rb/omniauth-infusionsoft.svg)](http://badge.fury.io/rb/omniauth-infusionsoft)
2
+ [![Build Status](https://travis-ci.org/L1h3r/omniauth-infusionsoft.svg?branch=master)](https://travis-ci.org/L1h3r/omniauth-infusionsoft)
3
+ [![Code Climate](https://codeclimate.com/github/L1h3r/omniauth-infusionsoft/badges/gpa.svg)](https://codeclimate.com/github/L1h3r/omniauth-infusionsoft)
4
+
1
5
  OmniAuth::Infusionsoft
2
6
  ---
3
7
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Infusionsoft
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
@@ -11,6 +11,22 @@ module OmniAuth
11
11
  site: 'https://signin.infusionsoft.com'
12
12
  }
13
13
 
14
+ def full_host
15
+ case OmniAuth.config.full_host
16
+ when String
17
+ OmniAuth.config.full_host
18
+ when Proc
19
+ OmniAuth.config.full_host.call(env)
20
+ else
21
+ uri = URI.parse(request.url.gsub(/\?.*$/,''))
22
+ uri.path = ''
23
+ uri.query = nil
24
+ #infusionsoft requires https for callback urls
25
+ uri.scheme = 'https'
26
+ uri.to_s
27
+ end
28
+ end
29
+
14
30
  end
15
31
  end
16
32
  end
File without changes
@@ -1,22 +1,26 @@
1
1
  # encoding: utf-8
2
- $:.push File.expand_path('../lib', __FILE__)
3
- require 'omniauth/infusionsoft/version'
2
+ require File.expand_path('../lib/omniauth/infusionsoft/version', __FILE__)
4
3
 
5
4
  Gem::Specification.new do |gem|
6
5
  gem.name = 'omniauth-infusionsoft'
7
6
  gem.version = OmniAuth::Infusionsoft::VERSION
8
7
  gem.authors = ['Devin Turner']
9
8
  gem.email = ['devin.turner09@gmail.com']
10
- gem.description = 'Omniauth strategy for infusionsoft using OAuth2'
11
- gem.summary = 'Infusionsoft OAuth2 Gem'
9
+ gem.summary = 'An Infusionsoft OAuth2 strategy for OmniAuth'
12
10
  gem.homepage = 'https://github.com/l1h3r/omniauth-infusionsoft'
13
11
  gem.license = 'GPL'
14
12
 
15
13
  gem.files = `git ls-files`.split($/)
16
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
- gem.require_paths = %w(lib)
14
+ gem.executables = gem.files.grep(%r( ^bin/ )).map { |f| File.basename(f) }
15
+ gem.test_files = gem.files.grep(%r( ^(test|spec|features)/ ))
16
+ gem.require_paths = ['lib']
17
+
18
+ gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
19
19
 
20
20
  gem.add_runtime_dependency 'omniauth', '~> 1.0'
21
21
  gem.add_runtime_dependency 'omniauth-oauth2', '~> 1.1'
22
+
23
+ gem.add_development_dependency 'bundler', '~> 1.5'
24
+ gem.add_development_dependency 'rake', '~> 10.3'
25
+ gem.add_development_dependency 'rspec', '~> 3.0'
22
26
  end
@@ -6,11 +6,21 @@ describe OmniAuth::Strategies::Infusionsoft do
6
6
  OmniAuth::Strategies::Infusionsoft.new({})
7
7
  end
8
8
 
9
- context 'config options' do
9
+ before do
10
+ OmniAuth.config.test_mode = true
11
+ end
12
+
13
+ after do
14
+ OmniAuth.config.test_mode = false
15
+ end
16
+
17
+ context 'default options' do
10
18
  it 'has the correct name' do
11
19
  expect(subject.options.name).to eq('infusionsoft')
12
20
  end
21
+ end
13
22
 
23
+ context 'client options' do
14
24
  it 'has the correct site' do
15
25
  expect(subject.options.client_options.site).to eq('https://signin.infusionsoft.com')
16
26
  end
data/spec/spec_helper.rb CHANGED
@@ -1,15 +1,11 @@
1
- $:.unshift File.expand_path('..', __FILE__)
2
- $:.unshift File.expand_path('../../lib', __FILE__)
3
- require 'simplecov'
4
- SimpleCov.start
5
1
  require 'rspec'
6
- require 'rack/test'
7
- require 'webmock/rspec'
8
2
  require 'omniauth'
9
3
  require 'omniauth-infusionsoft'
10
4
 
11
5
  RSpec.configure do |config|
12
- config.include WebMock::API
13
- config.include Rack::Test::Methods
14
- config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
6
+
7
+ config.expect_with :rspec do |c|
8
+ c.syntax = :expect
9
+ end
10
+
15
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-infusionsoft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devin Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -38,7 +38,49 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.1'
41
- description: Omniauth strategy for infusionsoft using OAuth2
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ description:
42
84
  email:
43
85
  - devin.turner09@gmail.com
44
86
  executables: []
@@ -47,8 +89,9 @@ extra_rdoc_files: []
47
89
  files:
48
90
  - ".gitignore"
49
91
  - ".rspec"
92
+ - ".travis.yml"
50
93
  - Gemfile
51
- - Guardfile
94
+ - Gemfile.lock
52
95
  - LICENSE.txt
53
96
  - Rakefile
54
97
  - Readme.md
@@ -75,13 +118,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
118
  requirements:
76
119
  - - ">="
77
120
  - !ruby/object:Gem::Version
78
- version: '0'
121
+ version: 1.3.6
79
122
  requirements: []
80
123
  rubyforge_project:
81
- rubygems_version: 2.4.1
124
+ rubygems_version: 2.2.2
82
125
  signing_key:
83
126
  specification_version: 4
84
- summary: Infusionsoft OAuth2 Gem
85
- test_files:
86
- - spec/omniauth/strategies/infusionsoft_spec.rb
87
- - spec/spec_helper.rb
127
+ summary: An Infusionsoft OAuth2 strategy for OmniAuth
128
+ test_files: []
data/Guardfile DELETED
@@ -1,10 +0,0 @@
1
- guard 'rspec', :version => 2 do
2
- watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
4
- watch('spec/spec_helper.rb') { 'spec' }
5
- end
6
-
7
- guard 'bundler' do
8
- watch('Gemfile')
9
- watch('omniauth-infusionsoft.gemspec')
10
- end