kinetic_sdk 5.0.9 → 5.0.10
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: 84466b09a0451770e8dee54b04945dc470471fe6c16200fdf3ff5b45f3ec919f
|
4
|
+
data.tar.gz: adcbed36342f299a9f744230c3602153178b464990f5f8fb87951659f421d17f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e41e92961c079fee7d4fa3aab86a5ab7b007545ac4241d48018b10c813bc6e39ad55f1c6105825de134ef4c5fe3926579496c88b8fc7e2358a0d52c6d18a310b
|
7
|
+
data.tar.gz: c6d84d3d8f269fe6f8c2598ec38143004b780587ae6ff788080f73f9a2f9b32654dfc798ce125e597cf9208f9888fbfe72217497b329f4b7899266151245ea76
|
@@ -18,7 +18,7 @@ module KineticSdk
|
|
18
18
|
def delete_handlers(headers=header_basic_auth)
|
19
19
|
@logger.info("Deleting all handlers")
|
20
20
|
(find_handlers(headers).content['handlers'] || []).each do |handler|
|
21
|
-
delete("#{@api_url}/handlers/#{handler['
|
21
|
+
delete("#{@api_url}/handlers/#{handler['definitionId']}", headers)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -140,11 +140,16 @@ module KineticSdk
|
|
140
140
|
|
141
141
|
# If this is not the "root" object
|
142
142
|
if object_path != '' && !file_contents.empty?
|
143
|
+
# Remove all `/` and `\` characters with ``
|
144
|
+
# Replace all `.` with `/`
|
145
|
+
# Replace all `::` with `-` (this ensures nested Teams/Categories maintain a separator)
|
146
|
+
# Replace all non-slug characters with ``
|
147
|
+
filename = "#{core_path}/#{object_path.gsub('/\\', '').gsub('.', '/').gsub(/::/, '-').gsub(/[^a-zA-Z0-9_\-\/]/, '')}.json"
|
143
148
|
# Write the file_contents based upon the
|
144
|
-
filename = "#{core_path}/#{object_path.gsub('.', '/')}.json"
|
145
149
|
write_object_to_file(filename, file_contents)
|
146
150
|
end
|
147
151
|
|
152
|
+
|
148
153
|
# For each of the child objects
|
149
154
|
child_objects.each do |key, child_object|
|
150
155
|
# Process the export for that object (recursively)
|
data/lib/kinetic_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kinetic_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kinetic Data
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|