grat 0.0.6 → 0.0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/grat.gemspec +1 -1
- data/lib/grat.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
|
|
3
3
|
require 'rake'
|
4
4
|
require 'echoe'
|
5
5
|
|
6
|
-
Echoe.new('grat', '0.0.6') do |p|
|
6
|
+
Echoe.new('grat', '0.0.6.1') do |p|
|
7
7
|
p.summary = "Minimal CMS for Rack and MongoDB."
|
8
8
|
p.description = "Basic interface for making webpages with Haml and Erb. Supports nested templates."
|
9
9
|
p.url = "http://samsm.com/"
|
data/grat.gemspec
CHANGED
data/lib/grat.rb
CHANGED
@@ -27,7 +27,7 @@ class Grat::Application < Sinatra::Base
|
|
27
27
|
get '/admin/__export' do
|
28
28
|
content_type('text/json')
|
29
29
|
# Content-disposition: attachment; filename=fname.ext
|
30
|
-
response['Content-disposition'] = "attachment; filename=grat-export-at-#{Time.now.strftime('%Y-%m-%d-%H-%M-%S')}.json"
|
30
|
+
response['Content-disposition'] = "attachment; filename=grat-#{request.host}-export-at-#{Time.now.strftime('%Y-%m-%d-%H-%M-%S')}.json"
|
31
31
|
model.all.to_json
|
32
32
|
end
|
33
33
|
|