omniauth-cloud66 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: edade837d68b4f4584059f0c99d8ee2dd5af02f3
4
+ data.tar.gz: e05ae56261da7989d2fdea608aa972a13c9a5a22
5
+ SHA512:
6
+ metadata.gz: 57b3978c24b11a3653a600c1ce97a66cb1d1daf9b9bb2264ac9e92463cd1c075d9040f395ca61378477bbd9316440efb35c1b4bde68c7d8c1f7dc708863ea221
7
+ data.tar.gz: 47328bcef0f8f0fcd5143bf15c921ff4bc59b0586ac1394b97a59e88d900db4ebf43ea325db44b30cf70fb2807a7e36c9f1c7302fbef8bcbbc3bbb254124cbbd
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://semaphoreci.com/api/v1/renderedtext/omniauth-cloud66/branches/master/shields_badge.svg)](https://semaphoreci.com/renderedtext/omniauth-cloud66)
2
+
1
3
  # OmniAuth Cloud66
2
4
 
3
5
  This is the unofficial OmniAuth strategy for authenticating to [Cloud 66](https://www.cloud66.com).
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Cloud66
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -23,6 +23,9 @@ module OmniAuth
23
23
  end
24
24
  end
25
25
 
26
+ def callback_url
27
+ full_host + script_name + callback_path
28
+ end
26
29
  end
27
30
  end
28
31
  end
@@ -4,8 +4,8 @@ require File.expand_path('../lib/omniauth-cloud66/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Aleksandar Diklic"]
6
6
  gem.email = ["rastasheep@gmail.com"]
7
- gem.description = %q{Unfficial OmniAuth strategy for Cloud66.}
8
- gem.summary = %q{Unfficial OmniAuth strategy for Cloud66.}
7
+ gem.description = %q{Unofficial OmniAuth strategy for Cloud66.}
8
+ gem.summary = %q{Unofficial OmniAuth strategy for Cloud66.}
9
9
  gem.homepage = "https://github.com/rastasheep/omniauth-cloud66"
10
10
  gem.license = "MIT"
11
11
 
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.version = OmniAuth::Cloud66::VERSION
18
18
 
19
19
  gem.add_dependency 'omniauth', '~> 1.0'
20
- gem.add_dependency 'omniauth-oauth2', '~> 1.0'
20
+ gem.add_dependency 'omniauth-oauth2', '>= 1.4.0', '< 2.0'
21
21
  gem.add_development_dependency 'rspec', '~> 2.7'
22
22
  gem.add_development_dependency 'rack-test'
23
23
  gem.add_development_dependency 'simplecov'
@@ -1,24 +1,21 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe OmniAuth::Strategies::Cloud66 do
4
-
5
4
  subject do
6
5
  OmniAuth::Strategies::Cloud66.new({})
7
6
  end
8
7
 
9
8
  context "client options" do
10
9
  it 'should have correct site' do
11
- subject.options.client_options.site.should eq("https://www.cloud66.com/api/2")
10
+ subject.options.client_options.site.should eq("https://app.cloud66.com/api/2")
12
11
  end
13
12
 
14
13
  it 'should have correct authorize url' do
15
- subject.options.client_options.authorize_url.should eq("https://www.cloud66.com/oauth/authorize")
14
+ subject.options.client_options.authorize_url.should eq("https://app.cloud66.com/oauth/authorize")
16
15
  end
17
16
 
18
17
  it 'should have correct token url' do
19
- subject.options.client_options.token_url.should eq("https://www.cloud66.com/oauth/token")
18
+ subject.options.client_options.token_url.should eq("https://app.cloud66.com/oauth/token")
20
19
  end
21
-
22
20
  end
23
-
24
21
  end
metadata CHANGED
@@ -1,120 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-cloud66
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Aleksandar Diklic
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-04-02 00:00:00.000000000 Z
11
+ date: 2017-11-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: omniauth
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: omniauth-oauth2
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
- version: '1.0'
33
+ version: 1.4.0
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '2.0'
38
37
  type: :runtime
39
38
  prerelease: false
40
39
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
40
  requirements:
43
- - - ~>
41
+ - - ">="
44
42
  - !ruby/object:Gem::Version
45
- version: '1.0'
43
+ version: 1.4.0
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
46
47
  - !ruby/object:Gem::Dependency
47
48
  name: rspec
48
49
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
50
  requirements:
51
- - - ~>
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '2.7'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
57
  requirements:
59
- - - ~>
58
+ - - "~>"
60
59
  - !ruby/object:Gem::Version
61
60
  version: '2.7'
62
61
  - !ruby/object:Gem::Dependency
63
62
  name: rack-test
64
63
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
64
  requirements:
67
- - - ! '>='
65
+ - - ">="
68
66
  - !ruby/object:Gem::Version
69
67
  version: '0'
70
68
  type: :development
71
69
  prerelease: false
72
70
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
71
  requirements:
75
- - - ! '>='
72
+ - - ">="
76
73
  - !ruby/object:Gem::Version
77
74
  version: '0'
78
75
  - !ruby/object:Gem::Dependency
79
76
  name: simplecov
80
77
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
78
  requirements:
83
- - - ! '>='
79
+ - - ">="
84
80
  - !ruby/object:Gem::Version
85
81
  version: '0'
86
82
  type: :development
87
83
  prerelease: false
88
84
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
85
  requirements:
91
- - - ! '>='
86
+ - - ">="
92
87
  - !ruby/object:Gem::Version
93
88
  version: '0'
94
89
  - !ruby/object:Gem::Dependency
95
90
  name: webmock
96
91
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
92
  requirements:
99
- - - ! '>='
93
+ - - ">="
100
94
  - !ruby/object:Gem::Version
101
95
  version: '0'
102
96
  type: :development
103
97
  prerelease: false
104
98
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
99
  requirements:
107
- - - ! '>='
100
+ - - ">="
108
101
  - !ruby/object:Gem::Version
109
102
  version: '0'
110
- description: Unfficial OmniAuth strategy for Cloud66.
103
+ description: Unofficial OmniAuth strategy for Cloud66.
111
104
  email:
112
105
  - rastasheep@gmail.com
113
106
  executables: []
114
107
  extensions: []
115
108
  extra_rdoc_files: []
116
109
  files:
117
- - .gitignore
110
+ - ".gitignore"
118
111
  - Gemfile
119
112
  - LICENSE
120
113
  - README.md
@@ -130,26 +123,25 @@ files:
130
123
  homepage: https://github.com/rastasheep/omniauth-cloud66
131
124
  licenses:
132
125
  - MIT
126
+ metadata: {}
133
127
  post_install_message:
134
128
  rdoc_options: []
135
129
  require_paths:
136
130
  - lib
137
131
  required_ruby_version: !ruby/object:Gem::Requirement
138
- none: false
139
132
  requirements:
140
- - - ! '>='
133
+ - - ">="
141
134
  - !ruby/object:Gem::Version
142
135
  version: '0'
143
136
  required_rubygems_version: !ruby/object:Gem::Requirement
144
- none: false
145
137
  requirements:
146
- - - ! '>='
138
+ - - ">="
147
139
  - !ruby/object:Gem::Version
148
140
  version: '0'
149
141
  requirements: []
150
142
  rubyforge_project:
151
- rubygems_version: 1.8.23
143
+ rubygems_version: 2.6.14
152
144
  signing_key:
153
- specification_version: 3
154
- summary: Unfficial OmniAuth strategy for Cloud66.
145
+ specification_version: 4
146
+ summary: Unofficial OmniAuth strategy for Cloud66.
155
147
  test_files: []