pronto-luacheck 0.1.0 → 1.0.0

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: f557b842b04ee546cda9616268baa85ae162477d
4
- data.tar.gz: f59e7e134448ed7f1aaa8b7ba8844044feabcfaa
3
+ metadata.gz: b6786ba22861024a777ee0af5612d42ea80bbff5
4
+ data.tar.gz: 85c0a0f0df8bcbb4d5c23088d63a65c0b0eceffe
5
5
  SHA512:
6
- metadata.gz: 9f87c41dc6e54b1ea2588fd9ef8b9d293811c586d83f627ace51d6fc881724bd5e61556ef7ff500c88b2843b63996ba8a8ddad27e34d28b853198862c0baaeb4
7
- data.tar.gz: 6707bc5e670317684f06029947fb538bbf9cb13a1122f8d54e3033f24f374daca2e031d033f23f246dd49e3a0a52b1eb093c489053818c59a739c7636572ccf9
6
+ metadata.gz: 10cdb2a5403801ef0a4c2c707eb85c5f62b3d7c0ae9a82c4a0661051b1c2ec7a589e45aba4a96ed4968ffe87f746354e297944c6c7debe2f864be32a629b6ec1
7
+ data.tar.gz: 2260ae44b23c9ddcb4524f5da4a4ba9cafde2576c9c27b35423f89d8cc4b91d39cfedc391d2bde6625603eb830d414f3d81aad1884a5a487a669f2e6879b47f9
@@ -3,3 +3,9 @@ Style/Documentation:
3
3
 
4
4
  Metrics/LineLength:
5
5
  Max: 120
6
+
7
+ Metrics/MethodLength:
8
+ Max: 20
9
+
10
+ Metrics/AbcSize:
11
+ Max: 25
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module Luacheck
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '1.0.0'.freeze
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  require 'open3'
2
2
  require 'rexml/document'
3
+ require 'shellwords'
3
4
 
4
5
  module Pronto
5
6
  module Luacheck
@@ -26,8 +27,8 @@ module Pronto
26
27
  next if testcase.elements.size != 1
27
28
 
28
29
  failure = testcase.elements.first
29
- md = failure.attributes['message'].
30
- match(/\A#{Regexp.escape(file)}:(?<line>\d+):(?<column>\d+):\s+(?<message>.*)\z/)
30
+ md = failure.attributes['message']
31
+ .match(/\A#{Regexp.escape(file)}:(?<line>\d+):(?<column>\d+):\s+(?<message>.*)\z/)
31
32
  next unless md
32
33
 
33
34
  result << {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-luacheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seiichi KONDO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-15 00:00:00.000000000 Z
11
+ date: 2016-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.2.5
167
+ rubygems_version: 2.2.2
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Pronto runner for Luacheck