todo_agent 0.1.0 → 0.1.1

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: 72f7bd4257ca7cc18ae0f92b4f1b1c650b358e590d24a830f602a73288e87a12
4
- data.tar.gz: 369f1fa42f4dfa7dcff6a0cf1179d4cdc8ef9deb751af3f56132bd2a1ca68eb8
3
+ metadata.gz: 1f06b75e7c7eff9b14267f20d3f2bb6c2fa066a6307c17ebfd795a6f10bc0f7e
4
+ data.tar.gz: f8c8f8a9242a5716026476a4b547ef3ead29835f863ad2531116072cb24fcb99
5
5
  SHA512:
6
- metadata.gz: 680317b406eda4e555e80200fa46693d5829a56718e5a8542311a7db74ab93febcf3c7a6af8d02132db356af58e78bf1490d16ab9c906d5a3857335ce8fda734
7
- data.tar.gz: ee93b41d24e470176fe86cb2338e5d3bf86868a7186474c69c36cad4a33153aaeff144d1cbd8a98bcf3cf3ff89e8a0efff77af89080a005c998b4e9d461926cf
6
+ metadata.gz: f833add3700dd7fd2e769313b59dfa27c3f51a36021ee7a1ce424647bab472ade2f43f09f67fa0a53fec46f4fccd47d1517bf9425d906f1de65e8ccd6d925070
7
+ data.tar.gz: bdc004473a275ccc0b326584817b2cd6d5a894f26b8691f45bbe81a69336b6b294218aa55b1fbdf8976c0323da3f689b1ce0098cdb1148303a5b2f3aa6d44416
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: story-branch
@@ -0,0 +1,13 @@
1
+ name: StandardRB
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v1
10
+ - name: StandardRB Linter
11
+ uses: andrewmcodes/standardrb-action@v1.0.0
12
+ env:
13
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,19 @@
1
+ name: CI
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Checkout
10
+ uses: actions/checkout@v3
11
+
12
+ - name: Setup Ruby
13
+ uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: 2.7
16
+ bundler-cache: true
17
+
18
+ - name: Run tests
19
+ run: bundle exec rake test
data/.story_branch.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  tracker: github
3
3
  project_id:
4
- - story-branch/todo-tracker
4
+ - story-branch/todo_agent
5
5
  issue_placement: beginning
data/Gemfile CHANGED
@@ -4,8 +4,3 @@ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in todo_agent.gemspec
6
6
  gemspec
7
-
8
- gem "byebug"
9
- gem "rake", "~> 12.0"
10
- gem "rspec", "~> 3.0"
11
- gem "rubocop"
data/Gemfile.lock CHANGED
@@ -1,56 +1,57 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- todo_agent (0.1.0)
4
+ todo_agent (0.1.1)
5
+ thor (~> 1.2)
5
6
 
6
7
  GEM
7
8
  remote: https://rubygems.org/
8
9
  specs:
9
- ast (2.4.1)
10
- byebug (11.1.3)
11
- diff-lcs (1.4.4)
12
- parallel (1.19.2)
13
- parser (2.7.1.4)
10
+ ansi (1.5.0)
11
+ ast (2.4.2)
12
+ builder (3.2.4)
13
+ json (2.6.2)
14
+ minitest (5.16.2)
15
+ minitest-reporters (1.5.0)
16
+ ansi
17
+ builder
18
+ minitest (>= 5.0)
19
+ ruby-progressbar
20
+ parallel (1.22.1)
21
+ parser (3.1.2.1)
14
22
  ast (~> 2.4.1)
15
- rainbow (3.0.0)
16
- rake (12.3.3)
17
- regexp_parser (1.7.1)
18
- rexml (3.2.4)
19
- rspec (3.9.0)
20
- rspec-core (~> 3.9.0)
21
- rspec-expectations (~> 3.9.0)
22
- rspec-mocks (~> 3.9.0)
23
- rspec-core (3.9.2)
24
- rspec-support (~> 3.9.3)
25
- rspec-expectations (3.9.2)
26
- diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.9.0)
28
- rspec-mocks (3.9.1)
29
- diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.9.0)
31
- rspec-support (3.9.3)
32
- rubocop (0.88.0)
23
+ rainbow (3.1.1)
24
+ regexp_parser (2.5.0)
25
+ rexml (3.2.5)
26
+ rubocop (1.33.0)
27
+ json (~> 2.3)
33
28
  parallel (~> 1.10)
34
- parser (>= 2.7.1.1)
29
+ parser (>= 3.1.0.0)
35
30
  rainbow (>= 2.2.2, < 4.0)
36
- regexp_parser (>= 1.7)
37
- rexml
38
- rubocop-ast (>= 0.1.0, < 1.0)
31
+ regexp_parser (>= 1.8, < 3.0)
32
+ rexml (>= 3.2.5, < 4.0)
33
+ rubocop-ast (>= 1.19.1, < 2.0)
39
34
  ruby-progressbar (~> 1.7)
40
- unicode-display_width (>= 1.4.0, < 2.0)
41
- rubocop-ast (0.1.0)
42
- parser (>= 2.7.0.1)
43
- ruby-progressbar (1.10.1)
44
- unicode-display_width (1.7.0)
35
+ unicode-display_width (>= 1.4.0, < 3.0)
36
+ rubocop-ast (1.21.0)
37
+ parser (>= 3.1.1.0)
38
+ rubocop-performance (1.14.3)
39
+ rubocop (>= 1.7.0, < 2.0)
40
+ rubocop-ast (>= 0.4.0)
41
+ ruby-progressbar (1.11.0)
42
+ standard (1.15.0)
43
+ rubocop (= 1.33.0)
44
+ rubocop-performance (= 1.14.3)
45
+ thor (1.2.1)
46
+ unicode-display_width (2.2.0)
45
47
 
46
48
  PLATFORMS
47
49
  ruby
48
50
 
49
51
  DEPENDENCIES
50
- byebug
51
- rake (~> 12.0)
52
- rspec (~> 3.0)
53
- rubocop
52
+ minitest (~> 5.16)
53
+ minitest-reporters (~> 1.5)
54
+ standard (~> 1.15)
54
55
  todo_agent!
55
56
 
56
57
  BUNDLED WITH
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'forwardable'
3
+ require "forwardable"
4
4
 
5
5
  module TodoAgent
6
6
  class Command
@@ -9,7 +9,7 @@ module TodoAgent
9
9
  class Ruby
10
10
  def self.parse(file)
11
11
  regex_str = TodoAgent::Parsers::RegexBuilder.regex
12
- regexp = Regexp.new("^\\s*##{regex_str}$", "mig")
12
+ regexp = Regexp.new("^\\s*##{regex_str}$", Regexp::MULTILINE | Regexp::IGNORECASE)
13
13
  comments = []
14
14
 
15
15
  # TODO: This logic belongs out of the specific ruby parser
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TodoAgent
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/todo_agent.gemspec CHANGED
@@ -10,15 +10,17 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = "Transform tags into tickets"
12
12
  spec.description = "Search for specific keywords in the codebase and create tickets in the tracker"
13
- spec.homepage = "https://github.com/story-branch/todo-tracker"
13
+ spec.homepage = "https://github.com/story-branch/todo_agent"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
16
16
 
17
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
18
-
19
- spec.metadata["homepage_uri"] = spec.homepage
20
- spec.metadata["source_code_uri"] = "https://github.com/story-branch/todo-tracker"
21
- spec.metadata["changelog_uri"] = "https://github.com/story-branch/todo-tracker"
17
+ spec.metadata = {
18
+ "bug_tracker_uri" => "https://github.com/story-branch/todo_agent/issues",
19
+ "changelog_uri" => "https://github.com/story-branch/todo_agent/blob/master/Changelog.md",
20
+ "documentation_uri" => "https://github.com/story-branch/todo_agent/blob/master/README.md",
21
+ "source_code_uri" => "https://github.com/story-branch/todo_agent",
22
+ "homepage_uri" => spec.homepage
23
+ }
22
24
 
23
25
  # Specify which files should be added to the gem when it is released.
24
26
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -28,4 +30,10 @@ Gem::Specification.new do |spec|
28
30
  spec.bindir = "exe"
29
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
32
  spec.require_paths = ["lib"]
33
+
34
+ spec.add_dependency "thor", "~> 1.2"
35
+
36
+ spec.add_development_dependency "minitest", "~> 5.16"
37
+ spec.add_development_dependency "minitest-reporters", "~> 1.5"
38
+ spec.add_development_dependency "standard", "~> 1.15"
31
39
  end
metadata CHANGED
@@ -1,15 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: todo_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rui Baltazar
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-25 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest-reporters
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: standard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.15'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.15'
13
69
  description: Search for specific keywords in the codebase and create tickets in the
14
70
  tracker
15
71
  email:
@@ -19,9 +75,11 @@ executables:
19
75
  extensions: []
20
76
  extra_rdoc_files: []
21
77
  files:
78
+ - ".github/FUNDING.yml"
79
+ - ".github/workflows/standard.rb"
80
+ - ".github/workflows/tests.yml"
22
81
  - ".gitignore"
23
82
  - ".rspec"
24
- - ".rubocop.yml"
25
83
  - ".story_branch.yml"
26
84
  - ".travis.yml"
27
85
  - CODE_OF_CONDUCT.md
@@ -48,14 +106,16 @@ files:
48
106
  - lib/todo_agent/templates/analyze/.gitkeep
49
107
  - lib/todo_agent/version.rb
50
108
  - todo_agent.gemspec
51
- homepage: https://github.com/story-branch/todo-tracker
109
+ homepage: https://github.com/story-branch/todo_agent
52
110
  licenses:
53
111
  - MIT
54
112
  metadata:
55
- homepage_uri: https://github.com/story-branch/todo-tracker
56
- source_code_uri: https://github.com/story-branch/todo-tracker
57
- changelog_uri: https://github.com/story-branch/todo-tracker
58
- post_install_message:
113
+ bug_tracker_uri: https://github.com/story-branch/todo_agent/issues
114
+ changelog_uri: https://github.com/story-branch/todo_agent/blob/master/Changelog.md
115
+ documentation_uri: https://github.com/story-branch/todo_agent/blob/master/README.md
116
+ source_code_uri: https://github.com/story-branch/todo_agent
117
+ homepage_uri: https://github.com/story-branch/todo_agent
118
+ post_install_message:
59
119
  rdoc_options: []
60
120
  require_paths:
61
121
  - lib
@@ -70,8 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
130
  - !ruby/object:Gem::Version
71
131
  version: '0'
72
132
  requirements: []
73
- rubygems_version: 3.1.4
74
- signing_key:
133
+ rubygems_version: 3.1.6
134
+ signing_key:
75
135
  specification_version: 4
76
136
  summary: Transform tags into tickets
77
137
  test_files: []
data/.rubocop.yml DELETED
@@ -1,49 +0,0 @@
1
- Style/StringLiterals:
2
- EnforcedStyle: double_quotes
3
-
4
- Layout/EmptyLinesAroundAttributeAccessor:
5
- Enabled: true
6
- Layout/SpaceAroundMethodCallOperator:
7
- Enabled: true
8
- Lint/DeprecatedOpenSSLConstant:
9
- Enabled: true
10
- Lint/DuplicateElsifCondition:
11
- Enabled: true
12
- Lint/MixedRegexpCaptureTypes:
13
- Enabled: true
14
- Lint/RaiseException:
15
- Enabled: true
16
- Lint/StructNewOverride:
17
- Enabled: true
18
- Style/AccessorGrouping:
19
- Enabled: true
20
- Style/ArrayCoercion:
21
- Enabled: true
22
- Style/BisectedAttrAccessor:
23
- Enabled: true
24
- Style/CaseLikeIf:
25
- Enabled: true
26
- Style/ExponentialNotation:
27
- Enabled: true
28
- Style/HashAsLastArrayItem:
29
- Enabled: true
30
- Style/HashEachMethods:
31
- Enabled: true
32
- Style/HashLikeCase:
33
- Enabled: true
34
- Style/HashTransformKeys:
35
- Enabled: true
36
- Style/HashTransformValues:
37
- Enabled: true
38
- Style/RedundantAssignment:
39
- Enabled: true
40
- Style/RedundantFetchBlock:
41
- Enabled: true
42
- Style/RedundantFileExtensionInRequire:
43
- Enabled: true
44
- Style/RedundantRegexpCharacterClass:
45
- Enabled: true
46
- Style/RedundantRegexpEscape:
47
- Enabled: true
48
- Style/SlicingWithRange:
49
- Enabled: true