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: c12d890f39961726fb7bfbc904b0454c8616984714c8819a3de7e03d8204bc92
4
- data.tar.gz: bfeaaede286478020203d1442be552db58a00a05668bc8aeca5a8e4555d11c16
3
+ metadata.gz: 8a0dcdb071ddc3f13c6b54a523bcc537f863b257acf9a11df10efff8e7f5c6fe
4
+ data.tar.gz: 6267a5894214c5a5e09c318e09a2e7e38be8db2ff57e3b2f921a122e0bb2efaa
5
5
  SHA512:
6
- metadata.gz: 9f63375ae8766875d2c43a9f60692ee15124e4bddf66686375c97784ce79180dab74899553fc649a8b0eb3f9b89ca84a4c10a5752fdf651df7c2bad52970a70f
7
- data.tar.gz: 2e84d7222ed3bf8e8d42e67994c223686ca8fd7e9bdaf8d34966464dea6b47e6323455a3392245deaca3713cdc37b080f40fd279603fd4e8d8b792258e751b8d
6
+ metadata.gz: 8139590d22a89de94fed09f0542b9fd4be48ced297955490c8d042462e47fd41930077ebc4509ef708b1b376725c46f34e584388e7fb579c78c64182fa32c51d
7
+ data.tar.gz: 5d878b6b3ba44784bba640cf7206b5caec0fee43668dffb009a06f0daf460805bad3f0a52f82fa3c21af859af9c7e574f22cb74d71609d5c98bd3d5113d6fbfe
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'yaml'
5
5
  require 'csv'
6
- require 'set'
7
6
  require 'pathname'
8
7
  require 'feature_map/code_features/plugin'
9
8
  require 'feature_map/code_features/plugins/identity'
@@ -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.freeze
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.freeze
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.freeze
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.freeze
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.freeze
9
+ /x
10
10
 
11
11
  EXITING_COMMENT = /
12
12
  (#{(Constants::SINGLE_LINE_COMMENT_PATTERNS + Constants::MULTILINE_COMMENT_END_PATTERNS).join('|')})
13
- /x.freeze
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.freeze
19
+ /xi
20
20
 
21
21
  def initialize(file_path)
22
22
  @file_path = file_path
data/lib/feature_map.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # @feature Core Library
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'set'
5
4
  require 'json'
6
5
  require 'yaml'
7
6
  require 'feature_map/commit'
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: 1.4.0
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: '2.6'
270
+ version: '3.3'
271
271
  required_rubygems_version: !ruby/object:Gem::Requirement
272
272
  requirements:
273
273
  - - ">="