e_plat 0.9.8 → 0.9.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 375bbacc891a8a939e2f1850266d81c1d262ac1f419b5a3e698be18511a1fad1
|
4
|
+
data.tar.gz: fe1ac18acef6c8dcfc673c112f678f2ac7d0f093213a079cb2bc6910b013193a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 631cc23bc6ce58cb09d5b4144760985a610c3c17357422dc5820cf6f30fafca9b6361ca26dd7fdbf0e68abbe1c220cf22069b8a92efaf8199c2bac5ef9b030d2
|
7
|
+
data.tar.gz: d215246ede3f6be792a5aa4543d8185e956885b6dcc954f07f0289bfdbfacd819c75e07b471eaf171687b2c9b110635f0545701b3f131b0ef2ea98d3bf195e2a
|
@@ -53,17 +53,25 @@ class EPlat::Shopify::GraphQL::V202407::Input
|
|
53
53
|
enum_friendly(item, key: key)
|
54
54
|
end
|
55
55
|
end
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
|
57
|
+
def enum_friendly(value, key: nil)
|
58
|
+
case
|
59
59
|
when key == "tags"
|
60
|
-
"\"#{value}\""
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
60
|
+
"\"#{single_quotes_only(value)}\""
|
61
|
+
when value.is_a?(String)
|
62
|
+
if value.match?(/\A[A-Z_]+\z/)
|
63
|
+
value
|
64
|
+
else
|
65
|
+
"\"#{single_quotes_only(value)}\""
|
66
|
+
end
|
67
|
+
else
|
68
|
+
value
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def single_quotes_only(value)
|
73
|
+
value&.gsub("\"", "'")
|
74
|
+
end
|
67
75
|
|
68
76
|
def format_graphql_args(args, key: nil)
|
69
77
|
args.map do |key, value|
|
data/lib/e_plat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: e_plat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- oliwoodsuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|