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 +5 -5
- data/.ruby-version +1 -1
- data/CHANGELOG.markdown +6 -0
- data/bin/octopolo +22 -0
- data/lib/octopolo/semver_tag_scrubber.rb +11 -3
- data/lib/octopolo/version.rb +1 -1
- data/spec/octopolo/semver_tag_scrubber_spec.rb +16 -0
- metadata +4 -3
- data/bin/octopolo +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5af99ee5f0b564fb3fa78fdc48e37595aeb20294
|
4
|
+
data.tar.gz: bbb7cbb5c28f14189ebe7062cf41d4746ba0200b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2598e244a376fc78c1c23a326457c0a6adeaee370e7b1ebdcfb509e3e4518b95fac844d0caeb2a3de81e8a492f567ab7932060e3e6b672d3d71fc9c53feb242
|
7
|
+
data.tar.gz: 90a76099af6a83bd1be206ef5ce2d2b18cf634682aea2b1329fbaf1204338d73e4d0d559ecb8df22b19410c919d1cc189157e928f95dfcb47d7eb113117d46e1
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0-p648
|
data/CHANGELOG.markdown
CHANGED
data/bin/octopolo
ADDED
@@ -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
|
-
|
16
|
-
|
17
|
-
|
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
|
data/lib/octopolo/version.rb
CHANGED
@@ -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.
|
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:
|
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
|
-
|
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
|
data/bin/octopolo
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
bin/op
|