glitter 0.0.9 → 0.0.91

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.
@@ -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
- app.latest.notes = options[:release_notes] if options[:release_notes]
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.
@@ -2,6 +2,7 @@
2
2
  name "My App"
3
3
  version "1.0.0"
4
4
  archive "my_app.zip"
5
+ notes "notes go here"
5
6
 
6
7
  s3 {
7
8
  bucket_name "my_app"
@@ -10,7 +10,7 @@
10
10
  <description>
11
11
  <![CDATA[
12
12
  <h2>New Features</h2>
13
- <p><%= asset.notes %></p>
13
+ <p><%= app.notes %></p>
14
14
  ]]>
15
15
  </description>
16
16
  <pubDate><%= asset.published_at.strftime("%a, %d %b %Y %H:%M:%S %z") %></pubDate>
@@ -1,3 +1,3 @@
1
1
  module Glitter
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.91"
3
3
  end
@@ -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: 13
4
+ hash: 169
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 91
10
+ version: 0.0.91
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brad Gessler