geet 0.4.2 → 0.4.3
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/bin/geet +1 -3
 - data/geet.gemspec +1 -1
 - data/lib/geet/utils/git_client.rb +5 -3
 - data/lib/geet/version.rb +1 -1
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 72e79c90885595952ceb12c04e7348639bf1582b24764955810fb8b0b50b574f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: f16daadc22258458d650bab0a665b6f903cc7461903807a6b17968a7706f8089
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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- 
     | 
| 
      
 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  
     | 
| 
      
 51 
     | 
    
         
            +
                  # Return the commit SHAs between HEAD and `base`, excluding the already applied commits
         
     | 
| 
       52 
52 
     | 
    
         
             
                  # (which start with `-`)
         
     | 
| 
       53 
53 
     | 
    
         
             
                  #
         
     | 
| 
       54 
     | 
    
         
            -
                  def cherry( 
     | 
| 
       55 
     | 
    
         
            -
                     
     | 
| 
      
 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
    
    
    
        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. 
     | 
| 
      
 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- 
     | 
| 
      
 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. 
     | 
| 
      
 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
         
     |