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 CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/chocbomb.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{chocbomb}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["glejeune"]
@@ -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" => chocbomb.dsa_signature)
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chocbomb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - glejeune