chocbomb 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/chocbomb.gemspec +1 -1
- data/lib/chocbomb/tools/feed.rb +3 -1
- data/lib/chocbomb.rb +0 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/chocbomb.gemspec
CHANGED
data/lib/chocbomb/tools/feed.rb
CHANGED
@@ -26,6 +26,8 @@ module ChocBomb
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def make_appcast
|
29
|
+
dsa_signature = `openssl dgst -sha1 -binary < "#{chocbomb.pkg}" | openssl dgst -dss1 -sign "#{chocbomb.private_key}" | openssl enc -base64`
|
30
|
+
|
29
31
|
FileUtils.mkdir_p(chocbomb.build_path)
|
30
32
|
appcast = File.open("#{chocbomb.build_path}/#{chocbomb.appcast_filename}", 'w') do |f|
|
31
33
|
xml = Builder::XmlMarkup.new(:indent => 2)
|
@@ -53,7 +55,7 @@ module ChocBomb
|
|
53
55
|
:length => "#{File.size(chocbomb.pkg)}",
|
54
56
|
:type => "application/dmg",
|
55
57
|
:"sparkle:version" => chocbomb.version,
|
56
|
-
:"sparkle:dsaSignature" =>
|
58
|
+
:"sparkle:dsaSignature" => dsa_signature)
|
57
59
|
end
|
58
60
|
end
|
59
61
|
end
|
data/lib/chocbomb.rb
CHANGED
@@ -143,7 +143,6 @@ module ChocBomb
|
|
143
143
|
|
144
144
|
@appcast_filename ||= su_feed_url ? File.basename(su_feed_url) : 'my_feed.xml'
|
145
145
|
@private_key ||= File.expand_path('dsa_priv.pem')
|
146
|
-
@dsa_signature ||= `openssl dgst -sha1 -binary < "#{@pkg}" | openssl dgst -dss1 -sign "#{@private_key}" | openssl enc -base64`
|
147
146
|
|
148
147
|
@versionless_pkg_name = "#{@name}.dmg"
|
149
148
|
@pkg_relative_url = "#{@base_url.gsub(%r{/$}, '')}/#{@pkg_name}".gsub(%r{^.*#{@host}}, '')
|
metadata
CHANGED