fastlane-plugin-changelog 0.13.0 → 0.14.0
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b75c418b0bdc7d033a04fc8e2b5cd35b8e1784d
|
4
|
+
data.tar.gz: 47031da7b4f132a38a12f35f667a21421af06d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb362ab6745365a8565f46c1f12c4b11490e0607d93a25dcda5c644f536a865f0adfaa5c698555887a5e06a8a9c9066ab2aa48cd19bbb61a6a4d1c10149abd5e
|
7
|
+
data.tar.gz: 371fb011fea1cd5f63c48deb874c34ad3cac7101459e76c208da9e67d882ed8abc3b7412830fb7ac973b05de33e388de4b2ec76b9e4a54ffdb6fb3446ae565a0
|
@@ -64,27 +64,33 @@ module Fastlane
|
|
64
64
|
# 3. Create link to git tags diff
|
65
65
|
if !git_tag.nil? && !git_tag.empty?
|
66
66
|
last_line = file_content.lines.last
|
67
|
-
previous_tag =
|
68
|
-
previous_previous_tag =
|
67
|
+
previous_tag = ''
|
68
|
+
previous_previous_tag = ''
|
69
|
+
reversed_tags = false
|
69
70
|
|
70
71
|
if last_line.include? 'https://github.com' # GitHub uses compare/olderTag...newerTag structure
|
71
72
|
previous_previous_tag = %r{(?<=compare\/)(.*)?(?=\.{3})}.match(last_line)
|
72
73
|
previous_tag = /(?<=\.{3})(.*)?/.match(last_line)
|
73
74
|
elsif last_line.include? 'https://bitbucket.org' # Bitbucket uses compare/newerTag..olderTag structure
|
75
|
+
reversed_tags = true
|
74
76
|
previous_tag = %r{(?<=compare\/)(.*)?(?=\.{2})}.match(last_line)
|
75
77
|
previous_previous_tag = /(?<=\.{2})(.*)?/.match(last_line)
|
76
78
|
end
|
77
79
|
|
78
80
|
# Replace section identifier
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
81
|
+
previous_section_identifier = /(?<=\[)[^\]]+(?=\]:)/.match(last_line)
|
82
|
+
last_line.sub!("[#{previous_section_identifier}]:", "[#{section_identifier}]:")
|
83
|
+
|
84
|
+
# Replace first tag
|
85
|
+
last_line.sub!(
|
86
|
+
reversed_tags ? previous_tag.to_s : previous_previous_tag.to_s,
|
87
|
+
reversed_tags ? git_tag.to_s : previous_tag.to_s
|
88
|
+
)
|
89
|
+
# Replace second tag
|
90
|
+
last_line.sub!(
|
91
|
+
"..#{reversed_tags ? previous_previous_tag : previous_tag}",
|
92
|
+
"..#{reversed_tags ? previous_tag : git_tag}"
|
93
|
+
)
|
88
94
|
|
89
95
|
UI.message("Created a link for comparison between #{previous_tag} and #{git_tag} tag")
|
90
96
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-changelog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Prochazka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|