ruumba 0.1.0 → 0.1.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/lib/ruumba/analyzer.rb +3 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be6f1e823ae1476597baf69c4d6bd5d67f6b43bf
|
4
|
+
data.tar.gz: 49ba176dd5c75a2beb4d069e53fcb1a49cf3f59f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9253a3f0fa6da199bf0fe1087a594afee4e58cb0f3c6e65b85006fe6dadd1a7a793b6741976cda5ab49e1642c94636d5a3b7a0bf5ef2b71c5b9fd18fb9bca126
|
7
|
+
data.tar.gz: bf43ca273d57773bab87ab5b1af263879c21d1d305dddaff24a4a55526c916b7e884201017fe3d8f20eb2934f2dc3090683f6639077476765c922ef62ca55462
|
data/lib/ruumba/analyzer.rb
CHANGED
@@ -32,7 +32,9 @@ module Ruumba
|
|
32
32
|
# @param [String] filename The filename.
|
33
33
|
# @return [String] The extracted Ruby code.
|
34
34
|
def extract(filename)
|
35
|
-
File.read(filename).scan(ERB_REGEX).map(&:last)
|
35
|
+
File.read(filename).scan(ERB_REGEX).map(&:last)
|
36
|
+
.reject { |line| line[0] == '#' }
|
37
|
+
.map(&:strip).join("\n")
|
36
38
|
end
|
37
39
|
|
38
40
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruumba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Weinstein
|
@@ -59,9 +59,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.6.11
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Allows users to lint Ruby code in ERB templates the same way they lint source
|
66
66
|
code (using RuboCop).
|
67
67
|
test_files: []
|
68
|
+
has_rdoc:
|