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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/lib/ruumba/parser.rb +7 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a949f454dda6d68014119e30527eb824900dbff
4
- data.tar.gz: aa63b8c9ba731414b631677867317da821cc0697
3
+ metadata.gz: fc25f940621b5d2f205b48a164660f2fc445c38b
4
+ data.tar.gz: 787c2558ba96d2bcef7b20ef62b6c4cf315215f5
5
5
  SHA512:
6
- metadata.gz: 8fb60b02318709d110ff0084f8faec5bb3e2c516e9b539066f752ca5adadf2632ee4315ab775cd2bab1b7977fff3f4e0ba2bea385482f6e2db7a19cc85dce8a3
7
- data.tar.gz: 80f78791ab4b9033b10373e8d95ad9591e5386ab7a68e447c1fbf9b5f4a58f49b4a2ab49e63b1772de9e0e237d1f1deaf1f24bebd3d4f91337ddb01cfdc9c4f5
6
+ metadata.gz: bc95b256427ae32527bb9a1e08bbe0df50b2e499481d1719d47eda8bbe27e0c4a24e7afaf86dc8a537ba107be64e3794cfaa5f7268c2383f613caa0a221ba46e
7
+ data.tar.gz: 11c864be6842cbc0a119fee5b1d84bb0fdd6e58b8a0d6696a4be3a834a1761b886ac9a74597f276a485899ba79db271fa3f21121029a21e1925ef56fa5e6bbe9
data/README.md CHANGED
@@ -88,6 +88,9 @@ front of your Ruumba config:
88
88
  inherit_from: .rubocop.yml
89
89
  ```
90
90
 
91
+ ### Editor integrations
92
+
93
+ * [Atom plugin](https://atom.io/packages/linter-ruumba)
91
94
 
92
95
  ## Contributing
93
96
  1. Branch (`git checkout -b fancy-new-feature`)
@@ -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 this is a ruby comment inside, replace the whole match with spaces
69
- region.gsub!(/[^\r\n]/, ' ') if region[0] == '#'
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.9
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: 2018-11-09 00:00:00.000000000 Z
14
+ date: 2019-05-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rubocop