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: a2d4e659604a3667ec0f7a8de4fff9ac8b4ab1d091889a8d296fba9f93d7a71f
4
- data.tar.gz: 073f2b2d4188b47314bb197e3bca79ae3eb3ce0658c5dc86f1bf7151a937c477
3
+ metadata.gz: 84466b09a0451770e8dee54b04945dc470471fe6c16200fdf3ff5b45f3ec919f
4
+ data.tar.gz: adcbed36342f299a9f744230c3602153178b464990f5f8fb87951659f421d17f
5
5
  SHA512:
6
- metadata.gz: f0dbd690e223267659a8d2c91c8355af63a6a33b8b65231a813ae93f00aa1b65444afbb6811a32c4a703479be14398a2fe1e27143e36b7a567caef45779b662e
7
- data.tar.gz: f41fa365f441c0e9a2ffbd79f60afbdb95f6850d0c49bf65c63c11a8fc4ca0cb95f81e4ac4ab149c48a5843f9350b89c9bd33d4171150589fc742298318cacad
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['definition_id']}", headers)
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)
@@ -3,5 +3,5 @@ module KineticSdk
3
3
  # Version of Kinetic SDK
4
4
  #
5
5
  # @return [String] Version of the SDK
6
- VERSION = "5.0.9"
6
+ VERSION = "5.0.10"
7
7
  end
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.9
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-06-29 00:00:00.000000000 Z
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