easol-canvas 3.1.1 → 3.2.1

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: 02a735325d86666992a3673a94898fd3ad6800e11c4efbe74b34eb7126b349cf
4
- data.tar.gz: e86117c8bcc022a091448f90f4107aa9b07bc51c8d895e15937643ce0fe9502f
3
+ metadata.gz: 726899d9c85d1468a3aacd62a4487814bb7e0e030b2b583b41602638dfdbc990
4
+ data.tar.gz: 520828b9f285fe794d310a713b9ac3997d67d6b4a2a13df05315629d64ca99c9
5
5
  SHA512:
6
- metadata.gz: c2ed2183d3766d3aa7daccfb40f35685739940e9e48cb419efd511d81e232e01f4865f58a06a0b07edd33786ab841ac6a6586331d874381a2722cfaf7e4dc4cb
7
- data.tar.gz: 2deb9d2f391b9e47f76c5ceac8691e1786769992f684ed6ff11d4f9f6ce9a5a51ad98d40c6c968f87407d9775f1cdf01147e853aad5632fd57ff90b784728403
6
+ metadata.gz: d5cf148c156c0af19f9004cf9828f506b4951387e037252dadd8a0a0c11cc8abf62b5861f3a33331bbad22ceb32a1dfd9332576e4244cc12d0ef036bb1491e4f
7
+ data.tar.gz: 517b2b9519e7ecb3e0bdfcb4e23d906cfb4d3d4b1a712601464beba36680f3502480c2b8cfa74b8aee24376c77479dd66f13b532875f1d32759e5e17e2181ca5
@@ -12,20 +12,34 @@ module Canvas
12
12
  ].freeze
13
13
 
14
14
  PRIMITIVE_TYPES = %w[
15
+ boolean
16
+ color
15
17
  image
16
- product
17
- post
18
- page
19
18
  link
20
- text
21
- string
22
- boolean
23
19
  number
24
- color
25
- select
26
- range
20
+ page
21
+ post
22
+ product
27
23
  radio
24
+ range
25
+ select
26
+ string
27
+ text
28
28
  variant
29
29
  ].freeze
30
+
31
+ # These are types where the value is stored as a primitive type, e.g. string, integer.
32
+ # As opposed to values such as product IDs, color hashes, etc.
33
+ # This constant is currently used to determine whether it is safe to preserve
34
+ # a value when a variable changes type.
35
+ TYPES_WITH_PRIMITIVE_VALUE = %w[
36
+ boolean
37
+ number
38
+ radio
39
+ range
40
+ select
41
+ string
42
+ text
43
+ ]
30
44
  end
31
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Canvas
4
- VERSION = "3.1.1"
4
+ VERSION = "3.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easol-canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Byrne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-12-14 00:00:00.000000000 Z
12
+ date: 2023-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor