ninny 0.1.12 → 0.1.13

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: df20c749d0ff68d76160dd8c49af839c0d5bca44b2bc843c6869c54847d6cd2a
4
- data.tar.gz: fd04479d94849368b53d539ad1f3084e024c90d4a89d879787213dc5fd5de9a9
3
+ metadata.gz: 228ceb1c0c7c690a792b4b1c2cfc90fca6e23b93c42e4fa3fdfe792fa45bb800
4
+ data.tar.gz: ab7cff0604ed9d1740c58f96f82c1429059f9473b02ba80e5bbc00a1f6041c20
5
5
  SHA512:
6
- metadata.gz: 7882708a164cfc52316f496f26c7203458d39c996d155a67b5fc8afedb58a9b9d60a9b44badc97ba4860815c497017ac1e47cc7dcbdd4fd89b24e4d9e3e7162c
7
- data.tar.gz: 954e986c09b28bc6ce678fb7a88ff04f872f212ce71c8637699342eb683229b28286ba50dc32b9523ca43dbee59cece29e9ad06546fe27f600712b479a70fd3b
6
+ metadata.gz: da97b642577462da42d373500762fbb4c0dfd5d881d1e779b7feeb33c998a81db1d5508ec3a2efadefa72a2492a5b5efea647658491b9c8148f236750d176c1d
7
+ data.tar.gz: 02fc25d9fc9d46dd184285d348126e010cb58c575cda24f68764c30be82636f06a0593ff18b6fcc652245cee40b3abd5725fe56a8f21207f12570a6cb5fe101b
@@ -0,0 +1,49 @@
1
+ name: Scheduled
2
+ on:
3
+ schedule:
4
+ - cron: "0 4 * * 1" # 4am UTC on Mondays (10pm/11pm CT on Sundays)
5
+
6
+ jobs:
7
+ bundler-audit:
8
+ if:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ with:
13
+ fetch-depth: 0
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: 2.7.2
17
+ bundler: 1.17.3
18
+ bundler-cache: true
19
+ - run: |
20
+ gem install bundler-audit
21
+ bundler-audit update
22
+ bundler-audit
23
+
24
+ if [ $? -eq 0 ]; then
25
+ echo "No vulnerabilities found."
26
+ else
27
+ echo "Gem vulnerabilities found!"
28
+ exit 1
29
+ fi
30
+ bundle-outdated:
31
+ runs-on: ubuntu-latest
32
+ steps:
33
+ - uses: actions/checkout@v2
34
+ with:
35
+ fetch-depth: 0
36
+ - uses: ruby/setup-ruby@v1
37
+ with:
38
+ ruby-version: 2.7.2
39
+ bundler: 1.17.3
40
+ bundler-cache: true
41
+ - run: |
42
+ bundle outdated --strict
43
+
44
+ if [ $? -eq 0 ]; then
45
+ echo "No outdated gems found."
46
+ else
47
+ echo "Outdated gems found!"
48
+ exit 1
49
+ fi
data/lib/ninny/git.rb CHANGED
@@ -66,7 +66,7 @@ module Ninny
66
66
  # do_after_pull - Should a pull be done after checkout?
67
67
  def check_out(branch, do_after_pull = true)
68
68
  git.fetch
69
- branch.checkout
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
72
72
  end
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.12'
4
+ VERSION = '0.1.13'
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.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dispatch Engineers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
@@ -286,6 +286,7 @@ extra_rdoc_files: []
286
286
  files:
287
287
  - ".github/pull_request_template.md"
288
288
  - ".github/workflows/main.yml"
289
+ - ".github/workflows/scheduled.yml"
289
290
  - ".gitignore"
290
291
  - ".rspec"
291
292
  - ".rubocop.yml"
@@ -324,7 +325,7 @@ homepage: https://github.com/dispatchinc/ninny
324
325
  licenses:
325
326
  - MIT
326
327
  metadata: {}
327
- post_install_message:
328
+ post_install_message:
328
329
  rdoc_options: []
329
330
  require_paths:
330
331
  - lib
@@ -340,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
340
341
  version: '0'
341
342
  requirements: []
342
343
  rubygems_version: 3.1.4
343
- signing_key:
344
+ signing_key:
344
345
  specification_version: 4
345
346
  summary: 'ninny (n): an foolish person, see: git'
346
347
  test_files: []