glitter 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -8,11 +8,11 @@ It should also be noted that Glitter uses HTTPS S3 URLs to eliminate the need fo
8
8
 
9
9
  1. Install the gem
10
10
 
11
- gem install glitter
11
+ $ gem install glitter
12
12
 
13
13
  2. Generate a Glitterfile in your project directory
14
14
 
15
- glitter init .
15
+ $ glitter init .
16
16
 
17
17
  3. Edit the Glitterfile
18
18
 
@@ -29,7 +29,11 @@ It should also be noted that Glitter uses HTTPS S3 URLs to eliminate the need fo
29
29
 
30
30
  4. Publish your app to the web
31
31
 
32
- glitter push
32
+ $ glitter push -m 'Added some really cool stuff to the mix!'
33
+ Pushing app my-app-1.0.0.zip
34
+ App pushed to https://s3.amazonaws.com/my_app/my-app-1.0.0.zip
35
+ Updated https://s3.amazonaws.com/my_app/appcast.xml
36
+
33
37
 
34
38
  That's it!
35
39
 
@@ -59,7 +59,7 @@ module Glitter
59
59
  end
60
60
 
61
61
  def service
62
- @service ||= ::S3::Service.new(:access_key_id => access_key, :secret_access_key => secret_access_key)
62
+ @service ||= ::S3::Service.new(:access_key_id => access_key, :secret_access_key => secret_access_key, :use_ssl => true)
63
63
  end
64
64
 
65
65
  def bucket
@@ -164,12 +164,14 @@ module Glitter
164
164
  end
165
165
  end
166
166
 
167
- desc "push RELEASE_NOTES", "pushes a build to S3 with release notes."
168
- def push(release_notes)
169
- puts "Pushing #{app.head.object_name} to bucket #{app.s3.bucket_name}..."
167
+ desc "push", "pushes a build to S3 with release notes."
168
+ method_option :release_notes, :type => :string, :aliases => "-m"
169
+ def push
170
+ puts "Pushing app #{app.head.object_name}"
171
+ app.head.notes = options[:release_notes]
170
172
  app.head.push
171
- app.appcast.push
172
173
  puts "App pushed to #{app.head.url}"
174
+ puts "Updated #{app.appcast.url}"
173
175
  end
174
176
 
175
177
  private
@@ -1,3 +1,3 @@
1
1
  module Glitter
2
- VERSION = "0.0.2"
3
- end
2
+ VERSION = "0.0.3"
3
+ end
@@ -41,7 +41,7 @@ describe Glitter::App do
41
41
  it "should read archive" do
42
42
  @config.archive.should eql("my_app.zip")
43
43
  end
44
-
44
+
45
45
  context "s3" do
46
46
  it "should read bucket_name" do
47
47
  @config.s3.bucket_name.should eql("my_app")
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brad Gessler