glitter 2.0.1 → 2.0.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: ff2fd93522c2e643fe29153618ca0ffec34bb426
4
- data.tar.gz: cbfa68a7f78a0c2859eb18dc253dfcac0096de7b
3
+ metadata.gz: 933224f234e6c794b126b62e609a7fc997cca493
4
+ data.tar.gz: 473fa43aee7d10e862be6e22a143cd704419c26a
5
5
  SHA512:
6
- metadata.gz: 3e34044f36f949f282290d9764ebee24538fd49c3a54f1ee2e79905b54efc087bf7a358944611c75083b8f8ce386709b0b62fdd2d95f1de62aa2abf8deacdbdf
7
- data.tar.gz: e22c4af7cb00c0e710825e00cfe45dfe4169ef0baa79f08603b544dee15218aeb62cb767244c893dac07ad9b90c10247e4027b81ad8397932457125b139d744b
6
+ metadata.gz: c81aa3d6de7b3bde56b491a3b05161c2be49711ab63193b391599d2346278552d2e0f415f7c479af325e8e5b77103e5fd5b43eda513a5b897ea52761b6f56d5c
7
+ data.tar.gz: 581c3f5f89da167e88fb526045fc7a49135879063f7f8d04bc7f1f75c490218347e18639a64b2959d0a51b89c73d808b72849fe5d80628bf847c09849fbad222
data/README.md CHANGED
@@ -42,16 +42,17 @@ Glitter also supports the concepts of release channels, which makes it possible
42
42
 
43
43
  More complex installers may need to push more than one asset up to the web. For example, a .NET application will have a setup.exe installer that runs either a 64-bit or 32-bit MSI installer. To that, provide multiple paths to the CLI. *The first asset will be interpolated into the appcast.xml file*, so make sure its your setup file. Everything else will simply tag along for the ride.
44
44
 
45
- ```sh
46
- $ AWS_ACCESS_KEY_ID=secret_access_key \
47
- AWS_SECRET_ACCESS_KEY=access_key_id \
48
- AWS_BUCKET_NAME=my-app-bucket \
49
- glitter push my-app.exe my-app-64-bit.msi my-app-32-bit.msi -v 1.2.5 -c "mac-edge" \
50
- -n 'Added some really cool stuff to the mix!'
51
-
52
- Pushing app my-app.dmg to https://s3.amazonaws.com/mac-edge/1.2.5/my-app.dmg
53
- Updated head https://s3.amazonaws.com/mac-edge/my-app.dmg to https://s3.amazonaws.com/mac-edge/1.2.5/my-app.dmg
54
- ```
45
+ ```sh
46
+ $ AWS_ACCESS_KEY_ID=secret_access_key \
47
+ AWS_SECRET_ACCESS_KEY=access_key_id \
48
+ AWS_BUCKET_NAME=my-app-bucket \
49
+ glitter push my-app.exe my-app-64-bit.msi my-app-32-bit.msi -v 1.2.5 -c "win-edge" \
50
+ -n 'Added some really cool stuff to the mix!'
51
+
52
+ Pushing app my-app.dmg to https://s3.amazonaws.com/win-edge/1.2.5/my-app.dmg
53
+ Updated head https://s3.amazonaws.com/win-edge/my-app.exe to https://s3.amazonaws.com/win-edge/1.2.5/my-app.exe
54
+ # ...
55
+ ```
55
56
 
56
57
  Remember, you'll only want one main installation or package file per channel. If you need multiple installers or packages, consider setting up different channels.
57
58
 
@@ -4,12 +4,14 @@ module Glitter
4
4
  # Command line interface for cutting glitter builds
5
5
  class CLI < Thor
6
6
  desc "push", "pushes a build to a channel with release notes."
7
- method_option :version, :type => :string, :aliases => "-v", :required => true
8
- method_option :channel, :type => :string, :aliases => "-c", :required => true
9
- method_option :notes, :type => :string, :aliases => "-n"
10
- method_option :force, :type => :boolean, :aliases => "-f"
7
+ method_option :version, :type => :string, :aliases => "-v", :required => true
8
+ method_option :channel, :type => :string, :aliases => "-c", :required => true
9
+ method_option :notes, :type => :string, :aliases => "-n"
10
+ method_option :force, :type => :boolean, :aliases => "-f"
11
+ method_option :bundle_version, :type => :string, :aliases => "-b"
11
12
  def push(executable_path, *asset_paths)
12
13
  release = Release::Sparkle.new(channel, options.version)
14
+ release.bundle_version = options.bundle_version
13
15
  release.notes = options.notes
14
16
  release.executable = File.open executable_path
15
17
  # For more complex releases, additional assets may need to go out with the build.
@@ -70,7 +70,7 @@ module Glitter
70
70
  # lives inside of a channel.
71
71
  class Sparkle < Base
72
72
  attr_accessor :notes, :executable, :filename
73
- attr_writer :published_at
73
+ attr_writer :published_at, :bundle_version
74
74
 
75
75
  # Yeah, lets publish this shiz NOW.
76
76
  def published_at
@@ -85,6 +85,10 @@ module Glitter
85
85
  super(*args)
86
86
  end
87
87
 
88
+ def bundle_version
89
+ @bundle_version || @version
90
+ end
91
+
88
92
  private
89
93
  # Generates an HTML file of the release notes.
90
94
  def notes_asset
@@ -14,7 +14,7 @@
14
14
  ]]>
15
15
  </description>
16
16
  <pubDate><%= published_at.strftime("%a, %d %b %Y %H:%M:%S %z") %></pubDate>
17
- <enclosure url="<%= executable_asset.url %>" sparkle:version="<%= version %>" sparkle:shortVersionString="<%= version %>" length="<%= FileTest.size executable.path %>" type="application/octet-stream" />
17
+ <enclosure url="<%= executable_asset.url %>" sparkle:version="<%= bundle_version %>" sparkle:shortVersionString="<%= version %>" length="<%= FileTest.size executable.path %>" type="application/octet-stream" />
18
18
  </item>
19
19
  </channel>
20
20
  </rss>
@@ -1,3 +1,3 @@
1
1
  module Glitter
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler, Thomas Hanley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-02 00:00:00.000000000 Z
11
+ date: 2013-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: s3
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project: glitter
101
- rubygems_version: 2.0.3
101
+ rubygems_version: 2.1.10
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Publish Mac software updates with the Sparkle framework and Amazon S3.