octopolo 1.11.1 → 1.11.3

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
- SHA256:
3
- metadata.gz: 9e9dcb3c285dee728e32143793b4f45f362545283e9519f05e0248ac331a39a4
4
- data.tar.gz: 78c611ed4b2c9a2a9bfe245bb59214eaa1324111db2ba07bb2201e1839030df2
2
+ SHA1:
3
+ metadata.gz: 5af99ee5f0b564fb3fa78fdc48e37595aeb20294
4
+ data.tar.gz: bbb7cbb5c28f14189ebe7062cf41d4746ba0200b
5
5
  SHA512:
6
- metadata.gz: 532b9e43dc89f90caed04adaf89374451607da2cf37f90b2d87128d7dd694e070a9b2023e0c9660da5e0b9839f006c8d336ac5fffccab27763d30099b528b0d5
7
- data.tar.gz: f6fee048785044cab4089f1a6c4df05c5616d3d98b610c1d1af4b0446ce630e638882a790555a8fe580c187f93e955a19ef001788f887f181a0554fbbe2d4c14
6
+ metadata.gz: f2598e244a376fc78c1c23a326457c0a6adeaee370e7b1ebdcfb509e3e4518b95fac844d0caeb2a3de81e8a492f567ab7932060e3e6b672d3d71fc9c53feb242
7
+ data.tar.gz: 90a76099af6a83bd1be206ef5ce2d2b18cf634682aea2b1329fbaf1204338d73e4d0d559ecb8df22b19410c919d1cc189157e928f95dfcb47d7eb113117d46e1
@@ -1 +1 @@
1
- ruby-2.0.0
1
+ 2.0.0-p648
@@ -1,3 +1,9 @@
1
+ #### v1.11.3
2
+ #### v1.11.2
3
+ * Fix bug where op tag-release on repo with no releases breaks
4
+
5
+ > Emma Sax: production-status-check[bot]: https://github.com/sportngin/octopolo/pull/139
6
+
1
7
  #### v1.11.1
2
8
  * Make expedite's branch form more flexible
3
9
 
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'gli'
4
+ require_relative '../lib/octopolo'
5
+
6
+ include GLI::App
7
+
8
+ program_desc 'GitHub workflow scripts. From the Ngineers at Sport Ngin.'
9
+ version Octopolo::VERSION
10
+
11
+ autocomplete_commands false
12
+ wrap_help_text :verbatim
13
+
14
+ program_long_desc """
15
+ DOCUMENTATION
16
+ For documentation and help in setting up your configuration files,
17
+ see Octopolo's GitHub repo: https://github.com/sportngin/octopolo
18
+ """
19
+
20
+ commands_from File.expand_path(File.dirname(__FILE__) + '/../lib/octopolo/commands')
21
+
22
+ exit run(ARGV)
@@ -12,9 +12,17 @@ module Octopolo
12
12
  private
13
13
 
14
14
  def self.scrub_via_regexp(tag, regexp)
15
- result = tag.match(regexp)[0]
16
- tag.gsub!(regexp, '')
17
- result
15
+ begin
16
+ result = tag.match(regexp)[0]
17
+ tag.gsub!(regexp, '')
18
+ result
19
+ rescue Exception => e
20
+ if e.message.include?("match' for nil:NilClass")
21
+ puts 'You are creating the first GitHub release for this repository.'
22
+ else
23
+ puts "Error finding existing GitHub release(s): #{e.message}"
24
+ end
25
+ end
18
26
  end
19
27
 
20
28
  end
@@ -1,3 +1,3 @@
1
1
  module Octopolo
2
- VERSION = "1.11.1"
2
+ VERSION = "1.11.3"
3
3
  end
@@ -27,5 +27,21 @@ module Octopolo
27
27
  end
28
28
  end
29
29
 
30
+ describe 'scrub_via_regexp' do
31
+ let(:regexp) { /[a-z]*\z/i }
32
+ let(:tag) { '0.1.1' }
33
+
34
+ it 'should return a string' do
35
+ expect(SemverTagScrubber.scrub_via_regexp(tag, regexp)).to be_a(String)
36
+ end
37
+
38
+ it 'should not raise an error if the tag does not exist' do
39
+ expect{ SemverTagScrubber.scrub_via_regexp(nil, regexp) }.not_to raise_error(NoMethodError)
40
+ end
41
+
42
+ it 'should return nil if there was no tag' do
43
+ expect(SemverTagScrubber.scrub_via_regexp(nil, regexp)).to eq(nil)
44
+ end
45
+ end
30
46
  end
31
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopolo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.1
4
+ version: 1.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Byrne
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-11-04 00:00:00.000000000 Z
13
+ date: 2020-06-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gli
@@ -388,7 +388,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
388
388
  - !ruby/object:Gem::Version
389
389
  version: '0'
390
390
  requirements: []
391
- rubygems_version: 3.0.2
391
+ rubyforge_project:
392
+ rubygems_version: 2.0.14.1
392
393
  signing_key:
393
394
  specification_version: 4
394
395
  summary: A set of GitHub workflow scripts to provide a smooth development process
@@ -1 +0,0 @@
1
- bin/op