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: 1615e2ddbf7dde56402eca06bff0271b18b9228f38cb1f9ea8128260028675d7
4
- data.tar.gz: 615d92b7a9f7d1a707675e016ea50677f3bc2a995ff24a2d8c12d66700b9b53d
3
+ metadata.gz: 375bbacc891a8a939e2f1850266d81c1d262ac1f419b5a3e698be18511a1fad1
4
+ data.tar.gz: fe1ac18acef6c8dcfc673c112f678f2ac7d0f093213a079cb2bc6910b013193a
5
5
  SHA512:
6
- metadata.gz: 5e5a6503b69bcc690367d3e06e5ea766d2af5344d3c990171e99615f0563c6b0b5abce9a33816c4b43a508a42f57026b4ca5c41df4d5219d7d76a7ada6aadf8b
7
- data.tar.gz: 32dfbaaf3b4e06ca683ae9505ce38103d4d4facf3cc83e3deb91028a8a64ad7d334eca2f4338e0b29bbec4ae0cabf18283a0248cbfc0f2409f9db3f91a1ec60b
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
- def enum_friendly(value, key: nil)
58
- case
56
+
57
+ def enum_friendly(value, key: nil)
58
+ case
59
59
  when key == "tags"
60
- "\"#{value}\""
61
- when value.is_a?(String)
62
- value.match?(/\A[A-Z_]+\z/) ? value : "\"#{value}\""
63
- else
64
- value
65
- end
66
- end
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|
@@ -1,3 +1,3 @@
1
1
  module EPlat
2
- VERSION = "0.9.8"
2
+ VERSION = "0.9.9"
3
3
  end
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.8
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-07-18 00:00:00.000000000 Z
11
+ date: 2024-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler