feature_map 1.4.0 → 2.0.0
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: 8a0dcdb071ddc3f13c6b54a523bcc537f863b257acf9a11df10efff8e7f5c6fe
|
|
4
|
+
data.tar.gz: 6267a5894214c5a5e09c318e09a2e7e38be8db2ff57e3b2f921a122e0bb2efaa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8139590d22a89de94fed09f0542b9fd4be48ced297955490c8d042462e47fd41930077ebc4509ef708b1b376725c46f34e584388e7fb579c78c64182fa32c51d
|
|
7
|
+
data.tar.gz: 5d878b6b3ba44784bba640cf7206b5caec0fee43668dffb009a06f0daf460805bad3f0a52f82fa3c21af859af9c7e574f22cb74d71609d5c98bd3d5113d6fbfe
|
|
@@ -23,14 +23,14 @@ module FeatureMap
|
|
|
23
23
|
\s* # Any amount of whitespace, not including newlines
|
|
24
24
|
@feature\s # We find the feature annotation followed by one space
|
|
25
25
|
(?<feature>.*?$) # A named capture grabs the rest as the feature until the line ends
|
|
26
|
-
/x
|
|
26
|
+
/x
|
|
27
27
|
|
|
28
28
|
MULTILINE_ANNOTATION_PATTERN = /
|
|
29
29
|
(?:#{Constants::MULTILINE_COMMENT_START_PATTERNS.join('|')}) # Any comment start
|
|
30
30
|
.*? # Followed by any characters, including newlines, until...
|
|
31
31
|
@feature\s # We find the feature annotation followed by one space
|
|
32
32
|
(?<feature>.*?$) # A named capture grabs the rest as the feature until the line ends
|
|
33
|
-
/xm
|
|
33
|
+
/xm
|
|
34
34
|
|
|
35
35
|
DESCRIPTION = 'Annotations at the top of file'
|
|
36
36
|
|
|
@@ -10,12 +10,12 @@ module FeatureMap
|
|
|
10
10
|
\s* # Any amount of whitespace
|
|
11
11
|
(#{Constants::SINGLE_LINE_COMMENT_PATTERNS.join('|')}) # Any comment start
|
|
12
12
|
.* # And the rest of the line
|
|
13
|
-
/x
|
|
13
|
+
/x
|
|
14
14
|
MULTI_LINE_COMMENT_PATTERN = /
|
|
15
15
|
(#{Constants::MULTILINE_COMMENT_START_PATTERNS.join('|')}) # Multiline comment start
|
|
16
16
|
.*? # Everything in between, but lazily so we stop when we hit...
|
|
17
17
|
(#{Constants::MULTILINE_COMMENT_END_PATTERNS.join('|')}) # ...Multiline comment end
|
|
18
|
-
/xm
|
|
18
|
+
/xm
|
|
19
19
|
|
|
20
20
|
def initialize(file_path)
|
|
21
21
|
@file_path = file_path
|
|
@@ -6,17 +6,17 @@ module FeatureMap
|
|
|
6
6
|
class TodoInspector
|
|
7
7
|
ENTERING_COMMENT = /
|
|
8
8
|
(#{(Constants::SINGLE_LINE_COMMENT_PATTERNS + Constants::MULTILINE_COMMENT_START_PATTERNS).join('|')})
|
|
9
|
-
/x
|
|
9
|
+
/x
|
|
10
10
|
|
|
11
11
|
EXITING_COMMENT = /
|
|
12
12
|
(#{(Constants::SINGLE_LINE_COMMENT_PATTERNS + Constants::MULTILINE_COMMENT_END_PATTERNS).join('|')})
|
|
13
|
-
/x
|
|
13
|
+
/x
|
|
14
14
|
|
|
15
15
|
TODO_PATTERN = /
|
|
16
16
|
TODO:?\s* # TODO with optional colon with whitespace
|
|
17
17
|
(?<content>.*?) # The actual TODO content
|
|
18
18
|
(#{Constants::MULTILINE_COMMENT_END_PATTERNS.join('|')})?$ # ignores comment end patterns
|
|
19
|
-
/xi
|
|
19
|
+
/xi
|
|
20
20
|
|
|
21
21
|
def initialize(file_path)
|
|
22
22
|
@file_path = file_path
|
data/lib/feature_map.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: feature_map
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Beyond Finance
|
|
@@ -267,7 +267,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
267
267
|
requirements:
|
|
268
268
|
- - ">="
|
|
269
269
|
- !ruby/object:Gem::Version
|
|
270
|
-
version: '
|
|
270
|
+
version: '3.3'
|
|
271
271
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
272
272
|
requirements:
|
|
273
273
|
- - ">="
|