e_plat 0.9.7 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe14d9cdc689dc86a194c7e414d951f354a6ae56887d22824e34e6061dd5cf0c
4
- data.tar.gz: e3d0c8b3fe528135903e4ca2ab5c11e673ad4c694650f645884c8829eaacb506
3
+ metadata.gz: 375bbacc891a8a939e2f1850266d81c1d262ac1f419b5a3e698be18511a1fad1
4
+ data.tar.gz: fe1ac18acef6c8dcfc673c112f678f2ac7d0f093213a079cb2bc6910b013193a
5
5
  SHA512:
6
- metadata.gz: 1649fe90b953fca03adf633cb07605e30b8f2909ea55024763ca6e93341573a006b6deff7ed919580d39761b0016f669aec4590f075c4f3402134ddbe557efdd
7
- data.tar.gz: 7b34e5a90be548d499c99cb5a940448ad947c54f82c4c48958b1c89d82ead66c6192d68ce5e5a6d7c61f34d0d89726802c5f923c497321f774d0fb89188f487f
6
+ metadata.gz: 631cc23bc6ce58cb09d5b4144760985a610c3c17357422dc5820cf6f30fafca9b6361ca26dd7fdbf0e68abbe1c220cf22069b8a92efaf8199c2bac5ef9b030d2
7
+ data.tar.gz: d215246ede3f6be792a5aa4543d8185e956885b6dcc954f07f0289bfdbfacd819c75e07b471eaf171687b2c9b110635f0545701b3f131b0ef2ea98d3bf195e2a
@@ -87,12 +87,6 @@ module EPlat
87
87
  }"
88
88
  }
89
89
  },
90
- {
91
- alias_attribute: {native_key: "date_created", e_plat_key: "created_at"},
92
- },
93
- {
94
- alias_attribute: {native_key: "date_modified", e_plat_key: "updated_at"},
95
- },
96
90
  {
97
91
  existing_entry: {native_key: "weight", e_plat_key: "weight"}
98
92
  },
@@ -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.7"
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.7
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-11 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