march-audit 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/march +2 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c5a98096be4a1aa8fc35ca0c04fd0982b0057cd
4
- data.tar.gz: b7d8ff617c92cc7655cb702efed387d8211539c4
3
+ metadata.gz: 3dd7bb6cf0958cae8533a7d9b42042d629846fea
4
+ data.tar.gz: 03d4d00539d2f9326dcae08d4fcc462e4a670e24
5
5
  SHA512:
6
- metadata.gz: 94314327decbd3f9678015fe4232f77db19b3e64d8bf5935b9b0279aabc1b5af68334a4e38180aab0acac917170af46c3b031be33dfb4deabcf116c3d94d6a67
7
- data.tar.gz: f5f0265a1290a101b048f0127895dedb27f2c1eff957b85cdb94a2b8bf4db8fef4624286400bee904797f44b94a000c53a40486b0562c9aaac04cf5d771387af
6
+ metadata.gz: 98a580e0e65686612415d879766a1fe6c4fba339ce9120dfee78b9070dab2514c46f44fe2a8d932db096309b7b5b5063b73c4b2fcb17df7bf3a384e4bd463b7c
7
+ data.tar.gz: e93826682ec2c213f5d789309d140657d168f64fcfee8ddccb95a346b927c8bab834d8cc1827e2289a27cbf519fe51b5dd17fe9464756bf3189f2e19b2ed1b3d
data/bin/march CHANGED
@@ -7,8 +7,10 @@ module March
7
7
  class_option :interactive, default: true, type: :boolean
8
8
  class_option :destructive, default: false, type: :boolean
9
9
 
10
+ option :max_age, default: 14, type: :numeric
10
11
  desc 'audit NAMESPACE REPO', 'audit of NAMESPACE/REPO branch health'
11
12
  def audit(namespace, repo)
13
+ ENV.store('MAX_AGE', options[:max_age].to_s)
12
14
  March::Audit.complete(namespace, repo, options[:interactive], options[:destructive])
13
15
  rescue Octokit::NotFound
14
16
  puts "Cannot find repository #{namespace}/#{repo}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: march-audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Gwilliam
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.6.7
130
+ rubygems_version: 2.5.1
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: automate audit of repository branches