ninny 0.1.19 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb06f88a85ed100c85f035dfd512eab3a653ce976e4fccfcb75972b94b62a941
4
- data.tar.gz: 624b6561506f6431afbf5e0b63963c056d028ddfaa4499397a0a943d0cafe221
3
+ metadata.gz: b660493847540b6a1611db7849ebe2981751779f15aeb60cd51f9c877c397ab9
4
+ data.tar.gz: 186d42895b074fd945d6ab77f23579e22e7a6f8be8319949f8db19ffafd257fa
5
5
  SHA512:
6
- metadata.gz: b984582630919dc9b6ae834d113e3ff3adea6402cacc0051201985021634baf6b7e7aaae0987acd5a03753d29066786fd469356ab4d77f4bdb09deada6aa684c
7
- data.tar.gz: 7ca0603113e71a573636d6efe74e9960d8cabbb6cbc43ed9ad25b5bc84c18dcd658098adeee60bd99b5fd81904822049ae647677e76a266fe11bc207f1c7c6a3
6
+ metadata.gz: be51050989521c8280c922c062bfdc6a51bada35ab02bfa3e80f7aa3c1d7a79ad34e86afec150d718aee37d7c69cf25976994ae47381cf778ceea6d3a91ed10f
7
+ data.tar.gz: 87d8572c26c58dd23fe6bd5ebd312e556544ec8749afb76ea0a21d0c6a3e19e8569016653decce77062be121f9e27766fa5be85176b4e422dc68e650e002fa13
@@ -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@f054a8b539a109f9f41c372932f1ae047eff08c9
18
+ - uses: actions/checkout@v3
19
+ - uses: docker/login-action@v1
20
20
  with:
21
21
  registry: ${{ env.REGISTRY }}
22
22
  username: ${{ github.actor }}
23
23
  password: ${{ secrets.GITHUB_TOKEN }}
24
- - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
24
+ - uses: docker/metadata-action@v3
25
25
  id: meta
26
26
  with:
27
27
  images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
28
- - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
28
+ - uses: docker/build-push-action@v2
29
29
  with:
30
30
  context: .
31
31
  push: true
@@ -7,40 +7,23 @@ 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
14
14
  with:
15
- ruby-version: 3.0
16
15
  bundler-cache: true
17
16
  - run: |
18
17
  gem install bundler-audit
19
18
  bundler-audit update
20
19
  bundler-audit
21
-
22
- if [ $? -eq 0 ]; then
23
- echo "No gem vulnerabilities found."
24
- else
25
- echo "Gem vulnerabilities found!"
26
- exit 1
27
- fi
28
20
  bundle-outdated:
29
21
  runs-on: ubuntu-latest
30
22
  steps:
31
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v3
32
24
  with:
33
25
  fetch-depth: 0
34
26
  - uses: ruby/setup-ruby@v1
35
27
  with:
36
- ruby-version: 3.0
37
28
  bundler-cache: true
38
- - run: |
39
- bundle outdated --strict
40
-
41
- if [ $? -eq 0 ]; then
42
- echo "No outdated gems found."
43
- else
44
- echo "Outdated gems found!"
45
- exit 1
46
- fi
29
+ - run: bundle outdated --strict
@@ -6,7 +6,7 @@ on:
6
6
  branches: [ main ]
7
7
 
8
8
  env:
9
- GITLEAKS_REF: f15b4e408b12fda7e2833f8a32c0d8a045bd48a0
9
+ GITLEAKS_VERSION: v8.7.1
10
10
 
11
11
  jobs:
12
12
  test:
@@ -14,9 +14,9 @@ jobs:
14
14
  strategy:
15
15
  fail-fast: false
16
16
  matrix:
17
- ruby: [2.6, 2.7, 3.0]
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,22 +28,22 @@ 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.13.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: |
45
45
  curl -H "Accept: application/vnd.github.v3.raw" \
46
- -L "https://api.github.com/repos/zricethezav/gitleaks/contents/config/gitleaks.toml?ref=${{ env.GITLEAKS_REF }}" \
46
+ -L "https://api.github.com/repos/zricethezav/gitleaks/contents/config/gitleaks.toml?ref=${{ env.GITLEAKS_VERSION }}" \
47
47
  >> ${{ github.WORKSPACE }}/.github/workflows/original.toml
48
48
  sed "/\[allowlist\]/,/^$/d" ${{ github.WORKSPACE }}/.github/workflows/original.toml >> ${{ github.WORKSPACE }}/.github/workflows/official.toml
49
49
  cat .github/workflows/gitleaks.toml >> .github/workflows/official.toml
@@ -53,13 +53,13 @@ jobs:
53
53
  CURRENT_COMMIT="${{ github.EVENT.PULL_REQUEST.HEAD.SHA }}"
54
54
  fi
55
55
  echo "LOG_OPTS='^origin/main $CURRENT_COMMIT'" >> $GITHUB_ENV
56
- - name: GitLeaks
57
- uses: addnab/docker-run-action@v3
56
+ - uses: addnab/docker-run-action@v3
58
57
  with:
59
- image: zricethezav/gitleaks:v8.0.4
58
+ image: zricethezav/gitleaks:${{ env.GITLEAKS_VERSION }}
60
59
  options: -v ${{ github.WORKSPACE }}:/app
61
60
  run: |
62
61
  cd /app
62
+ git config --global --add safe.directory /app
63
63
  gitleaks detect --verbose --source='./' \
64
64
  --config='.github/workflows/official.toml' \
65
65
  --log-opts=${{ env.LOG_OPTS }}
data/.rubocop.yml CHANGED
@@ -1,13 +1,16 @@
1
1
  AllCops:
2
2
  NewCops: enable
3
3
  SuggestExtensions: false
4
- TargetRubyVersion: 3.0
4
+ TargetRubyVersion: 3.1
5
5
  Exclude:
6
6
  - vendor/**/*
7
7
 
8
8
  Gemspec/RequiredRubyVersion:
9
9
  Enabled: false
10
10
 
11
+ Gemspec/RequireMFA:
12
+ Enabled: false
13
+
11
14
  Style/Documentation:
12
15
  Enabled: false
13
16
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.1.2
data/Dockerfile CHANGED
@@ -1,3 +1,3 @@
1
- FROM ruby:3.0.2-alpine
1
+ FROM ruby:3.1.2-alpine
2
2
  RUN apk add git
3
3
  RUN gem install ninny
data/README.md CHANGED
@@ -103,7 +103,7 @@ To set up your local machine to push to RubyGems via the API, see the [RubyGems
103
103
 
104
104
  ## Contributing
105
105
 
106
- Bug reports and pull requests are welcome on GitHub at https://github.com/dispatchinc/ninny. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
106
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dispatchitinc/ninny. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
107
107
 
108
108
  ## Code of Conduct
109
109
 
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.19'
4
+ VERSION = '0.1.22'
5
5
  end
data/ninny.gemspec CHANGED
@@ -8,12 +8,13 @@ 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'
15
15
  spec.description = 'Ninny is a command line workflow for git with GitLab'
16
- spec.homepage = 'https://github.com/dispatchinc/ninny'
16
+ spec.homepage = 'https://github.com/dispatchitinc/ninny'
17
+ spec.metadata = { 'rubygems_mfa_required' => 'false' }
17
18
 
18
19
  # Specify which files should be added to the gem when it is released.
19
20
  # The `git ls-files -z` loads the files in the RubyGem that have been added into 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.19
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: 2021-11-30 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
@@ -310,10 +310,11 @@ files:
310
310
  - lib/ninny/user_config.rb
311
311
  - lib/ninny/version.rb
312
312
  - ninny.gemspec
313
- homepage: https://github.com/dispatchinc/ninny
313
+ homepage: https://github.com/dispatchitinc/ninny
314
314
  licenses:
315
315
  - MIT
316
- metadata: {}
316
+ metadata:
317
+ rubygems_mfa_required: 'false'
317
318
  post_install_message:
318
319
  rdoc_options: []
319
320
  require_paths:
@@ -329,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
330
  - !ruby/object:Gem::Version
330
331
  version: '0'
331
332
  requirements: []
332
- rubygems_version: 3.2.22
333
+ rubygems_version: 3.3.7
333
334
  signing_key:
334
335
  specification_version: 4
335
336
  summary: 'ninny (n): an foolish person, see: git'