git-fit 0.5.3 → 0.5.4

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: 7e357e4ed167a5b5cbbb76c2490e5e62ffd4883d6e99dc123d492f83e281e583
4
- data.tar.gz: 94d1327c355f921a120a290f4f8861f7ff4e04e877a30ab0cbc9b8dab2f76e5a
3
+ metadata.gz: b3388f891fdb16dd73df349152885f9a28f074495b3a7ef2f9932dae6b064cfb
4
+ data.tar.gz: cd9591fdd163b5e842743cbf96e89fb7dfb0b86b4a3b19aafd08b61447f4b34c
5
5
  SHA512:
6
- metadata.gz: 6626c0c270e88df95cda6c74b815fbe97c5813b687b74e9a9631fe8c98245b935d75c29076b4298261835bb48b8319d30a6f6f4758afc79d77210f86082d8ab4
7
- data.tar.gz: e83614a173412d03c7db1dddeb497d240f37158f301dd1024851b201686ec1926699b6c493a817b5a73a8aecb510a38d247cb1a3cfbdf9938b022612fdf4e889
6
+ metadata.gz: a18773ca91756e251326407cc9e919072925aa0f15ffc6429c05ef45c8bb4012d5ecefbec360308612f0b211b142a7a8e4fa0dbf60783ee38c83202acd4a90a3
7
+ data.tar.gz: 6bd5f44697a43805cef33b210d5d3d97c10e24e030652342167c5ac4c8ccf5c139ddc6db1e6afa2e3fd0e08d238f04eac1b7e33616d37db75c5c1dbccd441958
data/lib/git-fit.rb CHANGED
@@ -64,7 +64,7 @@ require_relative "git_fit/export"
64
64
  require_relative "git_fit/db/cli"
65
65
  require_relative "git_fit/install/actions"
66
66
  require_relative "git_fit/cli/install_cli"
67
- require_relative "git_fit/cli/remote_cli"
67
+ require_relative "git_fit/cli/gh_cli"
68
68
  require_relative "git_fit/cli/export"
69
69
  require_relative "git_fit/cli/import_cli"
70
70
  require_relative "git_fit/cli"
@@ -2,7 +2,7 @@ require "thor"
2
2
  require "open3"
3
3
 
4
4
  module GitFit
5
- module RemoteHelpers
5
+ module GhHelpers
6
6
  def detect_repo(url = nil)
7
7
  url ||= `git remote get-url origin`.chomp
8
8
  url.sub(%r{.*github\.com[:/]}, "").sub(/\.git$/, "")
@@ -16,8 +16,8 @@ module GitFit
16
16
  end
17
17
  end
18
18
 
19
- class RemoteSecretCLI < Thor
20
- include RemoteHelpers
19
+ class GhSecretCLI < Thor
20
+ include GhHelpers
21
21
 
22
22
  class_option :repo, type: :string, desc: "GitHub repo (owner/repo)"
23
23
 
@@ -37,8 +37,8 @@ module GitFit
37
37
  end
38
38
  end
39
39
 
40
- class RemoteConfigCLI < Thor
41
- include RemoteHelpers
40
+ class GhConfigCLI < Thor
41
+ include GhHelpers
42
42
 
43
43
  class_option :repo, type: :string, desc: "GitHub repo (owner/repo)"
44
44
 
@@ -58,11 +58,11 @@ module GitFit
58
58
  end
59
59
  end
60
60
 
61
- class RemoteCLI < Thor
61
+ class GhCLI < Thor
62
62
  desc "secret SUBCOMMAND", "Manage GitHub Secrets"
63
- subcommand "secret", RemoteSecretCLI
63
+ subcommand "secret", GhSecretCLI
64
64
 
65
65
  desc "config SUBCOMMAND", "Manage GitHub Variables"
66
- subcommand "config", RemoteConfigCLI
66
+ subcommand "config", GhConfigCLI
67
67
  end
68
68
  end
data/lib/git_fit/cli.rb CHANGED
@@ -61,8 +61,8 @@ module GitFit
61
61
  say_status :error, "Parse failed: #{e.message}", :red
62
62
  end
63
63
 
64
- desc "remote SUBCOMMAND", "Manage GitHub remote secrets and config"
65
- subcommand "remote", RemoteCLI
64
+ desc "gh SUBCOMMAND", "Manage GitHub secrets and variables"
65
+ subcommand "gh", GhCLI
66
66
 
67
67
  desc "install SUBCOMMAND", "Install project assets (actions)"
68
68
  subcommand "install", InstallCLI
@@ -1,3 +1,3 @@
1
1
  module GitFit
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-fit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lax
@@ -134,9 +134,9 @@ files:
134
134
  - lib/git-fit.rb
135
135
  - lib/git_fit/cli.rb
136
136
  - lib/git_fit/cli/export.rb
137
+ - lib/git_fit/cli/gh_cli.rb
137
138
  - lib/git_fit/cli/import_cli.rb
138
139
  - lib/git_fit/cli/install_cli.rb
139
- - lib/git_fit/cli/remote_cli.rb
140
140
  - lib/git_fit/config.rb
141
141
  - lib/git_fit/config_template.rb
142
142
  - lib/git_fit/db/activity.rb