omniauth-surveymonkey2 0.0.14 → 0.0.15

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: db84d36994c2d2b8b5c5db3f94137249ae1f39ad
4
- data.tar.gz: 17a51e3297e88eb4dda5607c30185d3a9bd3c0a6
3
+ metadata.gz: 84e67b38a2099ae2e10aad01c7c8d8929d9b851c
4
+ data.tar.gz: fc8bf0d86da66d8056558922327a9c85031a4aeb
5
5
  SHA512:
6
- metadata.gz: d6458da00505f2a10e40e6a91ae2c7a20bd7b7c1a3d8f42da5063c69aabba4e7f26566b7bc57e83912f20f2734cad5a21ddebf8a4181f5337cbbf4c6908eee2e
7
- data.tar.gz: 6693e186964e7f497197358acd4e13006e7988272a957c74a51775a1d90a939ffef29ce93b264792b57c153e8c39ce6451eb5d72a11a6b49e73448edd1bd4d72
6
+ metadata.gz: 7446e22268bdacbad7080055346ec59cd7c0706e83b8d996057e288bc67a08402407227c3be59e2bc5faa764a9d8aa058f246af4081c94d9c328e9385d22ccfe
7
+ data.tar.gz: 9571485e6e4aac8a2906528cdfd8f2bba43ff4d2a1524faf1bc9f85e145362cc55ca7823f38d7251c0883459df11bb65e85e0e3cb9248b00c47b066fe99f674a
data/Gemfile CHANGED
@@ -1,4 +1 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in omniauth-surveymonkey2.gemspec
4
- gemspec
1
+ gem "omniauth-oauth2"
data/Gemfile.lock ADDED
@@ -0,0 +1,23 @@
1
+ GEM
2
+ specs:
3
+ faraday (0.8.0)
4
+ multipart-post (~> 1.1)
5
+ hashie (1.2.0)
6
+ multi_json (1.3.6)
7
+ multipart-post (1.2.0)
8
+ oauth2 (0.5.2)
9
+ faraday (~> 0.7)
10
+ multi_json (~> 1.0)
11
+ omniauth (1.0.0)
12
+ hashie (~> 1.2)
13
+ rack
14
+ omniauth-oauth2 (1.0.0)
15
+ oauth2 (~> 0.5.0)
16
+ omniauth (~> 1.0)
17
+ rack (1.1.6)
18
+
19
+ PLATFORMS
20
+ ruby
21
+
22
+ DEPENDENCIES
23
+ omniauth-oauth2
File without changes
@@ -54,4 +54,4 @@ module OmniAuth
54
54
  end
55
55
  end
56
56
  end
57
- end
57
+ end
@@ -1,5 +1,5 @@
1
- module Omniauth
1
+ module OmniAuth
2
2
  module Surveymonkey2
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
4
  end
5
- end
5
+ end
@@ -0,0 +1 @@
1
+ require 'omniauth/strategies/surveymonkey2'
@@ -1 +1 @@
1
- require "omniauth/strategies/surveymonkey2"
1
+ require "omniauth/surveymonkey2"
Binary file
Binary file
Binary file
@@ -1,26 +1,23 @@
1
- # coding: utf-8
2
1
  require File.expand_path('../lib/omniauth/surveymonkey2/version', __FILE__)
3
2
 
4
- Gem::Specification.new do |spec|
5
- spec.name = "omniauth-surveymonkey2"
6
- spec.version = Omniauth::Surveymonkey2::VERSION
7
- spec.authors = ["Chris Beck"]
8
- spec.email = ["chris.beck@me.com"]
9
- spec.description = %q{An alternative Survey Monkey strategy for OmniAuth that retrieves a long-term access token.}
10
- spec.summary = %q{STILL IN DEV. CHECK BACK SOON. An alternative Survey Monkey strategy for OmniAuth that retrieves a long-term access token.}
11
- spec.homepage = "https://github.com/cbeck/omniauth-surveymonkey2"
12
- spec.license = "MIT"
3
+ Gem::Specification.new do |gem|
4
+ gem.add_dependency 'omniauth', '~> 1.0'
13
5
 
14
- spec.files = `git ls-files`.split("\n")
15
- spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
- spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
- spec.require_paths = ["lib"]
6
+ gem.authors = ["Chris Beck"]
7
+ gem.email = ["chris.beck@me.com"]
8
+ gem.description = %q{Survemonkey OAuth2 strategy for OmniAuth 1.0}
9
+ gem.summary = %q{Survemonkey OAuth2 strategy for OmniAuth 1.0.}
18
10
 
19
- spec.add_runtime_dependency 'omniauth-oauth2'
20
11
 
21
- spec.add_development_dependency "bundler", "~> 1.3"
22
- spec.add_development_dependency "rake"
23
- spec.add_development_dependency 'rspec', '~> 2.8'
24
- spec.add_development_dependency 'rack-test'
25
- spec.add_development_dependency 'simplecov'
26
- end
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files spec/*`.split("\n")
14
+ gem.name = "omniauth-surveymonkey2"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = OmniAuth::Surveymonkey2::VERSION
17
+ gem.homepage = "https://github.com/cbeck/omniauth-surveymonkey2"
18
+
19
+ gem.add_runtime_dependency 'omniauth-oauth2'
20
+
21
+ gem.add_development_dependency 'rspec', '~> 1.3.1'
22
+ gem.add_development_dependency 'rake'
23
+ end
@@ -1,14 +1,13 @@
1
- require 'spec_helper'
2
1
  require 'omniauth-surveymonkey2'
3
2
 
4
3
  describe OmniAuth::Strategies::Surveymonkey2 do
4
+
5
5
  subject do
6
- OmniAuth::Strategies::Surveymonkey2.new(nil, @options || {})
6
+ OmniAuth::Strategies::Surveymonkey2.new(nil, {})
7
7
  end
8
8
 
9
- it_should_behave_like 'an oauth2 strategy'
9
+ describe '#client' do
10
10
 
11
- describe '#client' do
12
11
  it 'has correct surveymonkey api site' do
13
12
  subject.options.client_options.site.should == ('https://api.surveymonkey.com')
14
13
  end
@@ -22,9 +21,9 @@ describe OmniAuth::Strategies::Surveymonkey2 do
22
21
  end
23
22
  end
24
23
 
25
- describe '#callback_path' do
24
+ describe '#callback_path' do
26
25
  it 'should have the correct callback path' do
27
- subject.callback_path.should == ('/auth/surveymonkey/callback')
26
+ subject.callback_path.should == ('/auth/surveymonkey2/callback')
28
27
  end
29
28
  end
30
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-surveymonkey2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beck
@@ -11,41 +11,27 @@ cert_chain: []
11
11
  date: 2013-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: omniauth-oauth2
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
14
+ name: omniauth
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ~>
32
18
  - !ruby/object:Gem::Version
33
- version: '1.3'
34
- type: :development
19
+ version: '1.0'
20
+ type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - ~>
39
25
  - !ruby/object:Gem::Version
40
- version: '1.3'
26
+ version: '1.0'
41
27
  - !ruby/object:Gem::Dependency
42
- name: rake
28
+ name: omniauth-oauth2
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - '>='
46
32
  - !ruby/object:Gem::Version
47
33
  version: '0'
48
- type: :development
34
+ type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
@@ -58,30 +44,16 @@ dependencies:
58
44
  requirements:
59
45
  - - ~>
60
46
  - !ruby/object:Gem::Version
61
- version: '2.8'
47
+ version: 1.3.1
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - ~>
67
53
  - !ruby/object:Gem::Version
68
- version: '2.8'
54
+ version: 1.3.1
69
55
  - !ruby/object:Gem::Dependency
70
- name: rack-test
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: simplecov
56
+ name: rake
85
57
  requirement: !ruby/object:Gem::Requirement
86
58
  requirements:
87
59
  - - '>='
@@ -94,8 +66,7 @@ dependencies:
94
66
  - - '>='
95
67
  - !ruby/object:Gem::Version
96
68
  version: '0'
97
- description: An alternative Survey Monkey strategy for OmniAuth that retrieves a long-term
98
- access token.
69
+ description: Survemonkey OAuth2 strategy for OmniAuth 1.0
99
70
  email:
100
71
  - chris.beck@me.com
101
72
  executables: []
@@ -104,21 +75,22 @@ extra_rdoc_files: []
104
75
  files:
105
76
  - .gitignore
106
77
  - Gemfile
107
- - LICENSE.txt
78
+ - Gemfile.lock
79
+ - LICENSE
108
80
  - README.md
109
- - Rakefile
110
81
  - init.rb
111
82
  - lib/omniauth-surveymonkey2.rb
112
- - lib/omniauth/strategies/surverymonkey2.rb
83
+ - lib/omniauth/strategies/surveymonkey2.rb
84
+ - lib/omniauth/surveymonkey2.rb
113
85
  - lib/omniauth/surveymonkey2/version.rb
114
- - omniauth-surverymonkey2.rb
86
+ - omniauth-surveymonkey2-0.0.10.gem
87
+ - omniauth-surveymonkey2-0.0.11.gem
88
+ - omniauth-surveymonkey2-0.0.9.gem
115
89
  - omniauth-surveymonkey2.gemspec
90
+ - omniauth-surveymonkey2.rb
116
91
  - spec/omniauth/strategies/surveymonkey2_spec.rb
117
- - spec/spec_helper.rb
118
- - spec/support/shared_examples.rb
119
92
  homepage: https://github.com/cbeck/omniauth-surveymonkey2
120
- licenses:
121
- - MIT
93
+ licenses: []
122
94
  metadata: {}
123
95
  post_install_message:
124
96
  rdoc_options: []
@@ -139,9 +111,6 @@ rubyforge_project:
139
111
  rubygems_version: 2.1.5
140
112
  signing_key:
141
113
  specification_version: 4
142
- summary: STILL IN DEV. CHECK BACK SOON. An alternative Survey Monkey strategy for
143
- OmniAuth that retrieves a long-term access token.
114
+ summary: Survemonkey OAuth2 strategy for OmniAuth 1.0.
144
115
  test_files:
145
116
  - spec/omniauth/strategies/surveymonkey2_spec.rb
146
- - spec/spec_helper.rb
147
- - spec/support/shared_examples.rb
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require "bundler/gem_tasks"
data/spec/spec_helper.rb DELETED
@@ -1,15 +0,0 @@
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 'omniauth'
8
- require 'omniauth-surveymonkey2'
9
-
10
- Dir[File.expand_path('../support/**/*', __FILE__)].each { |f| require f }
11
-
12
- RSpec.configure do |config|
13
- config.include Rack::Test::Methods
14
- config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
15
- end
@@ -1,36 +0,0 @@
1
- shared_examples 'an oauth2 strategy' do
2
- describe '#client' do
3
- it 'should be initialized with symbolized client_options' do
4
- @options = { :client_options => { 'authorize_url' => 'https://example.com' } }
5
- subject.client.options[:authorize_url].should == 'https://example.com'
6
- end
7
- end
8
-
9
- describe '#authorize_params' do
10
- it 'should include any authorize params passed in the :authorize_params option' do
11
- @options = { :authorize_params => { :foo => 'bar', :baz => 'zip' } }
12
- subject.authorize_params['foo'].should eq('bar')
13
- subject.authorize_params['baz'].should eq('zip')
14
- end
15
-
16
- it 'should include top-level options that are marked as :authorize_options' do
17
- @options = { :authorize_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
18
- subject.authorize_params['scope'].should eq('bar')
19
- subject.authorize_params['foo'].should eq('baz')
20
- end
21
- end
22
-
23
- describe '#token_params' do
24
- it 'should include any token params passed in the :token_params option' do
25
- @options = { :token_params => { :foo => 'bar', :baz => 'zip' } }
26
- subject.token_params['foo'].should eq('bar')
27
- subject.token_params['baz'].should eq('zip')
28
- end
29
-
30
- it 'should include top-level options that are marked as :token_options' do
31
- @options = { :token_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
32
- subject.token_params['scope'].should eq('bar')
33
- subject.token_params['foo'].should eq('baz')
34
- end
35
- end
36
- end