omniauth-icalia 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: 4dfbfb47218190adfbee66c478cf9787d52b5de4ccea2f9d325c415553ed3ec8
4
- data.tar.gz: 775e1514daa1c195234328daf2534a90b773f3ce27f75e390d743e03791b069a
3
+ metadata.gz: 76a507c543087c4a2c61fb09072b46178e53254676d28947a921a51901f87824
4
+ data.tar.gz: 5e807f57157e0b7bd9225bebac96e8f13c9046dc330249c0b7b89408ebb0433d
5
5
  SHA512:
6
- metadata.gz: 478333a7b552a4961d892e3088b8a86755743605124d8aed6897bfb366c3aadd6a93b205cf565ddbaf30d1ff4f5dd2f3a0c7ae587e839ab796ec45382fb50dcb
7
- data.tar.gz: 2dd160af460ee9a27f54efca2e702ab2b3e3c86d571e8235ef301dfb3c40c938bdab3596b531289e69e15611f04ac48b983dc6114c34267657298335eaa84b36
6
+ metadata.gz: 5fbc1b076e8a864123affd12e35b1180702b2ec75a1adb98256c442fdf261e77c48bbbc070cda7715ccd48aff44b9df91cfa9bc94a0552ba375d228ace897350
7
+ data.tar.gz: 0c141cee9f07f64fb60fe73344311050794ed250f84c7c6ad1ccea275344389a75db0abc02ae15be6a0e249a5e9fe6b0cecbddc16647d4a196d6151e67882131
@@ -91,7 +91,7 @@ module Icalia
91
91
  define_singleton_method method_name do
92
92
  class_variable_get("@@#{method_name}")
93
93
  end
94
-
94
+
95
95
  define_singleton_method "#{method_name}=".to_sym do |value|
96
96
  class_variable_set("@@#{method_name}", value)
97
97
  end
@@ -113,19 +113,19 @@ module Icalia
113
113
 
114
114
  def reset
115
115
  oauth_flows.clear
116
-
116
+
117
117
  self.example_resource_owner_id = SecureRandom.uuid
118
118
  self.example_resource_owner_given_name = 'Example Person'
119
119
  self.example_resource_owner_family_name = 'From Artanis'
120
120
  self.example_resource_owner_gender_type = 'male'
121
121
  self.example_resource_owner_custom_gender = nil
122
122
  end
123
-
123
+
124
124
  def example_resource_owner_full_name
125
125
  [example_resource_owner_given_name, example_resource_owner_family_name]
126
126
  .compact.join(' ').strip
127
127
  end
128
-
128
+
129
129
  def store_oauth_flow_data(data)
130
130
  oauth_flows << data
131
131
  end
@@ -137,8 +137,8 @@ module Icalia
137
137
  def sign_in_url
138
138
  "#{url}/sign-in"
139
139
  end
140
-
141
- # Taken from FakeStripe.stub_stripe at fake_stripe gem:
140
+
141
+ # Taken from FakeStripe.stub_stripe at fake_stripe gem:
142
142
  def prepare
143
143
  reset
144
144
 
@@ -151,8 +151,8 @@ module Icalia
151
151
  OmniAuth::Strategies::Icalia.instances.each do |strategy|
152
152
  strategy.options.client_options.tap do |options|
153
153
  options.site = url
154
- options.token_url = "#{oauth_host}/oauth/token"
155
- options.authorize_url = "#{oauth_host}/oauth/authorize"
154
+ options.token_url = "#{url}/oauth/token"
155
+ options.authorize_url = "#{url}/oauth/authorize"
156
156
  end
157
157
  end
158
158
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Icalia
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-icalia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Quintanilla