glitter 2.0.3 → 2.1.0
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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/lib/glitter/cli.rb +9 -13
- data/lib/glitter/release.rb +7 -1
- data/lib/glitter/templates/appcast.xml.erb +1 -0
- data/lib/glitter/version.rb +1 -1
- data/spec/lib/glitter_spec.rb +2 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b43879ebbac63bd80e1dfbf64aeed785270b499
|
4
|
+
data.tar.gz: 660add5d3cf34ad23c49afd47b33d5a5658a2a5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccd3f05a997766bbd0dc2650d3c967984a74633d2806d368f4aec38e80405f764f562215e9810f4e6d2547790f6864d7994efc4debf8192752b70335459ad500
|
7
|
+
data.tar.gz: 2dbd3a334009fec2066d376887c4ac1de5ea8be6ede887b541af7f6edaf4630d993cd17fd4ad7a1de7a1c0bfe4718b164a7861e257bd355a2ca867ca893fc130
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.4.1
|
data/lib/glitter/cli.rb
CHANGED
@@ -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", "
|
7
|
-
method_option :version,
|
8
|
-
method_option :channel,
|
9
|
-
method_option :notes,
|
10
|
-
method_option :force,
|
11
|
-
method_option :bundle_version,
|
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
|
data/lib/glitter/release.rb
CHANGED
@@ -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
|
data/lib/glitter/version.rb
CHANGED
data/spec/lib/glitter_spec.rb
CHANGED
@@ -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
|
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:
|
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.
|
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.
|