ninny 0.1.22.1 → 0.1.23

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: 9be2af9c2deea5ba48bd481e6794ed11a8cef1cb536f48bcd54f1b99ecd6dac5
4
- data.tar.gz: bd22be9b4a66726fb53ed6b574a866cb4d33607bd731df6c49c080aac256f590
3
+ metadata.gz: 5a614b015ac474fd395e35795ac14c7a272c8bb434760f80279e6cdfb7605c5a
4
+ data.tar.gz: 2d06f802a0d90eef99918318b1b83dcdd622fd8f071b232585cad542d89345aa
5
5
  SHA512:
6
- metadata.gz: 514db127a0cd2c2ab06302367b9707a6b29423b22734bbfc2652671f2438dfe4b2bdf10c2f7e8f6b2c24920c12dbfdda8895ccf1557621e1928f2806c5f44a49
7
- data.tar.gz: ac716fccea27a63fbe1d1a53c7de6856cadfd09284dbe2093d6aafe1020cb72817ddada610c4ac9cddc1c29cb8235ebdf58bd42466805ccf6401e59310cd4703
6
+ metadata.gz: 283756965f579f7e23d23e7d0bf2cd86352ccae4423da58cb14ad6cbe42bfab3fc2499dff0bed10ad83f27ddf20947df9175236b6d9c9109e20db54d04d0165e
7
+ data.tar.gz: d0ed10e2d8abf24a94b7e76c92136664fcf83c00ff815f4ccb97a0b1e0b94a7478eaf10de776aea65fba4b656784f45f372c794b9f8905de4ff7a4b5f49277cd
@@ -38,7 +38,7 @@ module Ninny
38
38
  def delete_old_branches
39
39
  return unless extra_branches.any?
40
40
 
41
- should_delete = should_delete_old_branches || prompt.yes?(
41
+ should_delete = should_delete_old_branches || prompt.no?(
42
42
  "Do you want to delete the old #{branch_type} branch(es)? (#{extra_branches.join(', ')})"
43
43
  )
44
44
 
@@ -46,8 +46,8 @@ module Ninny
46
46
  Ninny.git.check_out(branch_to_merge_into, false)
47
47
  Ninny.git.track_current_branch
48
48
  rescue Ninny::Git::NoBranchOfType
49
- prompt.say "No #{branch_type} branch available. Creating one now."
50
- CreateDatedBranch.new(branch: branch_type).execute
49
+ prompt.say "Could not find a #{branch_type} branch. Please create one or double check it exists. If it " \
50
+ 'exists, please do a fresh git pull or git fetch to ensure Ninny can find it.'
51
51
  end
52
52
 
53
53
  # Public: Merge the pull request's branch into the checked-out branch
data/lib/ninny/git.rb CHANGED
@@ -138,7 +138,8 @@ module Ninny
138
138
  #
139
139
  # Returns an Array of Branches containing the branch name
140
140
  def latest_branch_for(prefix)
141
- branches_for(prefix).last || raise(NoBranchOfType, "No #{prefix} branch")
141
+ # I don't really see why the first part would break, and the second would work, but you never know
142
+ branches_for(prefix).last || Ninny.git.branches_for(prefix).last || raise(NoBranchOfType, "No #{prefix} branch")
142
143
  end
143
144
 
144
145
  # Public: Whether the Git index is clean (has no uncommited changes)
data/lib/ninny/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ninny
4
- VERSION = '0.1.22.1'
4
+ VERSION = '0.1.23'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22.1
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - DispatchIt, Inc. Engineers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-15 00:00:00.000000000 Z
11
+ date: 2022-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git