roku_builder 4.25.4 → 4.25.5
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: 852ae89e38456c17e455675a4901b37914f6109a47202137efecef4e4cb68309
|
4
|
+
data.tar.gz: 95f9cd039b170352a7f7868ec9ff52663e6e22add7dd3bf883a96112ea9680d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14157cf2cfb8268d30f9acee98af461e7b0c500a57bb6ec2e95254e1b7c3859087eb5ed0fd2e57b9ed660aa1c825f1d8623250a6a409c8062a2d77ee8d74f156
|
7
|
+
data.tar.gz: 6e50b5767da2018fd30550766fb681167a1ded341d85b810eae2ba95517080c16df74f46aad1bc5ec37658e3cb35b94e1c7659b1e36292fd1daae7aef17d4415
|
@@ -41,7 +41,7 @@ module RokuBuilder
|
|
41
41
|
@ind = line.index(/[^#{@character}]/)
|
42
42
|
else
|
43
43
|
if @prev_line
|
44
|
-
if @prev_line =~ /^\'/ or @prev_line =~ /\'indent-ignore/
|
44
|
+
if @prev_line =~ /^\s*\'/ or @prev_line =~ /\'indent-ignore/
|
45
45
|
# Don't change indentation
|
46
46
|
elsif @prev_line =~ /[\{\[\(:]$/
|
47
47
|
@ind += @count
|
@@ -61,7 +61,7 @@ module RokuBuilder
|
|
61
61
|
@ind += @count
|
62
62
|
end
|
63
63
|
end
|
64
|
-
if line =~ /^\'/ or line =~ /\'indent-ignore/
|
64
|
+
if line =~ /^\s*\'/ or line =~ /\'indent-ignore/
|
65
65
|
# Don't change indentation
|
66
66
|
elsif line =~ /^\s*[\}\]\)]/
|
67
67
|
@ind -= @count
|
data/lib/roku_builder/version.rb
CHANGED
@@ -41,16 +41,6 @@ module RokuBuilder
|
|
41
41
|
assert_equal Array, warnings.class
|
42
42
|
assert_equal 0, warnings.count
|
43
43
|
end
|
44
|
-
def test_performance_function_return_types
|
45
|
-
warnings = test_file(text: "function test() as String\n? \"test\"\nend function")
|
46
|
-
assert_equal 1, warnings.count
|
47
|
-
assert_match(/function return/, warnings[0][:message])
|
48
|
-
end
|
49
|
-
def test_performance_function_return_types_lowercase
|
50
|
-
warnings = test_file(text: "function test() as string\n? \"test\"\nend function")
|
51
|
-
assert_equal 1, warnings.count
|
52
|
-
assert_match(/function return/, warnings[0][:message])
|
53
|
-
end
|
54
44
|
def test_performance_aa_does_exist
|
55
45
|
warnings = test_file(text: "exists = aa.doesExist(\"test\")")
|
56
46
|
assert_equal 1, warnings.count
|
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.25.
|
4
|
+
version: 4.25.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- greeneca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|