feature_map 1.3.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: 2884ba23322300d08303fe36c12905f55b5e1c09ef9448be9e1a8d093bb5f980
4
- data.tar.gz: bfeaaede286478020203d1442be552db58a00a05668bc8aeca5a8e4555d11c16
3
+ metadata.gz: 8a0dcdb071ddc3f13c6b54a523bcc537f863b257acf9a11df10efff8e7f5c6fe
4
+ data.tar.gz: 6267a5894214c5a5e09c318e09a2e7e38be8db2ff57e3b2f921a122e0bb2efaa
5
5
  SHA512:
6
- metadata.gz: b16a793030fed72ee5ded687166df231a60d1c602ed543201dc84b00d20a48c0f5d31d37b0d31d97356e47f386742f9499330acae7950dd407a1a77b30b9f6b8
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.3.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beyond Finance
@@ -23,6 +23,20 @@ dependencies:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
25
  version: '1.34'
26
+ - !ruby/object:Gem::Dependency
27
+ name: csv
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.3'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '3.3'
26
40
  - !ruby/object:Gem::Dependency
27
41
  name: faraday
28
42
  requirement: !ruby/object:Gem::Requirement
@@ -107,20 +121,6 @@ dependencies:
107
121
  - - "~>"
108
122
  - !ruby/object:Gem::Version
109
123
  version: '1.9'
110
- - !ruby/object:Gem::Dependency
111
- name: github-pages
112
- requirement: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: '232'
117
- type: :development
118
- prerelease: false
119
- version_requirements: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '232'
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: railties
126
126
  requirement: !ruby/object:Gem::Requirement
@@ -267,14 +267,14 @@ 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
  - - ">="
274
274
  - !ruby/object:Gem::Version
275
275
  version: '0'
276
276
  requirements: []
277
- rubygems_version: 3.6.9
277
+ rubygems_version: 4.0.20
278
278
  specification_version: 4
279
279
  summary: A gem to help identify and manage features within large Ruby and Rails applications
280
280
  test_files: []