zendesk_apps_support 4.6.2 → 4.6.3

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
  SHA1:
3
- metadata.gz: 45992fa4944c849d21b3520e9c30876cb5fb2f90
4
- data.tar.gz: c55fa1f788097d2bae83513551330978c41b318e
3
+ metadata.gz: 8674f54cb17f6a9aca24d00045c70c817bd8f537
4
+ data.tar.gz: 85aa66a5a02ac638ad804afb6d7c898080edc90d
5
5
  SHA512:
6
- metadata.gz: 973e63b7b9337a61df53bc55156bf8d2cbd3048e5efd340e08bffa8fde43621b93cc5d1a232cd4cdda822e9ef2939465cfb7a6868773fb5a49ff5eab610d33f3
7
- data.tar.gz: db1cfe07a3f274b225521c6eb9eab6fa54f2d16fc4d5ed768d8763182f229fb7c64607545039a2fd8e7dfb15b82851f8bc9631e9dd1889efde6e99dc44c58ac2
6
+ metadata.gz: e07f95aec8b2625f35724031295897cd634dc5ccf2bd27268b984b864fff71d7103a349c228c876de9055b2f6a3ad883800359855436c8126677c28b2ed371f6
7
+ data.tar.gz: 0e2d0bc964fd082db3f2b5a5fae29ff903c0e3dc3125d38aad535a2023f67c86b018388d72b5f329ddd3c61bf016929e6b0fab8ff577be56a579835f828aa0da
@@ -45,15 +45,13 @@ module ZendeskAppsSupport
45
45
  .scrub!(@empty_malformed_markup)
46
46
  .to_xml
47
47
 
48
- filepath = svg.relative_path
49
-
50
48
  next if clean_markup == markup
51
49
  begin
52
50
  compressed_clean_markup = clean_markup.tr("\n", '').squeeze(' ').gsub(/\>\s+\</, '><')
53
- IO.write(filepath, compressed_clean_markup)
54
- package.warnings << I18n.t('txt.apps.admin.warning.app_build.sanitised_svg', svg: filepath)
51
+ IO.write(svg.absolute_path, compressed_clean_markup)
52
+ package.warnings << I18n.t('txt.apps.admin.warning.app_build.sanitised_svg', svg: svg.relative_path)
55
53
  rescue
56
- errors << ValidationError.new(:dirty_svg, svg: filepath)
54
+ errors << ValidationError.new(:dirty_svg, svg: svg.relative_path)
57
55
  end
58
56
  end
59
57
  errors
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_apps_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.2
4
+ version: 4.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-11-01 00:00:00.000000000 Z
14
+ date: 2017-11-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -273,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  version: 1.3.6
274
274
  requirements: []
275
275
  rubyforge_project:
276
- rubygems_version: 2.6.13
276
+ rubygems_version: 2.6.8
277
277
  signing_key:
278
278
  specification_version: 4
279
279
  summary: Support to help you develop Zendesk Apps.