glitter 0.0.2 → 0.0.3
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 +7 -3
- data/lib/glitter.rb +7 -5
- data/lib/glitter/version.rb +2 -2
- data/spec/lib/glitter_spec.rb +1 -1
- metadata +3 -3
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
|
|
data/lib/glitter.rb
CHANGED
@@ -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
|
168
|
-
|
169
|
-
|
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
|
data/lib/glitter/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Glitter
|
2
|
-
VERSION = "0.0.
|
3
|
-
end
|
2
|
+
VERSION = "0.0.3"
|
3
|
+
end
|
data/spec/lib/glitter_spec.rb
CHANGED
metadata
CHANGED