jackal-github-kit 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/jackal-github-kit/hubber.rb +10 -3
- data/lib/jackal-github-kit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f93b48375308c006c24cc56597ccd4725558e05
|
4
|
+
data.tar.gz: ce58f5d327a5ef360e235483de5b956b72856fcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afe6a1358260bc83de5a4a8f31d2c4b02b3a3e7e284e21bccaea7b94dfaccd34381cbff0a731a94e2c347e5eea9033b6005677eeb51d0dfbde7af4ea12b541cc
|
7
|
+
data.tar.gz: 1a0432e91d4eafc518bd1ce2d696ce041379cefb365722ac4833c03dbfeb158689ab0585be88cb9dc90c7546aa0b1ff873e979ec909d5ed30fa79ed749ed13dc
|
data/CHANGELOG.md
CHANGED
@@ -97,19 +97,26 @@ module Jackal
|
|
97
97
|
public_release_url = release.rels[:html].href
|
98
98
|
|
99
99
|
info 'New release created on GitHub. Uploading assets.'
|
100
|
-
rel[:assets].
|
100
|
+
assets = rel[:assets].map do |asset|
|
101
101
|
debug "Uploading release asset - #{asset}"
|
102
|
-
github_client.upload_asset(
|
102
|
+
response = github_client.upload_asset(
|
103
103
|
api_release_url,
|
104
104
|
asset_store.get(asset),
|
105
105
|
:name => asset.sub(/^.+?_/, ''),
|
106
106
|
:content_type => 'application/octet-stream'
|
107
107
|
)
|
108
108
|
debug "Completed release asset upload - #{asset}"
|
109
|
+
Smash.new(
|
110
|
+
:url => response[:url],
|
111
|
+
:browser_url => response[:browser_download_url],
|
112
|
+
:name => response[:name],
|
113
|
+
:id => response[:id]
|
114
|
+
)
|
109
115
|
end
|
110
|
-
|
116
|
+
payload.set(:data, :github_kit, :release, :assets, assets)
|
111
117
|
payload.set(:data, :github_kit, :release, :api_url, api_release_url)
|
112
118
|
payload.set(:data, :github_kit, :release, :public_url, public_release_url)
|
119
|
+
|
113
120
|
true
|
114
121
|
end
|
115
122
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jackal-github-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jackal
|