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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6840d1e8e5e7d2dcc90508c9613d9b6d61a7d842a6f522f77013980b5dbdd36
4
- data.tar.gz: ef7eeb6d0a204e684e4acaea7765e519510148f64f2701c26db34dc5838045fb
3
+ metadata.gz: 17e1cf49832de6e2bbcf990289907684435990aa6b249e9dcba721a2f9c59ab0
4
+ data.tar.gz: dc11af6aa1fe45414c9e2dcd953ec900f54142bbbcc9ed527894b62aedb8c2db
5
5
  SHA512:
6
- metadata.gz: de7468a74eae4acaeb74e0f231a8347cec99e4c69c0570f1e0a1f697f97017b2063aff1b0d0ffa20ed55e818ae6e8055c1a346626f513e810a50b9b55b82af46
7
- data.tar.gz: a3dab8f936945b2fb428a1d1596b04f959b492a9c0bf325bb25657fae36c49566255f2cc237a37de09779947f3ca1d8cc49846b49f5d26bdeed33156399bceda
6
+ metadata.gz: cb76119976ac98d572e4aeb634a552e955d02e67978c9836e146754e03745def4366efc65962a540baf1bcc80b0a209d36cb4d2298aab9c406e25d7908504191
7
+ data.tar.gz: 8fc37f62ff0cff71f49faf68399405ed054605a504050a395ef0a2fb103b0c6b34d620474711bc11fc522ecba6e44669baf0d02f44de1b9fbb7d662bbfcea534
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Discharger
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discharger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay