glitter 2.0.0.alpha5 → 2.0.0.alpha6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/glitter/cli.rb CHANGED
@@ -9,7 +9,6 @@ module Glitter
9
9
  method_option :channel, :type => :string, :aliases => "-c"
10
10
  method_option :force, :type => :boolean, :aliases => "-f"
11
11
  def push(executable_path)
12
- p options
13
12
  server = Server.new.channel(options.channel)
14
13
  release = Release::Sparkle.new(server, options.version)
15
14
  release.notes = options.notes
@@ -22,7 +22,6 @@ module Glitter
22
22
 
23
23
  # Push assets up to the S3 bucket path `/:channel/:version/*`.
24
24
  def push(opts={})
25
- p opts
26
25
  if !opts[:force] and version_exists?
27
26
  raise ExistingReleaseError.new("Existing build at version #{version}. Increment the version and push again.")
28
27
  end
@@ -67,7 +66,7 @@ module Glitter
67
66
  end
68
67
  end
69
68
 
70
- # A release consists of a binary asset, notes, a monotonically increasing version number, and
69
+ # A release consists of a binary asset, notes, a monotonically increasing version number, and
71
70
  # lives inside of a channel.
72
71
  class Sparkle < Base
73
72
  attr_accessor :notes, :executable, :filename
@@ -78,7 +77,7 @@ module Glitter
78
77
  @published_at ||= Time.now
79
78
  end
80
79
 
81
- # Generate assets and push
80
+ # Generate assets and push
82
81
  def push(*args)
83
82
  notes_asset
84
83
  appcast_asset
@@ -2,7 +2,7 @@
2
2
  <rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
3
3
  <channel>
4
4
  <title><%= channel.name %></title>
5
- <link><%= executable_asset.url %></link>
5
+ <link><%= assets['appcast.xml'].url %></link>
6
6
  <description>Software updates for <%= channel.name %></description>
7
7
  <language>en</language>
8
8
  <item>
@@ -15,7 +15,6 @@
15
15
  </description>
16
16
  <pubDate><%= published_at.strftime("%a, %d %b %Y %H:%M:%S %z") %></pubDate>
17
17
  <enclosure url="<%= executable_asset.url %>" sparkle:version="<%= version %>" sparkle:shortVersionString="<%= version %>" length="<%= FileTest.size executable.path %>" type="application/octet-stream" />
18
- <sparkle:releaseNotesLink><%= notes %></sparkle:releaseNotesLink>
19
18
  </item>
20
19
  </channel>
21
20
  </rss>
@@ -1,3 +1,3 @@
1
1
  module Glitter
2
- VERSION = "2.0.0.alpha5"
2
+ VERSION = "2.0.0.alpha6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha5
4
+ version: 2.0.0.alpha6
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-03 00:00:00.000000000 Z
12
+ date: 2013-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: s3
16
- requirement: &70351787517980 !ruby/object:Gem::Requirement
16
+ requirement: &70355142744340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70351787517980
24
+ version_requirements: *70355142744340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: haml
27
- requirement: &70351787517560 !ruby/object:Gem::Requirement
27
+ requirement: &70355142743920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70351787517560
35
+ version_requirements: *70355142743920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &70351787517120 !ruby/object:Gem::Requirement
38
+ requirement: &70355142774460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70351787517120
46
+ version_requirements: *70355142774460
47
47
  description: Glitter makes it easy to publish software updates via the Sparkle framework
48
48
  by using S3 buckets.
49
49
  email: