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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d03126fcac1f91bcbff8399b1d7cfd5fcc2f8c00
4
- data.tar.gz: 8e4937d981f0f9bbc8bf6aa87e97975b99d85c86
3
+ metadata.gz: 4f93b48375308c006c24cc56597ccd4725558e05
4
+ data.tar.gz: ce58f5d327a5ef360e235483de5b956b72856fcb
5
5
  SHA512:
6
- metadata.gz: 275b6804fff1b98126084b1c04c34c0f8590181698fd57222a86e7c9bb9e8a2b1571c1187f70ea062ade8d016e63c1e098d2c650351b65ca6f7863614020c58b
7
- data.tar.gz: 642d63754ed446f144843d86d1d803fb34c8ac702879068877a6a334018a0d00836d5f4fcaea58bfe314215406483a2c369fca18cc226877162a195877fc8c8d
6
+ metadata.gz: afe6a1358260bc83de5a4a8f31d2c4b02b3a3e7e284e21bccaea7b94dfaccd34381cbff0a731a94e2c347e5eea9033b6005677eeb51d0dfbde7af4ea12b541cc
7
+ data.tar.gz: 1a0432e91d4eafc518bd1ce2d696ce041379cefb365722ac4833c03dbfeb158689ab0585be88cb9dc90c7546aa0b1ff873e979ec909d5ed30fa79ed749ed13dc
@@ -1,2 +1,5 @@
1
+ # v0.1.2
2
+ * Store information on release assets uploaded
3
+
1
4
  # v0.1.0
2
5
  * Initial commit
@@ -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].each do |asset|
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
 
@@ -1,6 +1,6 @@
1
1
  module Jackal
2
2
  module GithubKit
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.0')
4
+ VERSION = Gem::Version.new('0.1.2')
5
5
  end
6
6
  end
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.0
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-03-04 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jackal