ninny 0.1.21 → 0.1.22.1

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: 4bb254fc2d80a03a8a2fe7cd6c9eef06eebcefd7d58df1e648ef30103c7fd34a
4
- data.tar.gz: 9a7822d0ceddac325c321738b5e71774cd2d190e3e7a312601159a2fca322e72
3
+ metadata.gz: 9be2af9c2deea5ba48bd481e6794ed11a8cef1cb536f48bcd54f1b99ecd6dac5
4
+ data.tar.gz: bd22be9b4a66726fb53ed6b574a866cb4d33607bd731df6c49c080aac256f590
5
5
  SHA512:
6
- metadata.gz: 7e6e88099872539c132668e38994d5b4e4ddbb0533ff002cec676a8940f7763bb7f0586053364d00ba9337abc4807c2a21d6388f61baa825f47614dae21d6a54
7
- data.tar.gz: ef3426925522993daaeef71280e80964177ca50280af4d27807b5cc7d96fb50d649513dd32a79880b3c2eddcdf287dc41d82c9be70ce67811f06ef83e37b96d2
6
+ metadata.gz: 514db127a0cd2c2ab06302367b9707a6b29423b22734bbfc2652671f2438dfe4b2bdf10c2f7e8f6b2c24920c12dbfdda8895ccf1557621e1928f2806c5f44a49
7
+ data.tar.gz: ac716fccea27a63fbe1d1a53c7de6856cadfd09284dbe2093d6aafe1020cb72817ddada610c4ac9cddc1c29cb8235ebdf58bd42466805ccf6401e59310cd4703
@@ -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
+ -->
@@ -15,17 +15,17 @@ jobs:
15
15
  contents: read
16
16
  packages: write
17
17
  steps:
18
- - uses: actions/checkout@v2
19
- - uses: docker/login-action@v1
18
+ - uses: actions/checkout@v3
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
@@ -7,7 +7,7 @@ jobs:
7
7
  bundler-audit:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
- - uses: actions/checkout@v2
10
+ - uses: actions/checkout@v3
11
11
  with:
12
12
  fetch-depth: 0
13
13
  - uses: ruby/setup-ruby@v1
@@ -20,7 +20,7 @@ jobs:
20
20
  bundle-outdated:
21
21
  runs-on: ubuntu-latest
22
22
  steps:
23
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v3
24
24
  with:
25
25
  fetch-depth: 0
26
26
  - uses: ruby/setup-ruby@v1
@@ -6,7 +6,7 @@ on:
6
6
  branches: [ main ]
7
7
 
8
8
  env:
9
- GITLEAKS_VERSION: v8.2.7
9
+ GITLEAKS_VERSION: v8.15.1
10
10
 
11
11
  jobs:
12
12
  test:
@@ -16,7 +16,7 @@ jobs:
16
16
  matrix:
17
17
  ruby: [2.6, 2.7, 3.0, 3.1]
18
18
  steps:
19
- - uses: actions/checkout@v2
19
+ - uses: actions/checkout@v3
20
20
  with:
21
21
  fetch-depth: 0
22
22
  - uses: ruby/setup-ruby@v1
@@ -28,17 +28,17 @@ jobs:
28
28
  if: github.EVENT_NAME == 'pull_request'
29
29
  runs-on: ubuntu-latest
30
30
  steps:
31
- - uses: actions/checkout@v2
31
+ - uses: actions/checkout@v3
32
32
  with:
33
33
  fetch-depth: 0
34
- - uses: HeRoMo/pronto-action@v1.28.0
34
+ - uses: HeRoMo/pronto-action@v1.40.0
35
35
  with:
36
36
  github_token: ${{ secrets.GITHUB_TOKEN }}
37
37
  gitleaks:
38
38
  if: github.EVENT_NAME == 'pull_request'
39
39
  runs-on: ubuntu-latest
40
40
  steps:
41
- - uses: actions/checkout@v2
41
+ - uses: actions/checkout@v3
42
42
  with:
43
43
  fetch-depth: 0
44
44
  - run: |
@@ -59,6 +59,7 @@ jobs:
59
59
  options: -v ${{ github.WORKSPACE }}:/app
60
60
  run: |
61
61
  cd /app
62
+ git config --global --add safe.directory /app
62
63
  gitleaks detect --verbose --source='./' \
63
64
  --config='.github/workflows/official.toml' \
64
65
  --log-opts=${{ env.LOG_OPTS }}
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.1
1
+ 3.1.3
data/Dockerfile CHANGED
@@ -1,3 +1,3 @@
1
- FROM ruby:3.1.1-alpine
1
+ FROM ruby:3.1.3-alpine
2
2
  RUN apk add git
3
3
  RUN gem install ninny
data/lib/ninny/git.rb CHANGED
@@ -38,7 +38,7 @@ module Ninny
38
38
 
39
39
  def merge(branch_name)
40
40
  if_clean do
41
- git.fetch('-p')
41
+ `git fetch --prune &> /dev/null`
42
42
  command 'merge', ['--no-ff', "origin/#{branch_name}"]
43
43
  raise MergeFailed unless clean?
44
44
 
@@ -65,7 +65,7 @@ module Ninny
65
65
  # branch_name - The name of the branch to check out
66
66
  # do_after_pull - Should a pull be done after checkout?
67
67
  def check_out(branch, do_after_pull = true)
68
- git.fetch('-p')
68
+ `git fetch --prune &> /dev/null`
69
69
  git.checkout(branch)
70
70
  pull if do_after_pull
71
71
  raise CheckoutFailed, "Failed to check out '#{branch}'" unless current_branch.name == branch.name
@@ -84,7 +84,7 @@ module Ninny
84
84
  # new_branch_name - The name of the branch to create
85
85
  # source_branch_name - The name of the branch to branch from
86
86
  def new_branch(new_branch_name, source_branch_name)
87
- git.fetch('-p')
87
+ `git fetch --prune &> /dev/null`
88
88
  remote_branches = command('branch', ['--remote'])
89
89
 
90
90
  if remote_branches.include?("origin/#{new_branch_name}")
@@ -117,7 +117,7 @@ module Ninny
117
117
  #
118
118
  # Returns an Array of Strings containing the branch names
119
119
  def remote_branches
120
- git.fetch('-p')
120
+ `git fetch --prune &> /dev/null`
121
121
  git.branches.remote.map { |branch| git.branch(branch.name) }.sort_by(&:name)
122
122
  end
123
123
 
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.21'
4
+ VERSION = '0.1.22.1'
5
5
  end
data/ninny.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.name = 'ninny'
9
9
  spec.license = 'MIT'
10
10
  spec.version = Ninny::VERSION
11
- spec.authors = ['Dispatch Engineers']
11
+ spec.authors = ['DispatchIt, Inc. Engineers']
12
12
  spec.email = ['engineers@dispatchit.com']
13
13
 
14
14
  spec.summary = 'ninny (n): an foolish person, see: git'
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.21
4
+ version: 0.1.22.1
5
5
  platform: ruby
6
6
  authors:
7
- - Dispatch Engineers
7
+ - DispatchIt, Inc. Engineers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-29 00:00:00.000000000 Z
11
+ date: 2022-12-15 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'