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 +4 -4
- data/.github/issue_template.md +21 -0
- data/.github/workflows/build.yml +4 -4
- 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
- data/renovate.json +6 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9be2af9c2deea5ba48bd481e6794ed11a8cef1cb536f48bcd54f1b99ecd6dac5
|
4
|
+
data.tar.gz: bd22be9b4a66726fb53ed6b574a866cb4d33607bd731df6c49c080aac256f590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
-->
|
data/.github/workflows/build.yml
CHANGED
@@ -15,17 +15,17 @@ jobs:
|
|
15
15
|
contents: read
|
16
16
|
packages: write
|
17
17
|
steps:
|
18
|
-
- uses: actions/checkout@
|
19
|
-
- uses: docker/login-action@
|
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@
|
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@
|
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@
|
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.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@
|
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.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@
|
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.3
|
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'
|
data/renovate.json
ADDED
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.1
|
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-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.
|
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'
|