git_helper 1.3.0 → 3.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +17 -13
  3. data/README.md +37 -44
  4. data/Rakefile +1 -37
  5. data/bin/git-helper +10 -28
  6. data/lib/git_helper.rb +3 -5
  7. data/lib/git_helper/change_remote.rb +53 -40
  8. data/lib/git_helper/checkout_default.rb +1 -1
  9. data/lib/git_helper/clean_branches.rb +1 -4
  10. data/lib/git_helper/code_request.rb +95 -0
  11. data/lib/git_helper/empty_commit.rb +1 -1
  12. data/lib/git_helper/forget_local_commits.rb +7 -0
  13. data/lib/git_helper/git_config_reader.rb +1 -1
  14. data/lib/git_helper/gitlab_client.rb +0 -1
  15. data/lib/git_helper/highline_cli.rb +21 -17
  16. data/lib/git_helper/local_code.rb +67 -19
  17. data/lib/git_helper/merge_request.rb +55 -73
  18. data/lib/git_helper/new_branch.rb +2 -13
  19. data/lib/git_helper/octokit_client.rb +0 -1
  20. data/lib/git_helper/pull_request.rb +44 -67
  21. data/lib/git_helper/version.rb +1 -1
  22. data/plugins.zip +0 -0
  23. data/spec/git_helper/change_remote_spec.rb +173 -0
  24. data/spec/git_helper/checkout_default_spec.rb +19 -0
  25. data/spec/git_helper/clean_branches_spec.rb +19 -0
  26. data/spec/git_helper/code_request_spec.rb +259 -0
  27. data/spec/git_helper/empty_commit_spec.rb +19 -0
  28. data/spec/git_helper/forget_local_commits_spec.rb +19 -0
  29. data/spec/git_helper/git_config_reader_spec.rb +60 -0
  30. data/spec/git_helper/gitlab_client_spec.rb +26 -0
  31. data/spec/git_helper/highline_cli_spec.rb +215 -0
  32. data/spec/git_helper/local_code_spec.rb +231 -0
  33. data/spec/git_helper/merge_request_spec.rb +234 -0
  34. data/spec/git_helper/new_branch_spec.rb +44 -0
  35. data/spec/git_helper/octokit_client_spec.rb +26 -0
  36. data/spec/git_helper/pull_request_spec.rb +246 -0
  37. data/spec/spec_helper.rb +0 -7
  38. metadata +41 -24
@@ -1,9 +1,3 @@
1
- require 'simplecov'
2
-
3
- SimpleCov.start do
4
- add_filter '/spec/'
5
- end
6
-
7
1
  # This file was generated by the `rspec --init` command. Conventionally, all
8
2
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
9
3
  # The generated `.rspec` file contains `--require spec_helper` which will cause
@@ -37,7 +31,6 @@ RSpec.configure do |config|
37
31
  expectations.include_chain_clauses_in_custom_matcher_descriptions = true
38
32
  end
39
33
 
40
- config.use_transactional_fixtures = true
41
34
  config.filter_run :focus => true
42
35
  config.run_all_when_everything_filtered = true
43
36
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emma Sax
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2020-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.1'
83
- - !ruby/object:Gem::Dependency
84
- name: guard
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '2.6'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '2.6'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: guard-rspec
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,29 +100,30 @@ dependencies:
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: 12.3.3
103
+ version: '13.0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: 12.3.3
110
+ version: '13.0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: rspec
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '2.99'
117
+ version: '3.9'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '2.99'
139
- description: A set of GitHub and GitLab workflow scripts.
124
+ version: '3.9'
125
+ description: A set of GitHub and GitLab workflow scripts to provide a smoother development
126
+ process for your git projects.
140
127
  email:
141
128
  - emma.sax4@gmail.com
142
129
  executables:
@@ -155,7 +142,9 @@ files:
155
142
  - lib/git_helper/change_remote.rb
156
143
  - lib/git_helper/checkout_default.rb
157
144
  - lib/git_helper/clean_branches.rb
145
+ - lib/git_helper/code_request.rb
158
146
  - lib/git_helper/empty_commit.rb
147
+ - lib/git_helper/forget_local_commits.rb
159
148
  - lib/git_helper/git_config_reader.rb
160
149
  - lib/git_helper/gitlab_client.rb
161
150
  - lib/git_helper/highline_cli.rb
@@ -165,6 +154,21 @@ files:
165
154
  - lib/git_helper/octokit_client.rb
166
155
  - lib/git_helper/pull_request.rb
167
156
  - lib/git_helper/version.rb
157
+ - plugins.zip
158
+ - spec/git_helper/change_remote_spec.rb
159
+ - spec/git_helper/checkout_default_spec.rb
160
+ - spec/git_helper/clean_branches_spec.rb
161
+ - spec/git_helper/code_request_spec.rb
162
+ - spec/git_helper/empty_commit_spec.rb
163
+ - spec/git_helper/forget_local_commits_spec.rb
164
+ - spec/git_helper/git_config_reader_spec.rb
165
+ - spec/git_helper/gitlab_client_spec.rb
166
+ - spec/git_helper/highline_cli_spec.rb
167
+ - spec/git_helper/local_code_spec.rb
168
+ - spec/git_helper/merge_request_spec.rb
169
+ - spec/git_helper/new_branch_spec.rb
170
+ - spec/git_helper/octokit_client_spec.rb
171
+ - spec/git_helper/pull_request_spec.rb
168
172
  - spec/spec_helper.rb
169
173
  homepage: https://github.com/emmasax4/git_helper
170
174
  licenses:
@@ -185,10 +189,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
189
  - !ruby/object:Gem::Version
186
190
  version: '0'
187
191
  requirements: []
188
- rubygems_version: 3.1.2
192
+ rubygems_version: 3.1.4
189
193
  signing_key:
190
194
  specification_version: 4
191
- summary: A set of GitHub and GitLab workflow scripts to provide a smoother development
192
- process for your git projects.
195
+ summary: A set of GitHub and GitLab workflow scripts.
193
196
  test_files:
194
197
  - spec/spec_helper.rb
198
+ - spec/git_helper/octokit_client_spec.rb
199
+ - spec/git_helper/new_branch_spec.rb
200
+ - spec/git_helper/forget_local_commits_spec.rb
201
+ - spec/git_helper/clean_branches_spec.rb
202
+ - spec/git_helper/change_remote_spec.rb
203
+ - spec/git_helper/checkout_default_spec.rb
204
+ - spec/git_helper/pull_request_spec.rb
205
+ - spec/git_helper/gitlab_client_spec.rb
206
+ - spec/git_helper/code_request_spec.rb
207
+ - spec/git_helper/empty_commit_spec.rb
208
+ - spec/git_helper/highline_cli_spec.rb
209
+ - spec/git_helper/git_config_reader_spec.rb
210
+ - spec/git_helper/merge_request_spec.rb
211
+ - spec/git_helper/local_code_spec.rb