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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruumba/analyzer.rb +3 -1
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c7ba4f2f438b17471122538d849e61eb25051b6
4
- data.tar.gz: efb4b191828bb4e6369ea8d99336c86f70833957
3
+ metadata.gz: be6f1e823ae1476597baf69c4d6bd5d67f6b43bf
4
+ data.tar.gz: 49ba176dd5c75a2beb4d069e53fcb1a49cf3f59f
5
5
  SHA512:
6
- metadata.gz: 1fdaa76bbf68eeca255cdcaaa5d8f66ba9e5959a35d241026fa63758f1c787015023b43ccb53e954ada3b14ba5a5d5f2b200e1401d9fa427aa5cfc882ef1779d
7
- data.tar.gz: 0c793eb2f6396d70d9cb746e897f8d31a6cbbba808d1d4bb7d601909d9371071b7fcfaa4d826df499cf84bb36a57f76b8678ef89e32b54efe4beb7f7b07d92ed
6
+ metadata.gz: 9253a3f0fa6da199bf0fe1087a594afee4e58cb0f3c6e65b85006fe6dadd1a7a793b6741976cda5ab49e1642c94636d5a3b7a0bf5ef2b71c5b9fd18fb9bca126
7
+ data.tar.gz: bf43ca273d57773bab87ab5b1af263879c21d1d305dddaff24a4a55526c916b7e884201017fe3d8f20eb2934f2dc3090683f6639077476765c922ef62ca55462
@@ -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).map(&:strip).join("\n")
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.0
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.5.1
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: