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 +4 -4
- data/lib/canvas/constants.rb +23 -9
- data/lib/canvas/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 726899d9c85d1468a3aacd62a4487814bb7e0e030b2b583b41602638dfdbc990
|
4
|
+
data.tar.gz: 520828b9f285fe794d310a713b9ac3997d67d6b4a2a13df05315629d64ca99c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5cf148c156c0af19f9004cf9828f506b4951387e037252dadd8a0a0c11cc8abf62b5861f3a33331bbad22ceb32a1dfd9332576e4244cc12d0ef036bb1491e4f
|
7
|
+
data.tar.gz: 517b2b9519e7ecb3e0bdfcb4e23d906cfb4d3d4b1a712601464beba36680f3502480c2b8cfa74b8aee24376c77479dd66f13b532875f1d32759e5e17e2181ca5
|
data/lib/canvas/constants.rb
CHANGED
@@ -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
|
-
|
25
|
-
|
26
|
-
|
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
|
data/lib/canvas/version.rb
CHANGED
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.
|
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:
|
12
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|