git_helper 2.0.0 → 2.0.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 +4 -4
- data/Gemfile.lock +1 -1
- data/Rakefile +1 -37
- data/bin/git-helper +0 -7
- data/lib/git_helper.rb +3 -5
- data/lib/git_helper/change_remote.rb +0 -3
- data/lib/git_helper/checkout_default.rb +0 -2
- data/lib/git_helper/clean_branches.rb +0 -2
- data/lib/git_helper/code_request.rb +0 -5
- data/lib/git_helper/empty_commit.rb +0 -2
- data/lib/git_helper/forget_local_commits.rb +0 -2
- data/lib/git_helper/gitlab_client.rb +0 -1
- data/lib/git_helper/merge_request.rb +0 -4
- data/lib/git_helper/new_branch.rb +0 -3
- data/lib/git_helper/octokit_client.rb +0 -1
- data/lib/git_helper/pull_request.rb +0 -4
- data/lib/git_helper/version.rb +1 -1
- data/spec/git_helper/change_remote_spec.rb +2 -1
- data/spec/git_helper/checkout_default_spec.rb +2 -1
- data/spec/git_helper/clean_branches_spec.rb +2 -1
- data/spec/git_helper/code_request_spec.rb +2 -1
- data/spec/git_helper/empty_commit_spec.rb +2 -1
- data/spec/git_helper/forget_local_commits_spec.rb +2 -1
- data/spec/git_helper/git_config_reader_spec.rb +2 -1
- data/spec/git_helper/gitlab_client_spec.rb +2 -1
- data/spec/git_helper/highline_cli_spec.rb +2 -1
- data/spec/git_helper/local_code_spec.rb +2 -1
- data/spec/git_helper/merge_request_spec.rb +2 -1
- data/spec/git_helper/new_branch_spec.rb +2 -1
- data/spec/git_helper/octokit_client_spec.rb +2 -1
- data/spec/git_helper/pull_request_spec.rb +2 -1
- data/spec/spec_helper.rb +0 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1e24bf2314c2574a9158042ecf88500c5cd00a6cad451f55bdcc1d35a273b85
|
4
|
+
data.tar.gz: e3506380e78e33599df212c386a3e65abd2436e732dad95e4cbeff2c0fcc7eb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a971a9faca09229a62f28dbdc244eb0913292cc7d2e4d667dae6c5d40b5c53240497f808a48409349faf6d3dbe535e6f4571d28e002509c88251aef8ae23c1d
|
7
|
+
data.tar.gz: a492d9be7914fb1d9d995ae0b721336bfaa8749ffcea90b1c4dca6d9443f03beac7b254aa9347b6260153060e387c293de382900bb01511692f741ecc9a7778c
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -1,37 +1 @@
|
|
1
|
-
|
2
|
-
begin
|
3
|
-
require 'bundler/setup'
|
4
|
-
rescue LoadError
|
5
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'rdoc/task'
|
9
|
-
rescue LoadError
|
10
|
-
require 'rdoc/rdoc'
|
11
|
-
require 'rake/rdoctask'
|
12
|
-
RDoc::Task = Rake::RDocTask
|
13
|
-
end
|
14
|
-
|
15
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
-
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = 'Hubstats'
|
18
|
-
rdoc.options << '--line-numbers'
|
19
|
-
rdoc.rdoc_files.include('README.rdoc')
|
20
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
-
end
|
22
|
-
|
23
|
-
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
24
|
-
load 'rails/tasks/engine.rake'
|
25
|
-
|
26
|
-
Bundler::GemHelper.install_tasks
|
27
|
-
|
28
|
-
require 'rake/testtask'
|
29
|
-
|
30
|
-
Rake::TestTask.new(:test) do |t|
|
31
|
-
t.libs << 'lib'
|
32
|
-
t.libs << 'test'
|
33
|
-
t.pattern = 'test/**/*_test.rb'
|
34
|
-
t.verbose = false
|
35
|
-
end
|
36
|
-
|
37
|
-
task :default => :test
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/git-helper
CHANGED
@@ -22,7 +22,6 @@ arg :new_owner
|
|
22
22
|
desc "Update a repository's remote URLs from an old GitHub owner to a new owner."
|
23
23
|
command 'change-remote' do |c|
|
24
24
|
c.action do |global_options, options, args|
|
25
|
-
require_relative '../lib/git_helper/change_remote.rb'
|
26
25
|
raise ArgumentError, 'You must specify an old owner and a new owner' unless args.count == 2
|
27
26
|
GitHelper::ChangeRemote.new(args[0], args[1]).execute
|
28
27
|
end
|
@@ -31,7 +30,6 @@ end
|
|
31
30
|
desc "Checks out the default branch of a repo based on the local remote branches."
|
32
31
|
command 'checkout-default' do |c|
|
33
32
|
c.action do |global_options, options, args|
|
34
|
-
require_relative '../lib/git_helper/checkout_default.rb'
|
35
33
|
GitHelper::CheckoutDefault.new.execute
|
36
34
|
end
|
37
35
|
end
|
@@ -39,7 +37,6 @@ end
|
|
39
37
|
desc "Clean a repository's git branches."
|
40
38
|
command 'clean-branches' do |c|
|
41
39
|
c.action do |global_options, options, args|
|
42
|
-
require_relative '../lib/git_helper/clean_branches.rb'
|
43
40
|
GitHelper::CleanBranches.new.execute
|
44
41
|
end
|
45
42
|
end
|
@@ -47,7 +44,6 @@ end
|
|
47
44
|
desc "Creates an empty commit with a basic commit message."
|
48
45
|
command 'empty-commit' do |c|
|
49
46
|
c.action do |global_options, options, args|
|
50
|
-
require_relative '../lib/git_helper/empty_commit.rb'
|
51
47
|
GitHelper::EmptyCommit.new.execute
|
52
48
|
end
|
53
49
|
end
|
@@ -55,7 +51,6 @@ end
|
|
55
51
|
desc "Reset your local git commits to origin/HEAD."
|
56
52
|
command 'forget-local-commits' do |c|
|
57
53
|
c.action do |global_options, options, args|
|
58
|
-
require_relative '../lib/git_helper/forget_local_commits.rb'
|
59
54
|
GitHelper::ForgetLocalCommits.new.execute
|
60
55
|
end
|
61
56
|
end
|
@@ -64,7 +59,6 @@ arg :new_branch_name, optional: true
|
|
64
59
|
desc 'Create a new branch for features, bug fixes, or experimentation.'
|
65
60
|
command 'new-branch' do |c|
|
66
61
|
c.action do |global_options, options, args|
|
67
|
-
require_relative '../lib/git_helper/new_branch.rb'
|
68
62
|
GitHelper::NewBranch.new.execute(args[0])
|
69
63
|
end
|
70
64
|
end
|
@@ -75,7 +69,6 @@ command 'code-request' do |c|
|
|
75
69
|
c.switch [:m, :merge], desc: 'Merge an existing pull/merge request'
|
76
70
|
|
77
71
|
c.action do |global_options, options, args|
|
78
|
-
require_relative '../lib/git_helper/code_request.rb'
|
79
72
|
raise ArgumentError, "You must specify an action (either '-m'/'--merge' or '-c'/'--create')" unless options[:create] || options[:merge]
|
80
73
|
|
81
74
|
options = global_options.merge(options)
|
data/lib/git_helper.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require 'octokit'
|
5
|
-
require_relative 'git_helper/version'
|
1
|
+
Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), 'git_helper')) + "/**/*.rb"].each do |file|
|
2
|
+
require_relative file
|
3
|
+
end
|
6
4
|
|
7
5
|
module GitHelper; end
|
data/lib/git_helper/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emma Sax
|
@@ -122,7 +122,8 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '3.9'
|
125
|
-
description: A set of GitHub and GitLab workflow scripts
|
125
|
+
description: A set of GitHub and GitLab workflow scripts to provide a smoother development
|
126
|
+
process for your git projects.
|
126
127
|
email:
|
127
128
|
- emma.sax4@gmail.com
|
128
129
|
executables:
|
@@ -190,8 +191,7 @@ requirements: []
|
|
190
191
|
rubygems_version: 3.1.2
|
191
192
|
signing_key:
|
192
193
|
specification_version: 4
|
193
|
-
summary: A set of GitHub and GitLab workflow scripts
|
194
|
-
process for your git projects.
|
194
|
+
summary: A set of GitHub and GitLab workflow scripts.
|
195
195
|
test_files:
|
196
196
|
- spec/spec_helper.rb
|
197
197
|
- spec/git_helper/octokit_client_spec.rb
|