omniauth-naranya_id 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/naranya_id.rb CHANGED
@@ -44,11 +44,16 @@ module NaranyaId
44
44
  class << self
45
45
 
46
46
  def consumer
47
+
48
+ unless config.consumer_key.present? && config.consumer_secret.present?
49
+ logger.warn "No Naranya ID consumer key or secret configured at SDK level... using environment variables."
50
+ logger.warn "Current Naranya ID config: #{config.inspect}"
51
+ end
47
52
 
48
- raise Errors::NoConsumerKeyConfig unless config.consumer_key.present?
49
- raise Errors::NoConsumerSecretConfig unless config.consumer_secret.present?
53
+ consumer_key = config.consumer_key || ENV['NARANYA_ID_API_KEY']
54
+ consumer_secret = config.consumer_secret || ENV['NARANYA_ID_API_SECRET']
50
55
 
51
- consumer = ::OAuth::Consumer.new(config.consumer_key, config.consumer_secret,
56
+ consumer = ::OAuth::Consumer.new(consumer_key, consumer_secret,
52
57
  config.client_options.merge(site: "#{config.client_options[:site]}:89"))
53
58
 
54
59
  consumer.http.open_timeout = config.open_timeout if config.open_timeout
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module NaranyaId
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,139 +1,158 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-naranya_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Roberto Quintanilla
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-05-15 00:00:00.000000000 Z
12
+ date: 2014-06-05 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activesupport
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '4'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: activemodel
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
37
  version: '4'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - "~>"
43
+ - - ~>
39
44
  - !ruby/object:Gem::Version
40
45
  version: '4'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: omniauth-oauth
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
53
  version: '1.0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - "~>"
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: '1.0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: bundler
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
69
  version: '1.6'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - "~>"
75
+ - - ~>
67
76
  - !ruby/object:Gem::Version
68
77
  version: '1.6'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rake
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rspec
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ">="
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - ">="
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: rack-test
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - ">="
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - ">="
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: simplecov
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - ">="
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - ">="
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: webmock
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - ">="
147
+ - - ! '>='
130
148
  - !ruby/object:Gem::Version
131
149
  version: '0'
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - ">="
155
+ - - ! '>='
137
156
  - !ruby/object:Gem::Version
138
157
  version: '0'
139
158
  description: Omniauth provider for NaranyaID.
@@ -143,8 +162,8 @@ executables: []
143
162
  extensions: []
144
163
  extra_rdoc_files: []
145
164
  files:
146
- - ".gitignore"
147
- - ".rspec"
165
+ - .gitignore
166
+ - .rspec
148
167
  - Gemfile
149
168
  - LICENSE.txt
150
169
  - README.md
@@ -161,26 +180,27 @@ files:
161
180
  homepage: http://www.naranyamarket.com
162
181
  licenses:
163
182
  - MIT
164
- metadata: {}
165
183
  post_install_message:
166
184
  rdoc_options: []
167
185
  require_paths:
168
186
  - lib
169
187
  required_ruby_version: !ruby/object:Gem::Requirement
188
+ none: false
170
189
  requirements:
171
- - - ">="
190
+ - - ! '>='
172
191
  - !ruby/object:Gem::Version
173
192
  version: '0'
174
193
  required_rubygems_version: !ruby/object:Gem::Requirement
194
+ none: false
175
195
  requirements:
176
- - - ">="
196
+ - - ! '>='
177
197
  - !ruby/object:Gem::Version
178
198
  version: '0'
179
199
  requirements: []
180
200
  rubyforge_project:
181
- rubygems_version: 2.2.2
201
+ rubygems_version: 1.8.23
182
202
  signing_key:
183
- specification_version: 4
203
+ specification_version: 3
184
204
  summary: Omniauth provider for NaranyaID.
185
205
  test_files:
186
206
  - spec/omniauth/strategies/naranya_id_spec.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: dd5d9ba8398dfc7cc94221b3828a0cf90b0073a4
4
- data.tar.gz: 319f59cc5dbe14b92fa7467bb7620a3f40c41431
5
- SHA512:
6
- metadata.gz: e15cd66b4038afe486bac339400976ab12e32a2ce0dd7af3eab23390e1dd520665b039e55e906b73a625d98abd845a00bae20f2ebe09a2d1f4f841f7a69df9f8
7
- data.tar.gz: 84b218948904ef1763772dd292751432c1afec452081de41b00a2d85e2618cd088528dea5d46f376d6f31d32e10a5c837f12a18336f181803ee89f09e83eff1e