ninny 0.1.21 → 0.1.22

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: b660493847540b6a1611db7849ebe2981751779f15aeb60cd51f9c877c397ab9
4
+ data.tar.gz: 186d42895b074fd945d6ab77f23579e22e7a6f8be8319949f8db19ffafd257fa
5
5
  SHA512:
6
- metadata.gz: 7e6e88099872539c132668e38994d5b4e4ddbb0533ff002cec676a8940f7763bb7f0586053364d00ba9337abc4807c2a21d6388f61baa825f47614dae21d6a54
7
- data.tar.gz: ef3426925522993daaeef71280e80964177ca50280af4d27807b5cc7d96fb50d649513dd32a79880b3c2eddcdf287dc41d82c9be70ce67811f06ef83e37b96d2
6
+ metadata.gz: be51050989521c8280c922c062bfdc6a51bada35ab02bfa3e80f7aa3c1d7a79ad34e86afec150d718aee37d7c69cf25976994ae47381cf778ceea6d3a91ed10f
7
+ data.tar.gz: 87d8572c26c58dd23fe6bd5ebd312e556544ec8749afb76ea0a21d0c6a3e19e8569016653decce77062be121f9e27766fa5be85176b4e422dc68e650e002fa13
@@ -15,7 +15,7 @@ jobs:
15
15
  contents: read
16
16
  packages: write
17
17
  steps:
18
- - uses: actions/checkout@v2
18
+ - uses: actions/checkout@v3
19
19
  - uses: docker/login-action@v1
20
20
  with:
21
21
  registry: ${{ env.REGISTRY }}
@@ -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.7.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.32.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.2
data/Dockerfile CHANGED
@@ -1,3 +1,3 @@
1
- FROM ruby:3.1.1-alpine
1
+ FROM ruby:3.1.2-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'
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'
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
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-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git