glitter 0.0.9 → 0.0.91
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/glitter.rb +5 -1
- data/lib/glitter/templates/Glitterfile +1 -0
- data/lib/glitter/templates/rss.xml.erb +1 -1
- data/lib/glitter/version.rb +1 -1
- data/spec/lib/glitter_spec.rb +5 -0
- metadata +3 -3
data/lib/glitter.rb
CHANGED
@@ -111,6 +111,7 @@ module Glitter
|
|
111
111
|
@assets ||= Hash.new do |hash,key|
|
112
112
|
hash[key] = Asset.new do |r|
|
113
113
|
r.version = key
|
114
|
+
r.notes = notes
|
114
115
|
r.app = self
|
115
116
|
end
|
116
117
|
end
|
@@ -152,6 +153,7 @@ module Glitter
|
|
152
153
|
@head ||= self.class.new do |a|
|
153
154
|
a.app = app
|
154
155
|
a.version = "head"
|
156
|
+
a.notes = app.notes
|
155
157
|
a.published_at = published_at
|
156
158
|
a.object = object.copy(:key => a.object_name)
|
157
159
|
end
|
@@ -179,7 +181,9 @@ module Glitter
|
|
179
181
|
def push
|
180
182
|
puts "Pushing app #{app.latest.object_name}"
|
181
183
|
# Push the latest release with release notes
|
182
|
-
|
184
|
+
puts "Notes are the following"
|
185
|
+
puts app.notes
|
186
|
+
#app.latest.notes = options[:release_notes] if options[:release_notes]
|
183
187
|
app.latest.push
|
184
188
|
puts "Asset pushed to #{app.latest.url}"
|
185
189
|
app.latest.head # Sets this release as the head.
|
data/lib/glitter/version.rb
CHANGED
data/spec/lib/glitter_spec.rb
CHANGED
@@ -46,6 +46,10 @@ describe Glitter::App do
|
|
46
46
|
it "should read archive" do
|
47
47
|
@config.archive.should eql("my_app.zip")
|
48
48
|
end
|
49
|
+
|
50
|
+
it "should read notes" do
|
51
|
+
@config.notes.should eql("notes go here")
|
52
|
+
end
|
49
53
|
|
50
54
|
context "s3" do
|
51
55
|
it "should read bucket_name" do
|
@@ -72,6 +76,7 @@ describe Glitter::App do
|
|
72
76
|
name "My App"
|
73
77
|
version "1.0.0"
|
74
78
|
archive "my_app.zip"
|
79
|
+
notes "notes go here"
|
75
80
|
|
76
81
|
s3 {
|
77
82
|
bucket_name "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:
|
4
|
+
hash: 169
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 91
|
10
|
+
version: 0.0.91
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brad Gessler
|