ninny 0.1.23 → 0.1.24

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: 5a614b015ac474fd395e35795ac14c7a272c8bb434760f80279e6cdfb7605c5a
4
- data.tar.gz: 2d06f802a0d90eef99918318b1b83dcdd622fd8f071b232585cad542d89345aa
3
+ metadata.gz: 01f0f59fc7d103c7284a6866f82ff1463f3f53f36524fcdc16a3d638ab6e3174
4
+ data.tar.gz: 867dfb562f0b3844e99dcbe1150784734928f2d7e04aac9d5b4c94f4c06aeadf
5
5
  SHA512:
6
- metadata.gz: 283756965f579f7e23d23e7d0bf2cd86352ccae4423da58cb14ad6cbe42bfab3fc2499dff0bed10ad83f27ddf20947df9175236b6d9c9109e20db54d04d0165e
7
- data.tar.gz: d0ed10e2d8abf24a94b7e76c92136664fcf83c00ff815f4ccb97a0b1e0b94a7478eaf10de776aea65fba4b656784f45f372c794b9f8905de4ff7a4b5f49277cd
6
+ metadata.gz: f363956d9e73153283638d43521fa3978673035dc439e0137dee72e026f1a6862e30f9466df1fdc7d3c38b90f1f0adcf8ff9c1ee65efd7ab260fc3d0019dbd19
7
+ data.tar.gz: c5f44356f15ca4bc02651788213629016d5e94ff5a2f7a9ea82ef01c8320c7f6df90f3aa9c4f5988ee645078176dcb4e2a24190e71bfeb1c8b42df02faab5c16
@@ -14,7 +14,7 @@ jobs:
14
14
  strategy:
15
15
  fail-fast: false
16
16
  matrix:
17
- ruby: [2.6, 2.7, 3.0, 3.1]
17
+ ruby: [2.6, 2.7, 3.0, 3.1, 3.2]
18
18
  steps:
19
19
  - uses: actions/checkout@v3
20
20
  with:
@@ -31,7 +31,7 @@ jobs:
31
31
  - uses: actions/checkout@v3
32
32
  with:
33
33
  fetch-depth: 0
34
- - uses: HeRoMo/pronto-action@v1.40.0
34
+ - uses: HeRoMo/pronto-action@1.43.1
35
35
  with:
36
36
  github_token: ${{ secrets.GITHUB_TOKEN }}
37
37
  gitleaks:
data/.rubocop.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  AllCops:
2
2
  NewCops: enable
3
3
  SuggestExtensions: false
4
- TargetRubyVersion: 3.1
4
+ TargetRubyVersion: 3.2
5
5
  Exclude:
6
6
  - vendor/**/*
7
7
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.3
1
+ 3.2.0
data/Dockerfile CHANGED
@@ -1,3 +1,3 @@
1
- FROM ruby:3.1.3-alpine
1
+ FROM ruby:3.2.0-alpine
2
2
  RUN apk add git
3
3
  RUN gem install ninny
data/Gemfile CHANGED
@@ -4,6 +4,8 @@ source 'https://rubygems.org'
4
4
 
5
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
7
- # Specify your gem's dependencies in ninny.gemspec
7
+ gem 'rugged', github: 'libgit2/rugged', submodules: true
8
8
  gem 'tty'
9
+
10
+ # Specify your gem's dependencies in ninny.gemspec
9
11
  gemspec
data/lib/ninny/git.rb CHANGED
@@ -39,7 +39,7 @@ module Ninny
39
39
  def merge(branch_name)
40
40
  if_clean do
41
41
  `git fetch --prune &> /dev/null`
42
- command 'merge', ['--no-ff', "origin/#{branch_name}"]
42
+ command('merge', '--no-ff', "origin/#{branch_name}")
43
43
  raise MergeFailed unless clean?
44
44
 
45
45
  push
@@ -75,7 +75,7 @@ module Ninny
75
75
  #
76
76
  # do_after_pull - Should a pull be done after tracking?
77
77
  def track_current_branch(do_after_pull = true)
78
- command('branch', ['-u', "origin/#{current_branch_name}"])
78
+ command('branch', '-u', "origin/#{current_branch_name}")
79
79
  pull if do_after_pull
80
80
  end
81
81
 
@@ -85,7 +85,7 @@ module Ninny
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
87
  `git fetch --prune &> /dev/null`
88
- remote_branches = command('branch', ['--remote'])
88
+ remote_branches = command('branch', '--remote')
89
89
 
90
90
  if remote_branches.include?("origin/#{new_branch_name}")
91
91
  ask_to_recreate_branch(new_branch_name, source_branch_name)
@@ -191,10 +191,10 @@ module Ninny
191
191
  # new_branch_name: the name of the branch in question
192
192
  # source_branch_name: the name of the branch the new branch is supposed to be based off of
193
193
  private def create_branch(new_branch_name, source_branch_name)
194
- command('branch', ['--no-track', new_branch_name, "origin/#{source_branch_name}"])
194
+ command('branch', '--no-track', new_branch_name, "origin/#{source_branch_name}")
195
195
  new_branch = branch(new_branch_name)
196
196
  new_branch.checkout
197
- command('push', ['-u', 'origin', new_branch_name])
197
+ command('push', '-u', 'origin', new_branch_name)
198
198
  end
199
199
 
200
200
  # Exceptions
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.23'
4
+ VERSION = '0.1.24'
5
5
  end
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.23
4
+ version: 0.1.24
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-12-21 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
@@ -332,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
332
332
  - !ruby/object:Gem::Version
333
333
  version: '0'
334
334
  requirements: []
335
- rubygems_version: 3.3.26
335
+ rubygems_version: 3.4.1
336
336
  signing_key:
337
337
  specification_version: 4
338
338
  summary: 'ninny (n): an foolish person, see: git'