github-release-party 0.4.2 → 0.4.3

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: 4628aa91ed6ea25c8c5e9abb389d1cbd3a7818eb157a5a91cd3d025666e991c3
4
- data.tar.gz: aefee785fe0dbdac1f7d0282d9d73534d594f92752276fab76c3a8b33a1e74a5
3
+ metadata.gz: 0e4d298c26526be7331b53c1595a5baa779b7986df66cdb3842b358b43e55f5c
4
+ data.tar.gz: 55f1b813006cf5cd112cf10166881e6d70c252d5833259cfa2715fa77376e70f
5
5
  SHA512:
6
- metadata.gz: e6bad6b486467baeeea176ef926d161ea8b48280b0181ee29ce042f9d8763373f1696cad0246f6ddfcb0da6bf536ed6e01b23cda75e961853109b00340dfb575
7
- data.tar.gz: 71671b2596f5880f861ae4152286026317e75b061ecabd97edb483ddb466991fec658ae52b3abf749971f7929ed371a0ed8daadc7b068dae3e1b5459e5c4c5fc
6
+ metadata.gz: 214802b40794d344479c9277c0b5342efc7694974e2d492f27eafe76e0ffd8619df2cf3542d87728a1c1f224ce1ff9db2c5d431c63ae433d603309a279a957c3
7
+ data.tar.gz: 27f62ad62f154d3fb71898fac973c474c68c2d4d2fb2868b949e6ba41267420a030454dc575187d03f7719672a9cbd506c3f2a5bfe6214c72ccc531ca8d1a8e8
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- 8�L\9�+���pk�~2��=���yoc㈦�������^_C���R��t��Ĝ�޶"�m�|�iv�Nd�*�q�G��'��}��vu�m����r�� �4`�3��'�p(���c���2��z���������kW��v����z.���`'4���Qxw�܀�k��l)�D��:f� {�5IR����)<��)NRcx���'f!ر��4�aLV9h[@Q�zɶ�(׶��G%">��A�N�
2
- s*�
1
+ |;��E
@@ -3,19 +3,18 @@ require "shellwords"
3
3
  require "github-release-party"
4
4
 
5
5
  def fly_deploy(args=[])
6
- # grab the new version number from the "fly deploy" output
7
6
  cmd = %w[fly deploy] + args
8
- ver = Open3.popen2e(*cmd) do |stdin, output, thread|
9
- v = nil
10
- output.each do |line|
11
- puts line
12
- if /--> release (v\d+) created/ =~ line
13
- v = $~[1]
14
- end
15
- end
16
- v
17
- end
18
- return ver
7
+ return system(*cmd)
8
+ end
9
+
10
+ def fly_releases()
11
+ data = `fly releases --json`
12
+ abort if not $?.success?
13
+ return JSON.parse(data)
14
+ rescue => err
15
+ puts "There was a problem getting the release number."
16
+ puts "The error was: #{err.message}"
17
+ abort
19
18
  end
20
19
 
21
20
  def github_tag(hash, ver)
@@ -55,7 +54,9 @@ end
55
54
  desc "Deploy a new version to Fly"
56
55
  task :deploy do
57
56
  GithubReleaseParty.check_env!
58
- ver = fly_deploy() or abort("Deploy failed.")
57
+ fly_deploy() or abort("Deploy failed.")
58
+ releases = fly_releases()
59
+ ver = "v#{releases[0]["Version"]}"
59
60
  hash = `git rev-parse HEAD`.strip
60
61
  github_tag(hash, ver)
61
62
  end
@@ -64,20 +65,9 @@ namespace :deploy do
64
65
  desc "Tag last release"
65
66
  task :tag do
66
67
  GithubReleaseParty.check_env!
67
-
68
- # get fly version number
69
- begin
70
- data = `fly releases --json`
71
- abort if not $?.success?
72
- fly_releases = JSON.parse(data)
73
- ver = "v#{fly_releases[0]["Version"]}"
74
- hash = `git rev-parse HEAD`.strip
75
- rescue => err
76
- puts "There was a problem getting the release number."
77
- puts "The error was: #{err.message}"
78
- abort
79
- end
80
-
68
+ releases = fly_releases()
69
+ ver = "v#{releases[0]["Version"]}"
70
+ hash = `git rev-parse HEAD`.strip
81
71
  github_tag(hash, ver)
82
72
  end
83
73
 
@@ -1,3 +1,3 @@
1
1
  class GithubReleaseParty
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-release-party
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Sundin
@@ -31,7 +31,7 @@ cert_chain:
31
31
  E04BZKo2WzOTzSDymo97Yu4YFgyc98umMyeaCvPk4YmdNzqSanAXpY2bnsyu0CF5
32
32
  Td0=
33
33
  -----END CERTIFICATE-----
34
- date: 2023-02-19 00:00:00.000000000 Z
34
+ date: 2024-01-06 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  - !ruby/object:Gem::Version
79
79
  version: 1.3.6
80
80
  requirements: []
81
- rubygems_version: 3.4.6
81
+ rubygems_version: 3.4.17
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: Easily create GitHub releases.
metadata.gz.sig CHANGED
Binary file