ruumba 0.1.9 → 0.1.10
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/README.md +3 -0
- data/lib/ruumba/parser.rb +7 -2
- 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: fc25f940621b5d2f205b48a164660f2fc445c38b
|
4
|
+
data.tar.gz: 787c2558ba96d2bcef7b20ef62b6c4cf315215f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc95b256427ae32527bb9a1e08bbe0df50b2e499481d1719d47eda8bbe27e0c4a24e7afaf86dc8a537ba107be64e3794cfaa5f7268c2383f613caa0a221ba46e
|
7
|
+
data.tar.gz: 11c864be6842cbc0a119fee5b1d84bb0fdd6e58b8a0d6696a4be3a834a1761b886ac9a74597f276a485899ba79db271fa3f21121029a21e1925ef56fa5e6bbe9
|
data/README.md
CHANGED
data/lib/ruumba/parser.rb
CHANGED
@@ -65,8 +65,13 @@ module Ruumba
|
|
65
65
|
|
66
66
|
def extract_match(file_text, start_index, end_index)
|
67
67
|
file_text[start_index...end_index].tap do |region|
|
68
|
-
# if
|
69
|
-
|
68
|
+
# if there is a ruby comment inside, replace the beginning of each line
|
69
|
+
# with the '#' so we end up with valid ruby
|
70
|
+
|
71
|
+
if region[0] == '#'
|
72
|
+
region.gsub!(/^ /, '#')
|
73
|
+
region.gsub!(/^(?!#)/, '#')
|
74
|
+
end
|
70
75
|
end
|
71
76
|
end
|
72
77
|
end
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Weinstein
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2019-05-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rubocop
|