githuh 0.3.0 → 0.4.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: b85ccd845fbf4f02072b566abd362adc5656eff6746c092ee1591011c69da0ab
4
- data.tar.gz: 7becd01e22f79e9a6c79dcb9292f5003d48a4fc57596c9ace415d1bff44f8e6a
3
+ metadata.gz: 5be0fa7f06e1d9ed6a7b203eb14841bc8b1db665c83fe84cf4822719c4acea37
4
+ data.tar.gz: '06938db523d0837c4de403f2b3720cb624576dacaa905a2e416c6423a239f0a5'
5
5
  SHA512:
6
- metadata.gz: d425dec858b7587d373b30a8c1dbdeddcdfda625230e32a0cc49ec9d4a28574c164d2330a01ff77c69f5bb57c164aa7c3b6cedfb37e27506dce28910eb176442
7
- data.tar.gz: dba51e9fa2685db0978cdb051801ec573f97fd43f740c28fea5250afba8b7e121e265d3f962ca5466a4138eb43344bd81c99558f5a7f7c7859323d2c7f916c84
6
+ metadata.gz: 66e5a49df88c46b9a17c91bae2280281eb046e32768b17666dedd07d770b32a7673bd50da23474977142810786080a649eacda7dc3cba27826170d16a321de46
7
+ data.tar.gz: '07319b21a6dd6c2e3118d46aa4c77db37ed9b6e9be75572427de3b896bde6b646ab3aff4fe22c191a4c7e5be461f7df9583330d2bdb78c18cc92c64e73bc228f'
data/.envrc CHANGED
@@ -2,3 +2,7 @@
2
2
  export PATH=$(pwd)/exe:${PATH}
3
3
  [[ -f .envrc.local ]] && source .envrc.local
4
4
 
5
+ [[ -f .env ]] && {
6
+ eval "$(cat .env | sed 's/^/export /g; /^$/d')"
7
+ }
8
+
@@ -1,25 +1,12 @@
1
- name: Ruby
1
+ name: RSpec
2
2
 
3
- on:
4
- push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
3
+ on: [push, pull_request]
8
4
 
9
5
  jobs:
10
- build:
11
-
6
+ test:
12
7
  runs-on: ubuntu-latest
13
-
14
8
  steps:
15
- - uses: actions/checkout@v2
16
- - name: Set up Ruby 2.6
17
- uses: actions/setup-ruby@v1
18
- with:
19
- ruby-version: 2.6.x
20
- - name: Run Tests
21
- run: |
22
- gem install bundler
23
- bundle install --jobs 4 --retry 3
24
- RUBYOPT=-W0 bundle exec rspec
25
- RUBYOPT=-W0 bundle exec rubocop
9
+ - uses: actions/checkout@v6
10
+ - uses: ruby/setup-ruby@v1
11
+ - run: bundle install -j 4
12
+ - run: bundle exec rspec --format documentation
data/.gitignore CHANGED
@@ -21,7 +21,9 @@ pkg
21
21
 
22
22
  ## PROJECT::SPECIFIC
23
23
  .yardoc
24
- .ruby-version
25
24
  *.csv
26
25
  .envrc.local
26
+ .env
27
27
  tmp/**
28
+ /.rubymate
29
+ /doc
data/.rubocop.yml CHANGED
@@ -2,11 +2,14 @@ inherit_from:
2
2
  - .rubocop_todo.yml
3
3
  - .relaxed-rubocop-2.4.yml
4
4
 
5
-
5
+ plugins:
6
+ - rubocop-rake
7
+ - rubocop-rspec
6
8
 
7
9
  AllCops:
8
- TargetRubyVersion: 2.6
10
+ TargetRubyVersion: 4
9
11
  UseCache: true
12
+ NewCops: enable
10
13
  DefaultFormatter: progress
11
14
  DisplayStyleGuide: true
12
15
  DisplayCopNames: true
data/.rubocop_todo.yml CHANGED
@@ -1,99 +1,93 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-09-11 02:48:55 UTC using RuboCop version 0.90.0.
3
+ # on 2026-04-21 01:47:48 UTC using RuboCop version 1.86.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 1
10
- # Configuration parameters: Include.
11
- # Include: **/*.gemspec
12
- Gemspec/RequiredRubyVersion:
9
+ # Offense count: 2
10
+ Lint/UselessConstantScoping:
13
11
  Exclude:
14
- - 'githuh.gemspec'
15
-
16
- # Offense count: 6
17
- # Cop supports --auto-correct.
18
- # Configuration parameters: IndentOneStep, IndentationWidth.
19
- # SupportedStyles: case, end
20
- Layout/CaseIndentation:
21
- EnforcedStyle: end
12
+ - 'spec/support/coverage_badge.rb'
22
13
 
23
- # Offense count: 1
24
- # Cop supports --auto-correct.
25
- Layout/ElseAlignment:
14
+ # Offense count: 8
15
+ RSpec/AnyInstance:
26
16
  Exclude:
27
- - 'lib/githuh/cli/commands/issue/export.rb'
17
+ - 'spec/githuh/cli/launcher_spec.rb'
18
+ - 'spec/support/aruba_helper.rb'
28
19
 
29
- # Offense count: 3
30
- # Cop supports --auto-correct.
31
- # Configuration parameters: EnforcedStyleAlignWith, Severity.
32
- # SupportedStylesAlignWith: keyword, variable, start_of_line
33
- Layout/EndAlignment:
20
+ # Offense count: 12
21
+ # Configuration parameters: Prefixes, AllowedPatterns.
22
+ # Prefixes: when, with, without
23
+ RSpec/ContextWording:
34
24
  Exclude:
35
- - 'lib/githuh/cli/commands/issue/export.rb'
36
- - 'lib/githuh/cli/commands/repo/list.rb'
25
+ - 'spec/githuh/cli/commands/export_spec.rb'
26
+ - 'spec/githuh/cli/commands/help_spec.rb'
27
+ - 'spec/githuh/cli/commands/info_spec.rb'
28
+ - 'spec/githuh/cli/commands/list_spec.rb'
29
+ - 'spec/githuh/cli/commands/version_spec.rb'
30
+ - 'spec/support/aruba_helper.rb'
37
31
 
38
- # Offense count: 1
39
- # Cop supports --auto-correct.
40
- # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
41
- # SupportedHashRocketStyles: key, separator, table
42
- # SupportedColonStyles: key, separator, table
43
- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
44
- Layout/HashAlignment:
45
- Exclude:
46
- - 'lib/githuh/cli/commands/issue/export.rb'
32
+ # Offense count: 2
33
+ # Configuration parameters: CountAsOne.
34
+ RSpec/ExampleLength:
35
+ Max: 6
47
36
 
48
- # Offense count: 1
49
- # Cop supports --auto-correct.
50
- # Configuration parameters: Width, IgnoredPatterns.
51
- Layout/IndentationWidth:
37
+ # Offense count: 8
38
+ RSpec/MultipleExpectations:
39
+ Max: 5
40
+
41
+ # Offense count: 4
42
+ # Configuration parameters: AllowSubject.
43
+ RSpec/MultipleMemoizedHelpers:
44
+ Max: 7
45
+
46
+ # Offense count: 2
47
+ # This cop supports unsafe autocorrection (--autocorrect-all).
48
+ RSpec/Output:
52
49
  Exclude:
53
- - 'lib/githuh/cli/commands/issue/export.rb'
50
+ - 'spec/support/run_helper.rb'
54
51
 
55
- # Offense count: 1
56
- # Cop supports --auto-correct.
57
- # Configuration parameters: EnforcedStyle.
58
- # SupportedStyles: final_newline, final_blank_line
59
- Layout/TrailingEmptyLines:
52
+ # Offense count: 3
53
+ # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
54
+ # SupportedInflectors: default, active_support
55
+ RSpec/SpecFilePathFormat:
60
56
  Exclude:
61
- - 'Gemfile'
57
+ - '**/spec/routing/**/*'
58
+ - 'spec/githuh/cli/commands/export_spec.rb'
59
+ - 'spec/githuh/cli/commands/info_spec.rb'
60
+ - 'spec/githuh/cli/commands/list_spec.rb'
62
61
 
63
- # Offense count: 1
64
- # Cop supports --auto-correct.
65
- Lint/NonDeterministicRequireOrder:
62
+ # Offense count: 4
63
+ RSpec/SubjectStub:
66
64
  Exclude:
67
- - 'spec/spec_helper.rb'
65
+ - 'spec/githuh/cli/commands/list_spec.rb'
66
+ - 'spec/githuh/llm_spec.rb'
68
67
 
69
- # Offense count: 1
70
- # Configuration parameters: AllowedMethods.
71
- # AllowedMethods: present?, blank?, presence, try, try!
72
- Lint/SafeNavigationChain:
68
+ # Offense count: 5
69
+ # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
70
+ RSpec/VerifiedDoubles:
73
71
  Exclude:
74
- - 'lib/githuh/cli/commands/repo/list.rb'
72
+ - 'spec/githuh/cli/commands/export_spec.rb'
73
+ - 'spec/githuh/cli/commands/list_spec.rb'
74
+ - 'spec/support/aruba_helper.rb'
75
75
 
76
- # Offense count: 1
77
- # Cop supports --auto-correct.
78
- Lint/ScriptPermission:
76
+ # Offense count: 2
77
+ # This cop supports safe autocorrection (--autocorrect).
78
+ Rake/Desc:
79
79
  Exclude:
80
- - 'lib/githuh/cli/commands/issue/export.rb'
80
+ - 'Rakefile'
81
81
 
82
82
  # Offense count: 1
83
- # Cop supports --auto-correct.
84
- Style/ExpandPathArguments:
83
+ # This cop supports unsafe autocorrection (--autocorrect-all).
84
+ Style/GlobalStdStream:
85
85
  Exclude:
86
- - 'spec/spec_helper.rb'
87
-
88
- # Offense count: 12
89
- # Configuration parameters: .
90
- # SupportedStyles: annotated, template, unannotated
91
- Style/FormatStringToken:
92
- EnforcedStyle: unannotated
86
+ - 'spec/support/coverage_badge.rb'
93
87
 
94
- # Offense count: 2
95
- # Configuration parameters: MinBodyLength.
96
- Style/GuardClause:
88
+ # Offense count: 1
89
+ # This cop supports unsafe autocorrection (--autocorrect-all).
90
+ # Configuration parameters: Mode.
91
+ Style/StringConcatenation:
97
92
  Exclude:
98
- - 'lib/githuh/cli/commands/base.rb'
99
- - 'lib/githuh/cli/launcher.rb'
93
+ - 'spec/support/coverage_badge.rb'
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 4.0.2
data/.secrets.baseline ADDED
@@ -0,0 +1,127 @@
1
+ {
2
+ "version": "1.5.0",
3
+ "plugins_used": [
4
+ {
5
+ "name": "ArtifactoryDetector"
6
+ },
7
+ {
8
+ "name": "AWSKeyDetector"
9
+ },
10
+ {
11
+ "name": "AzureStorageKeyDetector"
12
+ },
13
+ {
14
+ "name": "Base64HighEntropyString",
15
+ "limit": 4.5
16
+ },
17
+ {
18
+ "name": "BasicAuthDetector"
19
+ },
20
+ {
21
+ "name": "CloudantDetector"
22
+ },
23
+ {
24
+ "name": "DiscordBotTokenDetector"
25
+ },
26
+ {
27
+ "name": "GitHubTokenDetector"
28
+ },
29
+ {
30
+ "name": "GitLabTokenDetector"
31
+ },
32
+ {
33
+ "name": "HexHighEntropyString",
34
+ "limit": 3.0
35
+ },
36
+ {
37
+ "name": "IbmCloudIamDetector"
38
+ },
39
+ {
40
+ "name": "IbmCosHmacDetector"
41
+ },
42
+ {
43
+ "name": "IPPublicDetector"
44
+ },
45
+ {
46
+ "name": "JwtTokenDetector"
47
+ },
48
+ {
49
+ "name": "KeywordDetector",
50
+ "keyword_exclude": ""
51
+ },
52
+ {
53
+ "name": "MailchimpDetector"
54
+ },
55
+ {
56
+ "name": "NpmDetector"
57
+ },
58
+ {
59
+ "name": "OpenAIDetector"
60
+ },
61
+ {
62
+ "name": "PrivateKeyDetector"
63
+ },
64
+ {
65
+ "name": "PypiTokenDetector"
66
+ },
67
+ {
68
+ "name": "SendGridDetector"
69
+ },
70
+ {
71
+ "name": "SlackDetector"
72
+ },
73
+ {
74
+ "name": "SoftlayerDetector"
75
+ },
76
+ {
77
+ "name": "SquareOAuthDetector"
78
+ },
79
+ {
80
+ "name": "StripeDetector"
81
+ },
82
+ {
83
+ "name": "TelegramBotTokenDetector"
84
+ },
85
+ {
86
+ "name": "TwilioKeyDetector"
87
+ }
88
+ ],
89
+ "filters_used": [
90
+ {
91
+ "path": "detect_secrets.filters.allowlist.is_line_allowlisted"
92
+ },
93
+ {
94
+ "path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
95
+ "min_level": 2
96
+ },
97
+ {
98
+ "path": "detect_secrets.filters.heuristic.is_indirect_reference"
99
+ },
100
+ {
101
+ "path": "detect_secrets.filters.heuristic.is_likely_id_string"
102
+ },
103
+ {
104
+ "path": "detect_secrets.filters.heuristic.is_lock_file"
105
+ },
106
+ {
107
+ "path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
108
+ },
109
+ {
110
+ "path": "detect_secrets.filters.heuristic.is_potential_uuid"
111
+ },
112
+ {
113
+ "path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
114
+ },
115
+ {
116
+ "path": "detect_secrets.filters.heuristic.is_sequential_string"
117
+ },
118
+ {
119
+ "path": "detect_secrets.filters.heuristic.is_swagger_file"
120
+ },
121
+ {
122
+ "path": "detect_secrets.filters.heuristic.is_templated_secret"
123
+ }
124
+ ],
125
+ "results": {},
126
+ "generated_at": "2026-04-13T21:29:03Z"
127
+ }
data/CHANGELOG.md ADDED
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased](https://github.com/kigster/githuh/tree/HEAD)
4
+
5
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.3.0...HEAD)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Bump tzinfo from 1.2.7 to 2.0.5 [#3](https://github.com/kigster/githuh/pull/3) ([dependabot[bot]](https://github.com/apps/dependabot))
10
+
11
+ ## [v0.3.0](https://github.com/kigster/githuh/tree/v0.3.0) (2020-09-11)
12
+
13
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.2.1...v0.3.0)
14
+
15
+ **Merged pull requests:**
16
+
17
+ - WIP: label mapping [#2](https://github.com/kigster/githuh/pull/2) ([kigster](https://github.com/kigster))
18
+
19
+ ## [v0.2.1](https://github.com/kigster/githuh/tree/v0.2.1) (2020-09-09)
20
+
21
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.2.0...v0.2.1)
22
+
23
+ **Implemented enhancements:**
24
+
25
+ - Support `issue export` command for Pivotal Tracker CSV [#1](https://github.com/kigster/githuh/pull/1) ([kigster](https://github.com/kigster))
26
+
27
+ ## [v0.2.0](https://github.com/kigster/githuh/tree/v0.2.0) (2020-08-31)
28
+
29
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.1.2...v0.2.0)
30
+
31
+ ## [v0.1.2](https://github.com/kigster/githuh/tree/v0.1.2) (2020-03-18)
32
+
33
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.1.0...v0.1.2)
34
+
35
+ ## [v0.1.0](https://github.com/kigster/githuh/tree/v0.1.0) (2020-03-12)
36
+
37
+ [Full Changelog](https://github.com/kigster/githuh/compare/c3c88b7d4771bdb4e8909daa19427e36d382dd37...v0.1.0)
38
+
39
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Gemfile CHANGED
@@ -1,6 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
+ gem "aruba"
8
+ gem "asciidoctor"
9
+ gem "awesome_print"
10
+ gem "coverage-badge"
11
+ gem "rake"
12
+ gem "rspec"
13
+ gem "rspec-its"
14
+ gem "rubocop"
15
+ gem "rubocop-rake"
16
+ gem "rubocop-rspec"
17
+ gem "simplecov", "~> 0.22"
18
+ gem "yard"