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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40f987ae556eeffe3ab2fca6e4aba94cc54ca9660ce44c7f1780827a1b2cab74
4
- data.tar.gz: 6e0612667bd4a50e5cd332d6825ae44415e1080dd1d7abeafc6fcad41847cd23
3
+ metadata.gz: c365f59f90bdaede02a31dfe60018215087da2a6f8dc6af0fb0652d72e7dcbaf
4
+ data.tar.gz: f613cd28e465bb6d9d0ec8803ae9a0ecc9e819b1970a09aaa59a0ba2034b9a46
5
5
  SHA512:
6
- metadata.gz: 9466b5af4b5be8e33b696f89e5601684226c4a7585ffcfd53ae990674793d539304b3fcdfda81450a7067bebed0386c8b42f2b6a3a6a3b25379404f3751c1560
7
- data.tar.gz: a04bbe4f4b2783f529ee58793ccf88e9de8c2fed7ef73d4cc6884d40d60e09e442ad0c4111fe56a75431af6a7b53f154e83f566e72f65356033a3e487a532175
6
+ metadata.gz: f90dc6f458bba87bd9a68cee0386cfb5aa27cfb39b3cc75c2a7b028156df9a59e025d34bb9a6216116465253fd84e5673a1c012fc8aed329799eca7ed3c138e5
7
+ data.tar.gz: a0b2e769b5da06a13db6f6481606e49f531ea04516434d9dc4fc82685f073685f9b540f9a6b3e091bdf760ad906edfeacf93b6b49e94878addd09f914c6d9153
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Release Manager
2
2
 
3
+ ## 0.9.2
4
+ * Removed slice_when in order to support older rubies.
5
+
3
6
  ## 0.9.1
4
7
  * Adds ability to publish release notes when tagging remotely
5
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- release_manager (0.9.1)
4
+ release_manager (0.9.2)
5
5
  gitlab (~> 4.2.0)
6
6
  highline (~> 1.7)
7
7
  rugged (~> 0.26)
@@ -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.slice_when {|a,b| b.downcase.start_with?('## version') }.map {|d| d}.first
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.slice_when {|a,b| b.downcase.start_with?('## version') }.map {|d| d}.first
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
@@ -1,3 +1,3 @@
1
1
  module ReleaseManager
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
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.1
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-20 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab