Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: master
...
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 4 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/glitter.rb
View
7 lib/glitter.rb
@@ -144,7 +144,9 @@ def url
def push
object.content = file
+ object.content_disposition = "attachment;filename=#{app.name}#{File.extname(file.path)}"
object.save
+ puts "saved. content-disposition: #{object.content_disposition}"
self
end
@@ -155,7 +157,7 @@ def head
a.version = "head"
a.notes = app.notes
a.published_at = published_at
- a.object = object.copy(:key => a.object_name)
+ a.object = object.copy(:key => a.object_name, :content_disposition => "attachment;filename=#{app.name}#{File.extname(file.path)}")
end
end
@@ -182,8 +184,9 @@ def push
puts "Pushing app #{app.latest.object_name}"
# Push the latest release with release notes
puts "Notes are the following"
+ app.latest.notes = options[:release_notes] if options[:release_notes]
puts app.notes
- #app.latest.notes = options[:release_notes] if options[:release_notes]
+ puts app.latest.notes
app.latest.push
puts "Asset pushed to #{app.latest.url}"
app.latest.head # Sets this release as the head.

No commit comments for this range

Something went wrong with that request. Please try again.