github-release-party 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36e90a03908ef079b264f0e8159049566e4f94acf164dfbcdd5c360936856729
4
- data.tar.gz: 2d3d346a630f2afe897f30b9aba7e6623a9fec2fc3b8794962c9fed8c2ff3e77
3
+ metadata.gz: 8b275fe65a8b6ac130be289ac5f7b1af6f53f48c4ebbafb784cbb14386659c24
4
+ data.tar.gz: cd19b786aff568234d157f5eae7e81902a97272ccd0976deb4a89fa9dbdde7bf
5
5
  SHA512:
6
- metadata.gz: c2339bf5e9a31063e2292488431cda41aab6b342dc272c19821152cac54f1544848492d5cb5089ca09a5ae78b18597b4fff34bee24e510831dbc0017990ef8e3
7
- data.tar.gz: '08ccc13edd9326240bcda6fa0a2d9735bba3cd65a8436a3af73c5a9d8711d84d57a25399493a57ef010697b3c138062acdebb232b7cbfe6d1f716adf80767b96'
6
+ metadata.gz: bebba1d515b12e752576732795caee7d364bacfc8df7528db2e808109ca5c9cef08de9f8d224b5640c598aa5196e14b17648e8607690ba9ce3cc7add9cf9c56d
7
+ data.tar.gz: 24eb66e7bdd380085a67655356d6db00ab8ffcf3b4eb8119a3c3922b6f76d2f4cd3ab4a5f5efdd59b4ea26e73c274377cae393dbd2e893bf384b6c99c7ddc142
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 repo. Please use the remote 'origin'."
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
@@ -1,3 +1,3 @@
1
1
  class GithubReleaseParty
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
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.5
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: 2019-12-23 00:00:00.000000000 Z
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.0.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
- y�d�L`�*0�T�$���r��+�&0)G�է��J����G��L]ڑ:-`0�ѿr��������I�T��~�y�H��9Iģ�>ۧg��Y�&kf*��lm�hq­�|����c7n<}ժC�{tբ[��n벓�D�`��.���6���9C����¬ ���������2#n(<N��aE4�
2
- ���e0��~����_bv.A���_�����ĀV��/�;�
1
+ ��hO%�Љ�����8