roku_builder 4.15.0 → 4.15.1
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 +4 -4
- data/CHANGELOG +4 -0
- data/lib/roku_builder/plugins/indentation_inspector.rb +7 -3
- data/lib/roku_builder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55c2178026c6d91f7b7cc02e67ce4056ba47fb06
|
4
|
+
data.tar.gz: a6761d0abb1e9d5337b653a66744ea4450e17b3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 378ae266da3f1de1ad2ede4bc26f3f4f996b0cf5f5531652ddc07cbd8dfe456a44343a57ae79d8f59b366c2368181183a8821de6d41a18b494f90c41f5875721
|
7
|
+
data.tar.gz: 8eb9341d4e3c7dba1cb30d1acd24c70d5421792f51133e306d2004680378536956da705d7927cbe32463bd0a6d4230f44a3f996e81d2b292b48d80deaf5bc5e5
|
data/CHANGELOG
CHANGED
@@ -38,7 +38,9 @@ module RokuBuilder
|
|
38
38
|
end
|
39
39
|
when :brs
|
40
40
|
if @prev_line
|
41
|
-
if @prev_line =~ /
|
41
|
+
if @prev_line =~ /^\'/
|
42
|
+
# Don't change indentation
|
43
|
+
elsif @prev_line =~ /[\{\[\(:]$/
|
42
44
|
@ind += @count
|
43
45
|
elsif @prev_line =~ /^\s*\bfunction\b|^\s*\bsub\b/i
|
44
46
|
@ind += @count
|
@@ -50,11 +52,13 @@ module RokuBuilder
|
|
50
52
|
@ind += @count
|
51
53
|
end
|
52
54
|
end
|
53
|
-
if line =~ /^\
|
55
|
+
if line =~ /^\'/
|
56
|
+
# Don't change indentation
|
57
|
+
elsif line =~ /^\s*[\}\]\)]/
|
54
58
|
@ind -= @count
|
55
59
|
elsif line =~ /^\s*\bfunction\b|^\s*\bsub\b/i
|
56
60
|
@ind -= 0
|
57
|
-
elsif line =~ /^\s*#?end\b|^\s*#?endif\b|^\s*endfor\b|^\s*\bnext\b/i
|
61
|
+
elsif line =~ /^\s*:?\s*#?end\b|^\s*#?endif\b|^\s*endfor\b|^\s*\bnext\b/i
|
58
62
|
@ind -= @count
|
59
63
|
elsif line =~ /^\s*#?else\b|^\s*elseif\b/i
|
60
64
|
@ind -= @count
|
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.15.
|
4
|
+
version: 4.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- greeneca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|