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 +4 -4
- data/.github/workflows/build.yml +1 -1
- data/.github/workflows/scheduled.yml +2 -2
- data/.github/workflows/test.yml +6 -5
- data/.ruby-version +1 -1
- data/Dockerfile +1 -1
- data/lib/ninny/git.rb +4 -4
- data/lib/ninny/version.rb +1 -1
- data/ninny.gemspec +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: b660493847540b6a1611db7849ebe2981751779f15aeb60cd51f9c877c397ab9
|
4
|
+
data.tar.gz: 186d42895b074fd945d6ab77f23579e22e7a6f8be8319949f8db19ffafd257fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be51050989521c8280c922c062bfdc6a51bada35ab02bfa3e80f7aa3c1d7a79ad34e86afec150d718aee37d7c69cf25976994ae47381cf778ceea6d3a91ed10f
|
7
|
+
data.tar.gz: 87d8572c26c58dd23fe6bd5ebd312e556544ec8749afb76ea0a21d0c6a3e19e8569016653decce77062be121f9e27766fa5be85176b4e422dc68e650e002fa13
|
data/.github/workflows/build.yml
CHANGED
@@ -7,7 +7,7 @@ jobs:
|
|
7
7
|
bundler-audit:
|
8
8
|
runs-on: ubuntu-latest
|
9
9
|
steps:
|
10
|
-
- uses: actions/checkout@
|
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@
|
23
|
+
- uses: actions/checkout@v3
|
24
24
|
with:
|
25
25
|
fetch-depth: 0
|
26
26
|
- uses: ruby/setup-ruby@v1
|
data/.github/workflows/test.yml
CHANGED
@@ -6,7 +6,7 @@ on:
|
|
6
6
|
branches: [ main ]
|
7
7
|
|
8
8
|
env:
|
9
|
-
GITLEAKS_VERSION: v8.
|
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@
|
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@
|
31
|
+
- uses: actions/checkout@v3
|
32
32
|
with:
|
33
33
|
fetch-depth: 0
|
34
|
-
- uses: HeRoMo/pronto-action@v1.
|
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@
|
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
|
+
3.1.2
|
data/Dockerfile
CHANGED
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
|
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
|
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
|
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
|
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
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 = ['
|
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.
|
4
|
+
version: 0.1.22
|
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-
|
11
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|