wordjelly-auth 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1e9b39e6c07b7dd628f6846703c6cb9f00e63d5
4
- data.tar.gz: '08f6220eb0a9925449fe68312b8c2c2b023106b2'
3
+ metadata.gz: 3bb90eefbe2a614f5a57b6e8e8c7e1606ae35491
4
+ data.tar.gz: c9250a32e8baa63b0656effad2475f1a834271c9
5
5
  SHA512:
6
- metadata.gz: b7705dafffa2f9e0aae0abc667dbfd60a49fe56669a5300062095a2123b38e538ffcede49e894c5d9d4fb0242ba5cb96ecef0929481388cdc624305aa2ac3c25
7
- data.tar.gz: 3bb95056b379d45df8951d69eb810e2084bf262a4d99bbc9cb263e6c97e6d4b08f813880124839c4b43333df3a571ab5c1f0af90f7b41ec103ed4451959271db
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
@@ -1,3 +1,3 @@
1
1
  module Auth
2
- VERSION = "1.3.5"
2
+ VERSION = "1.3.6"
3
3
  end
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.5
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-21 00:00:00.000000000 Z
11
+ date: 2018-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xpath