github-release-party 0.3.5 → 0.3.6
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/github-release-party.rb +4 -5
- data/lib/github-release-party/tasks/heroku.rb +2 -2
- data/lib/github-release-party/version.rb +1 -1
- metadata +6 -6
- metadata.gz.sig +1 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b275fe65a8b6ac130be289ac5f7b1af6f53f48c4ebbafb784cbb14386659c24
|
4
|
+
data.tar.gz: cd19b786aff568234d157f5eae7e81902a97272ccd0976deb4a89fa9dbdde7bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bebba1d515b12e752576732795caee7d364bacfc8df7528db2e808109ca5c9cef08de9f8d224b5640c598aa5196e14b17648e8607690ba9ce3cc7add9cf9c56d
|
7
|
+
data.tar.gz: 24eb66e7bdd380085a67655356d6db00ab8ffcf3b4eb8119a3c3922b6f76d2f4cd3ab4a5f5efdd59b4ea26e73c274377cae393dbd2e893bf384b6c99c7ddc142
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/github-release-party.rb
CHANGED
@@ -23,7 +23,7 @@ class GithubReleaseParty
|
|
23
23
|
def self.update(id, name, message)
|
24
24
|
r = GitHub.patch("/repos/#{repo}/releases/#{id}", {
|
25
25
|
name: name,
|
26
|
-
body: message
|
26
|
+
body: message,
|
27
27
|
}.to_json)
|
28
28
|
if r.success?
|
29
29
|
puts "GitHub release #{name} updated!"
|
@@ -37,7 +37,7 @@ class GithubReleaseParty
|
|
37
37
|
body = {
|
38
38
|
tag_name: tag_name,
|
39
39
|
name: name,
|
40
|
-
body: message
|
40
|
+
body: message,
|
41
41
|
}
|
42
42
|
|
43
43
|
r = GitHub.post("/repos/#{repo}/releases", body.to_json)
|
@@ -48,7 +48,7 @@ class GithubReleaseParty
|
|
48
48
|
puts
|
49
49
|
puts "Body sent: #{body.to_json}"
|
50
50
|
puts
|
51
|
-
puts "Failed to create GitHub release!"
|
51
|
+
puts "Failed to create a GitHub release!"
|
52
52
|
puts "Create it manually here: https://github.com/#{repo}/releases/new?tag=#{tag_name}"
|
53
53
|
puts "Tag version: #{tag_name}"
|
54
54
|
puts "Release title: #{tag_name}"
|
@@ -62,7 +62,7 @@ class GithubReleaseParty
|
|
62
62
|
abort "Configure GITHUB_RELEASE_TOKEN to create GitHub releases. See https://github.com/stefansundin/github-release-party#setup"
|
63
63
|
end
|
64
64
|
if !repo
|
65
|
-
abort "Can't find the GitHub
|
65
|
+
abort "Can't find the GitHub repository. Please use the remote 'origin'."
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
@@ -103,7 +103,6 @@ class GithubReleaseParty
|
|
103
103
|
"User-Agent" => "github-release-party/#{GithubReleaseParty::VERSION}",
|
104
104
|
}
|
105
105
|
if method == :request_post or method == :patch
|
106
|
-
# response = http.send(:request_get, "/", headers)
|
107
106
|
response = http.send(method, request_uri, body, headers)
|
108
107
|
else
|
109
108
|
response = http.send(method, request_uri, headers)
|
@@ -28,7 +28,7 @@ def github_tag(hash, ver)
|
|
28
28
|
last_tag = `git rev-list --max-parents=0 HEAD`.strip[0..6]
|
29
29
|
first_deploy = true
|
30
30
|
end
|
31
|
-
commits = `git log #{last_tag}..#{hash} --first-parent --pretty=format:"- [%s](https://github.com/#{repo}/commit/%H)"`
|
31
|
+
commits = `git log #{last_tag}..#{hash} --reverse --first-parent --pretty=format:"- [%s](https://github.com/#{repo}/commit/%H)"`
|
32
32
|
message = "Deploy #{hash[0..6]}\n\nDiff: https://github.com/#{repo}/compare/#{last_tag}...#{tag_name}\n#{commits}"
|
33
33
|
|
34
34
|
if first_deploy
|
@@ -104,7 +104,7 @@ namespace :deploy do
|
|
104
104
|
|
105
105
|
hash = `git rev-list --max-count=1 #{tag_name}`.strip
|
106
106
|
date = `git show --pretty="format:%ai" -s --no-color #{tag_name} | tail -1`.strip
|
107
|
-
commits = `git log #{last_tag}..#{tag_name} --pretty=format:"- [%s](https://github.com/#{repo}/commit/%H)"`
|
107
|
+
commits = `git log #{last_tag}..#{tag_name} --reverse --pretty=format:"- [%s](https://github.com/#{repo}/commit/%H)"`
|
108
108
|
message = "Deploy #{hash[0..6]}\n\nDiff: https://github.com/#{repo}/compare/#{last_tag}...#{tag_name}\n#{commits}"
|
109
109
|
|
110
110
|
if i == 0
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-release-party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Sundin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
E04BZKo2WzOTzSDymo97Yu4YFgyc98umMyeaCvPk4YmdNzqSanAXpY2bnsyu0CF5
|
32
32
|
Td0=
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2021-04-09 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
@@ -62,7 +62,7 @@ homepage: https://github.com/stefansundin/github-release-party
|
|
62
62
|
licenses:
|
63
63
|
- GPL-3.0
|
64
64
|
metadata: {}
|
65
|
-
post_install_message:
|
65
|
+
post_install_message:
|
66
66
|
rdoc_options: []
|
67
67
|
require_paths:
|
68
68
|
- lib
|
@@ -77,8 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: 1.3.6
|
79
79
|
requirements: []
|
80
|
-
rubygems_version: 3.
|
81
|
-
signing_key:
|
80
|
+
rubygems_version: 3.2.3
|
81
|
+
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: Easily create GitHub releases.
|
84
84
|
test_files: []
|
metadata.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
���e0��~����_bv.A���_�����ĀV��/�;�
|
1
|
+
��hO%�Љ�����8
|