bullet_train-fields 1.43.0 → 1.44.0

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
  SHA256:
3
- metadata.gz: c6da7d83a45d8d712be68e7a2911f915f745def99bac48fcaf912ee105b764fc
4
- data.tar.gz: cc4b575aaca5e89ea99ea36ad260fd18f1c2016c93240c33924174e8350d3fdf
3
+ metadata.gz: 1b8ff8fad289b2ce4832c24260f6c08ab2402ca94a8a9873f054dabb753864e1
4
+ data.tar.gz: 318410b82f96c9686dca5669492c23617aa75190e6caa2e0c4cf366cac183d43
5
5
  SHA512:
6
- metadata.gz: 2fda8d4726d3d654336a708a9cf8957e26b876431fd52aceaacd933a33eae70b04fb9ee4316eb3742468f50baaacf01adec32cf601635a8dd69e356085c10ede
7
- data.tar.gz: 4a6919e5669d27a98f6b9ac877edc8312e0cc4b624295dc448257f86e7984907bd1efb383ce4f9835abae663095ed5e9c8c44269845699bceaf1f65b2310c9b8
6
+ metadata.gz: 0eb4cad5518919f67b16e48c945309a34cd332e692a3aeb8906e95d5ad137c5a2365c780475d21d5fc1e382e6d8defa6415759d92193eef98ecf7a9e09e0af3f
7
+ data.tar.gz: da4a20ed1370cd43cf34fad73996f3e4fdf81f6667474cdc580258e823b0bf68901f1ab7462bb7efdce93a93327d591edc02562ff6b6bc4afc80a0b8c1f1fc1c
@@ -41,7 +41,7 @@ module Fields::SuperSelectSupport
41
41
  return ids if ids.empty?
42
42
 
43
43
  existing_ids = collection.where(id: ids).ids.map(&:to_s)
44
- new_ids = ids.without(existing_ids).filter_map { yield(collection, _1)&.id&.to_s }
45
- (existing_ids + new_ids).then { id ? _1.first : _1 }
44
+ new_ids = ids.without(existing_ids).filter_map { yield(collection, it)&.id&.to_s }
45
+ (existing_ids + new_ids).then { id ? it.first : it }
46
46
  end
47
47
  end
@@ -41,7 +41,7 @@ module Account::DatesHelper
41
41
  if local_time(timestamp).to_date == local_time(Time.now).to_date
42
42
  "Today at #{display_time(timestamp, custom_time_format)}"
43
43
  # yesterday?
44
- elsif (local_time(timestamp).to_date) == (local_time(Time.now).to_date - 1.day)
44
+ elsif local_time(timestamp).to_date == (local_time(Time.now).to_date - 1.day)
45
45
  "Yesterday at #{display_time(timestamp, custom_time_format)}"
46
46
  else
47
47
  "#{display_date(timestamp, custom_date_format)} at #{display_time(timestamp, custom_time_format)}"
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Fields
3
- VERSION = "1.43.0"
3
+ VERSION = "1.44.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.43.0
4
+ version: 1.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver