ninny 0.1.22 → 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: b660493847540b6a1611db7849ebe2981751779f15aeb60cd51f9c877c397ab9
4
- data.tar.gz: 186d42895b074fd945d6ab77f23579e22e7a6f8be8319949f8db19ffafd257fa
3
+ metadata.gz: 5a614b015ac474fd395e35795ac14c7a272c8bb434760f80279e6cdfb7605c5a
4
+ data.tar.gz: 2d06f802a0d90eef99918318b1b83dcdd622fd8f071b232585cad542d89345aa
5
5
  SHA512:
6
- metadata.gz: be51050989521c8280c922c062bfdc6a51bada35ab02bfa3e80f7aa3c1d7a79ad34e86afec150d718aee37d7c69cf25976994ae47381cf778ceea6d3a91ed10f
7
- data.tar.gz: 87d8572c26c58dd23fe6bd5ebd312e556544ec8749afb76ea0a21d0c6a3e19e8569016653decce77062be121f9e27766fa5be85176b4e422dc68e650e002fa13
6
+ metadata.gz: 283756965f579f7e23d23e7d0bf2cd86352ccae4423da58cb14ad6cbe42bfab3fc2499dff0bed10ad83f27ddf20947df9175236b6d9c9109e20db54d04d0165e
7
+ data.tar.gz: d0ed10e2d8abf24a94b7e76c92136664fcf83c00ff815f4ccb97a0b1e0b94a7478eaf10de776aea65fba4b656784f45f372c794b9f8905de4ff7a4b5f49277cd
@@ -0,0 +1,21 @@
1
+ <!--
2
+ Your audience for this issue description is **other engineers**. Help them understand the technical requirements, questions, etc involved.
3
+ -->
4
+
5
+ ## What's the issue?
6
+
7
+ <!--
8
+ What is wrong, or what is the reason you're making this issue? Is there a bug, general question, just want a reminder note of something, etc?
9
+ -->
10
+
11
+ ## Related URLs
12
+
13
+ <!--
14
+ Links to bug tickets, user stories, or other merge requests.
15
+ -->
16
+
17
+ ## Anything else people should know?
18
+
19
+ <!--
20
+ What else should readers of this issue know? If there's a bug, how do you reproduce it and what is the expected behavior? If it's a feature request, what other solutions have you considered? Do you have any suggestions for how else to fix this issue?
21
+ -->
@@ -16,16 +16,16 @@ jobs:
16
16
  packages: write
17
17
  steps:
18
18
  - uses: actions/checkout@v3
19
- - uses: docker/login-action@v1
19
+ - uses: docker/login-action@v2
20
20
  with:
21
21
  registry: ${{ env.REGISTRY }}
22
22
  username: ${{ github.actor }}
23
23
  password: ${{ secrets.GITHUB_TOKEN }}
24
- - uses: docker/metadata-action@v3
24
+ - uses: docker/metadata-action@v4
25
25
  id: meta
26
26
  with:
27
27
  images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
28
- - uses: docker/build-push-action@v2
28
+ - uses: docker/build-push-action@v3
29
29
  with:
30
30
  context: .
31
31
  push: true
@@ -6,7 +6,7 @@ on:
6
6
  branches: [ main ]
7
7
 
8
8
  env:
9
- GITLEAKS_VERSION: v8.7.1
9
+ GITLEAKS_VERSION: v8.15.1
10
10
 
11
11
  jobs:
12
12
  test:
@@ -31,7 +31,7 @@ jobs:
31
31
  - uses: actions/checkout@v3
32
32
  with:
33
33
  fetch-depth: 0
34
- - uses: HeRoMo/pronto-action@v1.32.0
34
+ - uses: HeRoMo/pronto-action@v1.40.0
35
35
  with:
36
36
  github_token: ${{ secrets.GITHUB_TOKEN }}
37
37
  gitleaks:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.1.3
data/Dockerfile CHANGED
@@ -1,3 +1,3 @@
1
- FROM ruby:3.1.2-alpine
1
+ FROM ruby:3.1.3-alpine
2
2
  RUN apk add git
3
3
  RUN gem install ninny
@@ -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'
4
+ VERSION = '0.1.23'
5
5
  end
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ]
6
+ }
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
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-04-22 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
@@ -270,6 +270,7 @@ executables:
270
270
  extensions: []
271
271
  extra_rdoc_files: []
272
272
  files:
273
+ - ".github/issue_template.md"
273
274
  - ".github/pull_request_template.md"
274
275
  - ".github/workflows/build.yml"
275
276
  - ".github/workflows/gitleaks.toml"
@@ -310,6 +311,7 @@ files:
310
311
  - lib/ninny/user_config.rb
311
312
  - lib/ninny/version.rb
312
313
  - ninny.gemspec
314
+ - renovate.json
313
315
  homepage: https://github.com/dispatchitinc/ninny
314
316
  licenses:
315
317
  - MIT
@@ -330,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
330
332
  - !ruby/object:Gem::Version
331
333
  version: '0'
332
334
  requirements: []
333
- rubygems_version: 3.3.7
335
+ rubygems_version: 3.3.26
334
336
  signing_key:
335
337
  specification_version: 4
336
338
  summary: 'ninny (n): an foolish person, see: git'