glitter 0.0.6 → 0.0.7

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/README.md CHANGED
@@ -35,6 +35,16 @@ It should also be noted that Glitter uses HTTPS S3 URLs to eliminate the need fo
35
35
  Updated head https://s3.amazonaws.com/my_app/my-app-head.zip to https://s3.amazonaws.com/my_app/my-app-1.0.0.zip
36
36
  Updated https://s3.amazonaws.com/my_app/appcast.xml
37
37
 
38
+ 5. Distribute the link to your app
39
+
40
+ https://s3.amazonaws.com/my_app/my-app-head.zip is the "current" version of your application and a history is maintained with https://s3.amazonaws.com/my_app/my-app-1.0.0.zip assets. You'll probably want to link to the "head" asset of your app and keep the older builds around for troubleshooting purposes.
41
+
42
+ If you want a vanity URL to distribte your app, setup a redirect like this in nginx:
43
+
44
+ rewrite ^/my-app.zip$ https://s3.amazonaws.com/my_app/my-app-head.zip;
45
+
46
+ Now send your users to mydomain.com/my-app.zip and they'll get the latest version of your app. I don't recommend using a CNAME with your application because it won't work with Amazon's HTTPS servers and you'll have to jump through some hoops to sign your app distributions with a DSA signature. Not worth it in my opinion.
47
+
38
48
  That's it!
39
49
 
40
50
  # License
@@ -14,7 +14,7 @@
14
14
  ]]>
15
15
  </description>
16
16
  <pubDate><%= asset.published_at.strftime("%a, %d %b %Y %H:%M:%S %z") %></pubDate>
17
- <enclosure url="<%= asset.url %>" sparkle:version="2.0" length="<%= asset.file.stat.size %>" type="application/octet-stream" />
17
+ <enclosure url="<%= asset.url %>" sparkle:version="<%= version %>" length="<%= asset.file.stat.size %>" type="application/octet-stream" />
18
18
  </item>
19
19
  <% end %>
20
20
  </channel>
@@ -1,3 +1,3 @@
1
1
  module Glitter
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -25,6 +25,7 @@ describe Glitter::App do
25
25
  @app.latest.version.should eql("1.0.0")
26
26
  end
27
27
 
28
+ # TODO this should be speced out better using moching.
28
29
  it "should have head" do
29
30
  @app.latest.should respond_to(:head)
30
31
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glitter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brad Gessler
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-07 00:00:00 -07:00
18
+ date: 2011-06-09 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency