release_manager 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/release_manager/changelog.rb +4 -3
- data/lib/release_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c365f59f90bdaede02a31dfe60018215087da2a6f8dc6af0fb0652d72e7dcbaf
|
4
|
+
data.tar.gz: f613cd28e465bb6d9d0ec8803ae9a0ecc9e819b1970a09aaa59a0ba2034b9a46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f90dc6f458bba87bd9a68cee0386cfb5aa27cfb39b3cc75c2a7b028156df9a59e025d34bb9a6216116465253fd84e5673a1c012fc8aed329799eca7ed3c138e5
|
7
|
+
data.tar.gz: a0b2e769b5da06a13db6f6481606e49f531ea04516434d9dc4fc82685f073685f9b540f9a6b3e091bdf760ad906edfeacf93b6b49e94878addd09f914c6d9153
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -82,9 +82,9 @@ class Changelog < WorkflowAction
|
|
82
82
|
|
83
83
|
# @return [Array] - array of lines of the unreleased content, text between unreleased and next version
|
84
84
|
def get_unreleased_content
|
85
|
-
unreleased_index
|
86
85
|
start_content = changelog_lines.slice((unreleased_index + 1), changelog_lines.count)
|
87
|
-
start_content.
|
86
|
+
end_index = start_content.find_index {|line| line.downcase.start_with?('## version')}
|
87
|
+
end_index ? start_content.slice(0, end_index) : start_content
|
88
88
|
end
|
89
89
|
|
90
90
|
# @return [Array] - array of lines of the specified version content, text between specified version and next version
|
@@ -94,7 +94,8 @@ class Changelog < WorkflowAction
|
|
94
94
|
start_index = changelog_lines.find_index {|line| line.downcase.include?("version #{version}") }
|
95
95
|
return nil unless start_index
|
96
96
|
start_content = changelog_lines.slice((start_index + 1), changelog_lines.count)
|
97
|
-
start_content.
|
97
|
+
end_index = start_content.find_index {|line| line.downcase.start_with?('## version')}
|
98
|
+
end_index ? start_content.slice(0, end_index) : start_content
|
98
99
|
end
|
99
100
|
|
100
101
|
# @returns [Array[String]] - inserts the version header in the change log and returns the entire array of lines
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: release_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|