glitter 2.0.3 → 2.1.0

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: a754f47c453fba3e6d232789d5a4ec5054eab365
4
- data.tar.gz: 608eb756d583f1fd388e7e0dbdcdfa846f5fee18
3
+ metadata.gz: 0b43879ebbac63bd80e1dfbf64aeed785270b499
4
+ data.tar.gz: 660add5d3cf34ad23c49afd47b33d5a5658a2a5d
5
5
  SHA512:
6
- metadata.gz: c00dc3b0fa33eb45e6c08ed73d84d9aa1eb0fd925ce9195611af71a21663704c7c908408b0f87fb5ee34a4eb3952407b6e5d4dacafeb12b8a50be22092af7d9a
7
- data.tar.gz: e94f6023cdb4f593d9ed4c81d205911f99e67eb5bdab5528f9c239766fded93ab30845c4fe994dbfb4b564608a98d1fa0874b519ee457cf56dbbe5c5e6d9985f
6
+ metadata.gz: ccd3f05a997766bbd0dc2650d3c967984a74633d2806d368f4aec38e80405f764f562215e9810f4e6d2547790f6864d7994efc4debf8192752b70335459ad500
7
+ data.tar.gz: 2dbd3a334009fec2066d376887c4ac1de5ea8be6ede887b541af7f6edaf4630d993cd17fd4ad7a1de7a1c0bfe4718b164a7861e257bd355a2ca867ca893fc130
@@ -0,0 +1 @@
1
+ 2.4.1
@@ -3,14 +3,16 @@ require 'thor'
3
3
  module Glitter
4
4
  # Command line interface for cutting glitter builds
5
5
  class CLI < Thor
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"
11
- method_option :bundle_version, :type => :string, :aliases => "-b"
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"
11
+ method_option :bundle_version, :type => :string, :aliases => "-b"
12
+ method_option :minimum_system_version, :type => :string, :aliases => "-m"
12
13
  def push(executable_path, *asset_paths)
13
14
  release = Release::Sparkle.new(channel, options.version)
15
+ release.minimum_system_version = options.minimum_system_version
14
16
  release.bundle_version = options.bundle_version
15
17
  release.notes = options.notes
16
18
  release.executable = File.open executable_path
@@ -44,12 +46,6 @@ module Glitter
44
46
  puts Glitter::VERSION
45
47
  end
46
48
 
47
- # desc "yank", "remove a build from a release channel"
48
- # method_option :version, :type => :string, :aliases => "-v"
49
- # method_option :channel, :type => :string, :aliases => "-c"
50
- # def yank
51
- # end
52
-
53
49
  private
54
50
  def channel
55
51
  server.channel(options.channel)
@@ -59,4 +55,4 @@ module Glitter
59
55
  @server ||= Server.new
60
56
  end
61
57
  end
62
- end
58
+ end
@@ -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, :bundle_version
73
+ attr_writer :published_at, :bundle_version, :minimum_system_version
74
74
 
75
75
  # Yeah, lets publish this shiz NOW.
76
76
  def published_at
@@ -89,6 +89,12 @@ module Glitter
89
89
  @bundle_version || @version
90
90
  end
91
91
 
92
+ def minimum_version_attribute
93
+ unless @minimum_system_version.nil?
94
+ "<sparkle:minimumSystemVersion>#{@minimum_system_version}</sparkle:minimumSystemVersion>"
95
+ end
96
+ end
97
+
92
98
  private
93
99
  # Generates an HTML file of the release notes.
94
100
  def notes_asset
@@ -8,6 +8,7 @@
8
8
  <item>
9
9
  <title>Version <%= version %></title>
10
10
  <sparkle:releaseNotesLink><%= notes_asset.url %></sparkle:releaseNotesLink>
11
+ <%= minimum_version_attribute %>
11
12
  <description>
12
13
  <![CDATA[
13
14
  <%= notes %>
@@ -1,3 +1,3 @@
1
1
  module Glitter
2
- VERSION = "2.0.3"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -6,10 +6,12 @@ describe Glitter do
6
6
  Glitter::Server.new
7
7
  end
8
8
 
9
+ # Note that running this spec *will* upload a single file to your S3 bucket
9
10
  it "should release to channel" do
10
11
  Glitter::Release::Sparkle.new server.channel('test-channel'), "1.1.2-#{rand}" do |r|
11
12
  r.executable = File.open(__FILE__)
12
13
  r.notes = %[Did you know that its #{Time.now}? Wait, you can only answer yes to that question.]
14
+ r.minimum_system_version = "10.10"
13
15
  end.push.head
14
16
  end
15
17
 
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.3
4
+ version: 2.1.0
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: 2016-11-07 00:00:00.000000000 Z
11
+ date: 2018-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: s3
@@ -62,6 +62,7 @@ extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
64
  - ".gitignore"
65
+ - ".ruby-version"
65
66
  - Gemfile
66
67
  - Guardfile
67
68
  - README.md
@@ -98,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  version: '0'
99
100
  requirements: []
100
101
  rubyforge_project: glitter
101
- rubygems_version: 2.6.8
102
+ rubygems_version: 2.6.13
102
103
  signing_key:
103
104
  specification_version: 4
104
105
  summary: Publish Mac software updates with the Sparkle framework and Amazon S3.