omniauth-rightsignature 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e944280117b8708747944e6fe91ea04df5b5f4cf
|
4
|
+
data.tar.gz: 74281aa8b416f0ed72bd99284741e8978d9ee870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e25e54efaa9291baa1d118d72cafa5c497ed512c10ea658a150a8f0275c685f4df4877fb2bc80af4dcb7e817f00d6c7c45201b07faaf309a4e2d9131d3cc4ae1
|
7
|
+
data.tar.gz: 54d569bdcf413a266c0aa4a1d1fe1a160f16f5ffcf602622d313d61da860dbe562fba3ed22c1ee7842f90bf62944ae1df6043ee812007c4cce2ef1862a875174
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec-helper'
|
2
|
+
require 'omniauth-rightsignature'
|
3
|
+
|
4
|
+
describe Omniauth::Strategies::Rightsignature do
|
5
|
+
|
6
|
+
context "client_options" do
|
7
|
+
subject do
|
8
|
+
OmniAuth::Strategies::Rightsignature.new({})
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'should have the correct site' do
|
12
|
+
expect(subject.options.client_options.site).to eq("https://rightsignature.com")
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'should have the correct authorizate url' do
|
16
|
+
expect(subject.options.client_options.authorize_url).to eq("https://rightsignature.com/oauth/authorize")
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'should have the correct access token url' do
|
20
|
+
expect(subject.options.client_options.access_token_path).to eq("https://rightsignature.com/oauth/access_token")
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
$:.unshift File.expand_path('..', __FILE__)
|
2
|
+
$:.unshift File.expand_path('../../lib', __FILE__)
|
3
|
+
require 'simplecov'
|
4
|
+
SimpleCov.start
|
5
|
+
require 'rspec'
|
6
|
+
require 'rack/test'
|
7
|
+
require 'webmock/rspec'
|
8
|
+
require 'omniauth'
|
9
|
+
require 'omniauth-rightsignature'
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.include WebMock::API
|
12
|
+
config.include Rack::Test::Methods
|
13
|
+
config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
|
14
|
+
end
|
@@ -20,6 +20,6 @@ gem.add_development_dependency 'yard', '~> 0.7'
|
|
20
20
|
gem.add_development_dependency 'webmock', '~> 1.7'
|
21
21
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
22
22
|
gem.files = `git ls-files`.split("\n")
|
23
|
-
|
23
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
24
24
|
gem.require_paths = ['lib']
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-rightsignature
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Deepikaa Subramaniam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth
|
@@ -128,6 +128,8 @@ files:
|
|
128
128
|
- lib/omniauth-rightsignature.rb
|
129
129
|
- lib/omniauth/rightsignature/version.rb
|
130
130
|
- lib/omniauth/strategies/rightsignature.rb
|
131
|
+
- lib/spec/omniauth/strategies/rightsignature_spec.rb
|
132
|
+
- lib/spec/spec_helper.rb
|
131
133
|
- omniauth-rightsignature.gemspec
|
132
134
|
homepage: https://github.com/DeepikaaSubramaniam21/omniauth-rightsignature/
|
133
135
|
licenses: []
|