geet 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c13aed62c61e4cdaf20931f657c101daee30925b36a9b87fcce3b86d009d3c69
4
- data.tar.gz: 5f13669499214cb7b13d96f05a25547a19a472e9d855e6d58967f5ce3ba3d138
3
+ metadata.gz: 72e79c90885595952ceb12c04e7348639bf1582b24764955810fb8b0b50b574f
4
+ data.tar.gz: f16daadc22258458d650bab0a665b6f903cc7461903807a6b17968a7706f8089
5
5
  SHA512:
6
- metadata.gz: 8cb5a717299f16140d7ce1506d0bba549b87d97e4405f1d32549ea519ba58ccb2e918ce0561ecf714fcc2d3660f1172890c6fee99fc53270216b6656c730e7b9
7
- data.tar.gz: 7ad452d8d32f8e96b853925aa745ad7664a4dd14cd97754ea6ab47627718938bb8af03e52eb4db28e425d96605bff83de74332a196d79845fd78baa870cbeef9
6
+ metadata.gz: b3e9160181a4b619c33e0eb5ea137ae233f70b3d7281a16097ef6469c363dd35bc0eb0d3e17e8804019c7ea43f7abee9146f76e137c2312267eec926a5af0b3b
7
+ data.tar.gz: 1305850037b80671c375c99336b826e9c77fcbf301e5bcdb545e643f6be00a1ce96767d4a78f1439f28a4ef52ac3325557a93a031eef67b1196396706e56b86d
data/bin/geet CHANGED
@@ -88,12 +88,10 @@ class GeetLauncher
88
88
  private
89
89
 
90
90
  def edit_pr_summary(base: nil)
91
- base ||= 'master'
92
-
93
91
  # Tricky. It would be best to have Git logic exlusively inside the services,
94
92
  # but at the same time, the summary editing should be out.
95
93
  git = Utils::GitClient.new
96
- pr_commits = git.cherry(base)
94
+ pr_commits = git.cherry(base: base)
97
95
 
98
96
  if pr_commits.size == 1
99
97
  prepopulated_summary = git.show_description('HEAD')
data/geet.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.required_ruby_version = '>= 2.3.0'
12
12
  s.authors = ['Saverio Miroddi']
13
- s.date = '2021-07-26'
13
+ s.date = '2021-09-04'
14
14
  s.email = ['saverio.pub2@gmail.com']
15
15
  s.homepage = 'https://github.com/saveriomiroddi/geet'
16
16
  s.summary = 'Commandline interface for performing SCM host operations, eg. create a PR on GitHub'
@@ -48,11 +48,13 @@ module Geet
48
48
  # BRANCH/TREE APIS
49
49
  ##########################################################################
50
50
 
51
- # Return the commit shas between HEAD and `limit`, excluding the already applied commits
51
+ # Return the commit SHAs between HEAD and `base`, excluding the already applied commits
52
52
  # (which start with `-`)
53
53
  #
54
- def cherry(limit)
55
- raw_commits = execute_git_command("cherry #{limit.shellescape}")
54
+ def cherry(base: nil)
55
+ base ||= main_branch
56
+
57
+ raw_commits = execute_git_command("cherry #{base.shellescape}")
56
58
 
57
59
  raw_commits.split("\n").grep(/^\+/).map { |line| line[3..-1] }
58
60
  end
data/lib/geet/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geet
4
- VERSION = '0.4.2'
4
+ VERSION = '0.4.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saverio Miroddi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-26 00:00:00.000000000 Z
11
+ date: 2021-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_scripting
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.2.22
193
+ rubygems_version: 3.1.6
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Commandline interface for performing SCM host operations, eg. create a PR