roku_builder 4.21.2 → 4.21.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a91edfcf033f846e9d9e1e3f0fc37afe4cfc3c58ec4b2062275dbfd683744fb
|
4
|
+
data.tar.gz: bc90febc52b08f211ef0d48346a4652798a433b2532af98d801d41cf505e2989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a77a6044775302eca3b344497cfe2815d3b550dad7d289c629d04e0c2193bf4d4c6563ec9b28a4158712fdbbef8e354ca48747266499fdd5e9fd6028f3a63a59
|
7
|
+
data.tar.gz: 741fee309f4e65e99757b1ddfb964f39f1a9391b56abd1f42d09507c1255ef040bd8ae990e821edf4b0453870065c11cfa6c99f60c9f48eabcae0a2b53904ab4
|
data/CHANGELOG
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
-
= 4.
|
1
|
+
= 4.21.3 =
|
2
2
|
|
3
|
-
-
|
3
|
+
- Ignore indentation in multi-line xml comments
|
4
|
+
|
5
|
+
= 4.21.2 =
|
6
|
+
|
7
|
+
- Fix bundler load paths for later versions of ruby
|
8
|
+
|
9
|
+
= 4.21.1 =
|
10
|
+
|
11
|
+
- Add indent-ignore and indent-reset comment processing to analyzer
|
12
|
+
|
13
|
+
= 4.21.0 =
|
14
|
+
|
15
|
+
- Add post stage/unstage hooks
|
4
16
|
|
5
17
|
= 4.20.0 =
|
6
18
|
|
@@ -13,11 +13,11 @@ module RokuBuilder
|
|
13
13
|
@ind = 0
|
14
14
|
end
|
15
15
|
|
16
|
-
def check_line(line:, number:)
|
17
|
-
#byebug if number ==
|
16
|
+
def check_line(line:, number:, comment:)
|
17
|
+
#byebug if number == 10 and @path.ends_with?(".brs")
|
18
18
|
set_indentation(line: line)
|
19
19
|
regexp = /^#{@character}{#{@ind}}[^#{@character}]/
|
20
|
-
unless line =~ regexp or line == "\n" or line =~ /\'indent-ignore/
|
20
|
+
unless line =~ regexp or line == "\n" or line =~ /\'indent-ignore/ or comment
|
21
21
|
add_warning(line: number)
|
22
22
|
end
|
23
23
|
@prev_line = line
|
@@ -14,7 +14,6 @@ module RokuBuilder
|
|
14
14
|
in_xml_comment = false
|
15
15
|
indent_inspector = IndentationInspector.new(rules: @indent_config, path: file_path) if @indent_config
|
16
16
|
file.readlines.each_with_index do |line, line_number|
|
17
|
-
indent_inspector.check_line(line: line, number: line_number) if indent_inspector
|
18
17
|
full_line = line.dup
|
19
18
|
line = line.partition("'").first if file_path.end_with?(".brs")
|
20
19
|
if file_path.end_with?(".xml")
|
@@ -28,6 +27,7 @@ module RokuBuilder
|
|
28
27
|
line.gsub!(/<!--.*-->/, "")
|
29
28
|
in_xml_comment = true if line.gsub!(/<!--.*/, "")
|
30
29
|
end
|
30
|
+
indent_inspector.check_line(line: full_line, number: line_number, comment: in_xml_comment) if indent_inspector
|
31
31
|
@inspector_config.each do |line_inspector|
|
32
32
|
line_to_check = line
|
33
33
|
line_to_check = full_line if line_inspector[:include_comments]
|
data/lib/roku_builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roku_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.21.
|
4
|
+
version: 4.21.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- greeneca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -631,8 +631,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
631
631
|
- !ruby/object:Gem::Version
|
632
632
|
version: '0'
|
633
633
|
requirements: []
|
634
|
-
|
635
|
-
rubygems_version: 2.7.9
|
634
|
+
rubygems_version: 3.1.1
|
636
635
|
signing_key:
|
637
636
|
specification_version: 4
|
638
637
|
summary: Build Tool for Roku Apps
|