avo 2.13.3.pre.4 → 2.13.4.pre.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 595d05c5a12fe197d118cbaf142d64f445224afe450334f09f6e7a3e041f6c0f
4
- data.tar.gz: a5101fe7f1c44fc5d8ccef230dbe44f73228e81e327893547b7d7004b0cc0e4a
3
+ metadata.gz: 6cfce3adc5884d591b4c562245c6111e3844f3b71ba028015b9fb02f2890b77b
4
+ data.tar.gz: 02e2bb8248bf0232c68a596388d4f8be956be9b97c5c114cab27c6f9c5b85d56
5
5
  SHA512:
6
- metadata.gz: ee55e57a363c34808c4f3b3fdd03bb34ebf262aff29739cf5114572ba4d22cd3b19dbfc9825eb80d25e701f8b11791205e77677dd5d2efba5988bc01dc623c6c
7
- data.tar.gz: c3faf170cfeeb42af70b66858d12c5af938292649eefd2288661e272970704b9cf5edbef4a3bb9418ae862976e9119d7d05b175266810760746ec289282c5620
6
+ metadata.gz: d073957e4ffe0426fbc7583b0a19f1ac2c140ee20c4a2bc418e50a51c6e677a3550d6b4011e4d502f3be564bc4b5f41d742077e145c4ce8bc2700291b402be3b
7
+ data.tar.gz: 2041ac955eecbe269a27fd3edd515e09d45d21351d59697d30629d24eebdc18fac02467d5b91dcf2157994e46dd0a4e561cba4191696e0ca0c6950ac6d6733fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.13.3.pre.4)
4
+ avo (2.13.4.pre.1)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -117,7 +117,11 @@ export default class extends Controller {
117
117
 
118
118
  flatpickr(this.fakeInputTarget, options)
119
119
 
120
- this.updateRealInput(this.parsedValue.setZone(this.displayTimezone).toISO())
120
+ if (this.enableTimeValue) {
121
+ this.updateRealInput(this.parsedValue.setZone(this.displayTimezone).toISO())
122
+ } else {
123
+ this.updateRealInput(universalTimestamp(this.initialValue))
124
+ }
121
125
  }
122
126
 
123
127
  onChange(selectedDates) {
@@ -9,16 +9,7 @@ class Avo::SvgFinder
9
9
 
10
10
  # Use the default static finder logic. If that doesn't find anything, search according to our pattern:
11
11
  def pathname
12
- found_asset = if ::Rails.application.config.assets.compile
13
- asset = ::Rails.application.assets[@filename]
14
- Pathname.new(asset.filename) if asset.present?
15
- else
16
- manifest = ::Rails.application.assets_manifest
17
- asset_path = manifest.assets[@filename]
18
- unless asset_path.nil?
19
- ::Rails.root.join(manifest.directory, asset_path)
20
- end
21
- end
12
+ found_asset = default_strategy
22
13
 
23
14
  # Use the found asset
24
15
  return found_asset if found_asset.present?
@@ -37,5 +28,18 @@ class Avo::SvgFinder
37
28
 
38
29
  path
39
30
  end
31
+
32
+ def default_strategy
33
+ if ::Rails.application.config.assets.compile
34
+ asset = ::Rails.application.assets[@filename]
35
+ Pathname.new(asset.filename) if asset.present?
36
+ else
37
+ manifest = ::Rails.application.assets_manifest
38
+ asset_path = manifest.assets[@filename]
39
+ unless asset_path.nil?
40
+ ::Rails.root.join(manifest.directory, asset_path)
41
+ end
42
+ end
43
+ end
40
44
  end
41
45
 
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.13.3.pre.4" unless const_defined?(:VERSION)
2
+ VERSION = "2.13.4.pre.1" unless const_defined?(:VERSION)
3
3
  end