wordjelly-auth 1.3.5 → 1.3.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: 3bb90eefbe2a614f5a57b6e8e8c7e1606ae35491
|
4
|
+
data.tar.gz: c9250a32e8baa63b0656effad2475f1a834271c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8636002e680e0449346d820c98fc5ffee65dc265fbf52eb61004b7396909adaffb9d0ecbff6c2cb71f024d6f678b063c746e371751f19ba9b4fe714217322f36
|
7
|
+
data.tar.gz: 7bea9b3953bec721695a461a950b21ab1cde94a56550200c0660afea962959c0e5001a50f0e08245622c1ed5ca460149f0125fb929792ef3d11b9ef07e9cd1fe
|
@@ -127,6 +127,7 @@ module Auth::Concerns::EsConcern
|
|
127
127
|
document.set_secondary_links
|
128
128
|
document.set_autocomplete_description
|
129
129
|
document.set_autocomplete_tags
|
130
|
+
document.add_created_at
|
130
131
|
document.add_attributes_for_tags
|
131
132
|
end
|
132
133
|
|
@@ -212,17 +213,27 @@ module Auth::Concerns::EsConcern
|
|
212
213
|
|
213
214
|
end
|
214
215
|
|
216
|
+
=begin
|
215
217
|
def created_at=(created_at)
|
218
|
+
|
216
219
|
|
217
220
|
super(created_at)
|
218
221
|
|
219
222
|
return unless self.created_at
|
220
223
|
|
221
224
|
human_readable = self.created_at.strftime("%B %-d %Y")
|
222
|
-
self.tags << human_readable unless self.tags.include? human_readable
|
225
|
+
self.tags << human_readable unless self.tags.include? human_readable
|
226
|
+
|
227
|
+
|
223
228
|
self.masked_tags << human_readable unless self.tags.include? human_readable
|
224
229
|
|
225
230
|
end
|
231
|
+
=end
|
232
|
+
|
233
|
+
def add_created_at
|
234
|
+
human_readable = self.created_at.strftime("%B %-d %Y") if self.created_at
|
235
|
+
self.tags << human_readable unless self.tags.include? human_readable
|
236
|
+
end
|
226
237
|
|
227
238
|
def clear_autocomplete_data
|
228
239
|
self.primary_link = nil
|
@@ -485,7 +485,10 @@ module Auth::Concerns::Shopping::CartItemConcern
|
|
485
485
|
product = Auth.configuration.product_class.constantize.find(product_id)
|
486
486
|
|
487
487
|
product_clone = product.clone
|
488
|
-
|
488
|
+
|
489
|
+
self.created_at = Time.now
|
490
|
+
self.updated_at = Time.now
|
491
|
+
|
489
492
|
create_hash = {
|
490
493
|
"$setOnInsert" => self.attributes
|
491
494
|
}
|
@@ -336,6 +336,8 @@ module OmniAuth
|
|
336
336
|
## make sure that the host you specify in Auth.configuration
|
337
337
|
url_to_pass_as_callback = Auth.configuration.host_name + script_name + callback_path
|
338
338
|
|
339
|
+
|
340
|
+
|
339
341
|
verifier = request.params["code"]
|
340
342
|
|
341
343
|
client.auth_code.get_token(verifier, get_token_options(url_to_pass_as_callback), deep_symbolize(options.auth_token_params))
|
data/lib/auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordjelly-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bhargav
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xpath
|