discharger 0.1.1 → 0.1.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 +4 -4
- data/lib/discharger/task.rb +11 -2
- data/lib/discharger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17e1cf49832de6e2bbcf990289907684435990aa6b249e9dcba721a2f9c59ab0
|
4
|
+
data.tar.gz: dc11af6aa1fe45414c9e2dcd953ec900f54142bbbcc9ed527894b62aedb8c2db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb76119976ac98d572e4aeb634a552e955d02e67978c9836e146754e03745def4366efc65962a540baf1bcc80b0a209d36cb4d2298aab9c406e25d7908504191
|
7
|
+
data.tar.gz: 8fc37f62ff0cff71f49faf68399405ed054605a504050a395ef0a2fb103b0c6b34d620474711bc11fc522ecba6e44669baf0d02f44de1b9fbb7d662bbfcea534
|
data/lib/discharger/task.rb
CHANGED
@@ -8,6 +8,15 @@ module Discharger
|
|
8
8
|
def self.create(name = :release, &block)
|
9
9
|
task = new(name)
|
10
10
|
task.instance_eval(&block) if block
|
11
|
+
Reissue::Task.create do |reissue|
|
12
|
+
reissue.version_file = task.version_file
|
13
|
+
reissue.version_limit = task.version_limit
|
14
|
+
reissue.version_redo_proc = task.version_redo_proc
|
15
|
+
reissue.changelog_file = task.changelog_file
|
16
|
+
reissue.updated_paths = task.updated_paths
|
17
|
+
reissue.commit = task.commit
|
18
|
+
reissue.commit_finalize = task.commit
|
19
|
+
end
|
11
20
|
task.define
|
12
21
|
task
|
13
22
|
end
|
@@ -134,7 +143,7 @@ module Discharger
|
|
134
143
|
"git tag -a v#{current_version} -m 'Release #{current_version}'",
|
135
144
|
"git push origin #{production_branch}; git push origin v#{current_version}"
|
136
145
|
) do
|
137
|
-
Rake::Task["slack"].invoke("Released #{Qualify.name} #{current_version} to production.", release_message_channel, ":chipmunk:")
|
146
|
+
Rake::Task["#{name}:slack"].invoke("Released #{Qualify.name} #{current_version} to production.", release_message_channel, ":chipmunk:")
|
138
147
|
syscall "git checkout #{working_branch}"
|
139
148
|
end
|
140
149
|
|
@@ -181,7 +190,7 @@ module Discharger
|
|
181
190
|
"git checkout -b #{staging_branch}",
|
182
191
|
"git push origin #{staging_branch} --force"
|
183
192
|
) do
|
184
|
-
Rake::Task["slack"].invoke("Building #{app_name} #{commit_identifier.call} on #{staging_branch}.", release_message_channel)
|
193
|
+
Rake::Task["#{name}:slack"].invoke("Building #{app_name} #{commit_identifier.call} on #{staging_branch}.", release_message_channel)
|
185
194
|
syscall "git checkout #{working_branch}"
|
186
195
|
end
|
187
196
|
end
|
data/lib/discharger/version.rb
CHANGED