tiendapp_validator 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: e0b30ee184af212d85efcad2243b15ca84225d87
4
- data.tar.gz: 6256d3b469861af24a00af9b11c1573ea63f0821
3
+ metadata.gz: 0335ad02bf9cef037e1408bfbc5bfa7ac9c49f04
4
+ data.tar.gz: 61376c5fa00b4572b311a952be879fa7f50657af
5
5
  SHA512:
6
- metadata.gz: d826a2239f56722f13aa13ad6569dacf57735c2ac5105baa8fe5726e1fa146e4e457c403d113b9afb62626081996957a0958b16df9e368d513915397cc05ce58
7
- data.tar.gz: 54f281e7ad71be5ca384892f8dbf407d21a2a0769cc3eb7f58b830ccabe84d751354d59f5163bac8b21ef68505d74fe9cd5d5a0a719a771d92fd92bb42499ce1
6
+ metadata.gz: ecdab7417e51d580a16f22ab850867335b319f6d7b868de6eb89be482ddbc57bb3e144d3c32f538d67fc305b64007fcb59a65c6a9e075824fd1e294234f0a853
7
+ data.tar.gz: c121450bcb0e773c9a9ce982a0c76575b776cc3b756c945a975c7601510a5a047c9dcf94e5f05b210c6b9e7188755a3aaffb667c0fdabc71cab9c3baa7275821
@@ -50,9 +50,7 @@ module TiendappValidator
50
50
  Find.find(root_path) do |p|
51
51
  next unless p.include? '.'
52
52
  next if permit_extension? p
53
- puts p
54
- puts get_format p
55
- return response 'ERROR', 'not support extension: ' + p, false
53
+ return response 'ERROR', 'not support extension: ' + p.split(root_path)[1], false
56
54
  end
57
55
  response 'OK', 'all format support', true
58
56
  end
@@ -54,7 +54,7 @@ module TiendappValidator
54
54
  file_paths = get_files root_path, 'liquid'
55
55
  file_paths.each do |liquid|
56
56
  next if Liquid::Template.parse(get_content(liquid), error_mode: :strict)
57
- return response 'error', 'syntax error: ' + liquid, false
57
+ return response 'error', 'syntax error: ' + liquid.split(root_path)[0], false
58
58
  end
59
59
  response 'OK', 'liquid files have correct syntax', true
60
60
  end
@@ -1,3 +1,3 @@
1
1
  module TiendappValidator
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiendapp_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nahif
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-24 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid
@@ -156,6 +156,7 @@ files:
156
156
  - public/store_templates/public/widgets/_tiendapp_footer.liquid
157
157
  - tiendapp_validator-0.1.0.gem
158
158
  - tiendapp_validator-0.1.1.gem
159
+ - tiendapp_validator-0.1.2.gem
159
160
  - tiendapp_validator-1.0.0.gem
160
161
  - tiendapp_validator.gemspec
161
162
  homepage: http://www.tiendapp.cl