fastlane-plugin-write_changelog_from_commits 1.2.0 → 2.2.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
  SHA256:
3
- metadata.gz: 42e990c95948394f9c8b8f868c098e023243c9d3495079a5b38bfc83c544fc03
4
- data.tar.gz: ec3b311fdcbf99f9fa60a348911c65fe5c3d19d9018f2c347551c2a06a02418e
3
+ metadata.gz: 89f1dda754ffd1405af1554d102d98483dc72cf476cd25a637d671c961a0e42c
4
+ data.tar.gz: 164365bbd1a559263249d4f28af6d319b842c8a1c18c0ada966569926e78b181
5
5
  SHA512:
6
- metadata.gz: 14bea495b0582817ee2590c2283755186cec0386207254a7a7053137c2df3c5508f644d641e7d82127d444278250671a509fa8308b004c9bedc64d9561fe6206
7
- data.tar.gz: 800445a532568151adb29230e4cb1b506ccf02a2e67b0b3d2b1d94ed0a37c0d3a3141cf37642779c1d4fa280bb0ca466ddbd59b8f607f57425b00eb39f6de172
6
+ metadata.gz: ab7aca7beb391dae78baba65ad3a5e7a3e0ebc6a40a490a089110d1401ac90ee20e3e00d30cb39dee16b204d79af4898caf7d5dba47e521d6037e9fe246235cd
7
+ data.tar.gz: 914ae0435d437f5346c6439ae5009bb893aff44ee7bdc2a3a45e21b8e373e09763e9135bcabd4c61cc1c3d83541ce175266f4966b369eaea0872a35b990ed491
@@ -1,10 +1,9 @@
1
- require 'fastlane/action'
2
- require_relative '../helper/write_changelog_from_commits_helper'
1
+ require "fastlane/action"
2
+ require_relative "../helper/write_changelog_from_commits_helper"
3
3
 
4
4
  module Fastlane
5
5
  module Actions
6
6
  class WriteChangelogFromCommitsAction < Action
7
-
8
7
  def self.run(params)
9
8
  if params[:additional_section_name].nil? && params[:commit_prefixes].nil?
10
9
  raise "Please provide either 'additional_section_name' or 'commit_prefixes' to action"
@@ -12,14 +11,15 @@ module Fastlane
12
11
 
13
12
  from = Actions.last_git_tag_name
14
13
  UI.verbose("Found the last Git tag: #{from}")
15
- to = 'HEAD'
14
+ to = "HEAD"
16
15
 
17
16
  if params[:path].nil?
18
17
  UI.message("No path provided, using default at '/'")
19
- params[:path] = './' unless params[:path]
18
+ params[:path] = "./" unless params[:path]
20
19
  end
21
20
 
22
- params[:commit_prefixes] ||= []
21
+ params[:commit_prefixes] ||= ""
22
+ params[:commit_prefixes] = params[:commit_prefixes].gsub(/\s+/, "").split(",")
23
23
 
24
24
  Dir.chdir(params[:path]) do
25
25
  changelog = Actions.git_log_between("%B", from, to, nil, nil, nil)
@@ -100,43 +100,43 @@ module Fastlane
100
100
  [
101
101
  FastlaneCore::ConfigItem.new(
102
102
  key: :path,
103
- env_name: 'WRITE_CHANGELOG_FROM_COMMITS_PATH',
104
- description: 'Path of the git repository',
103
+ env_name: "WRITE_CHANGELOG_FROM_COMMITS_PATH",
104
+ description: "Path of the git repository",
105
105
  optional: true,
106
- default_value: './'
106
+ default_value: "./",
107
107
  ),
108
108
  FastlaneCore::ConfigItem.new(
109
109
  key: :quiet,
110
- env_name: 'WRITE_CHANGELOG_FROM_COMMITS_TAG_QUIET',
111
- description: 'Whether or not to disable changelog output',
110
+ env_name: "WRITE_CHANGELOG_FROM_COMMITS_TAG_QUIET",
111
+ description: "Whether or not to disable changelog output",
112
112
  optional: true,
113
113
  default_value: false,
114
- is_string: false
114
+ is_string: false,
115
115
  ),
116
116
  FastlaneCore::ConfigItem.new(
117
117
  key: :changelog_dir,
118
- env_name: 'WRITE_CHANGELOG_FROM_COMMITS_CHANGELOG_DIR',
119
- description: 'Path to write new changelogs',
120
- optional: false
118
+ env_name: "WRITE_CHANGELOG_FROM_COMMITS_CHANGELOG_DIR",
119
+ description: "Path to write new changelogs",
120
+ optional: false,
121
121
  ),
122
122
  FastlaneCore::ConfigItem.new(
123
123
  key: :commit_prefixes,
124
124
  env_name: "WRITE_CHANGELOG_FROM_COMMITS_PREFIXES",
125
- description: "List of prefixes to group in the changelog (omit to place all lines under additional_section_name)",
125
+ description: "Comma separated list of prefixes to group in the changelog (omit to place all lines under additional_section_name)",
126
126
  type: Array,
127
- optional: true
127
+ optional: true,
128
128
  ),
129
129
  FastlaneCore::ConfigItem.new(
130
130
  key: :additional_section_name,
131
131
  env_name: "WRITE_CHANGELOG_FROM_COMMITS_ADDITIONAL_SECTION",
132
132
  description: "Section to contain all other commit lines (omit if you only want to log lines beginning with prefixes)",
133
- optional: true
133
+ optional: true,
134
134
  ),
135
135
  FastlaneCore::ConfigItem.new(
136
136
  key: :version_code,
137
137
  env_name: "WRITE_CHANGELOG_FROM_COMMITS_VERSION_CODE",
138
138
  description: "Version code used to create file",
139
- optional: true
139
+ optional: true,
140
140
  ),
141
141
  FastlaneCore::ConfigItem.new(
142
142
  key: :read_only,
@@ -144,8 +144,8 @@ module Fastlane
144
144
  description: "If true will simply return the changelog rather than writing it",
145
145
  optional: true,
146
146
  default_value: false,
147
- is_string: false
148
- )
147
+ is_string: false,
148
+ ),
149
149
  ]
150
150
  end
151
151
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module WriteChangelogFromCommits
3
- VERSION = "1.2.0"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-write_changelog_from_commits
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lewis Bright
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-15 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 0.49.1
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 0.49.1
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-require_tools
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,34 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: simplecov
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +156,14 @@ dependencies:
128
156
  requirements:
129
157
  - - ">="
130
158
  - !ruby/object:Gem::Version
131
- version: 2.168.0
159
+ version: '0'
132
160
  type: :development
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
164
  - - ">="
137
165
  - !ruby/object:Gem::Version
138
- version: 2.168.0
166
+ version: '0'
139
167
  description:
140
168
  email: lewis_bright@yahoo.com
141
169
  executables: []