Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rack-gist

  • Loading branch information...
commit efa84b74e515ef6e4b6e4c336801cd456018028d 1 parent d81dbce
@darkhelmet authored
View
3  Gemfile
@@ -7,10 +7,11 @@ gem 'builder', '2.1.2'
gem 'activesupport', '2.3.8', :require => 'active_support'
gem 'activerecord', '2.3.8', :require => 'active_record'
gem 'sinatra-bundles', '0.3.0', :require => 'sinatra/bundles'
+gem 'rack-gist', '1.0.4', :require => 'rack/gist'
gem 'acts_as_taggable_on_steroids', '1.2', :require => nil
gem 'RedCloth', '4.2.2'
gem 'crack', '0.1.6'
-gem 'rest-client', '1.3.1', :require => 'restclient'
+gem 'rest-client', '1.6.0'
gem 'tzinfo', '0.3.16'
gem 'rainpress', '1.0.0'
gem 'packr', '3.1.0'
View
4 bin/backup.rb
@@ -53,12 +53,12 @@ def backup_bundle!
def backup_json!
user, pass = YAML.load_file(HTTP_CREDENTIALS)
- json = RestClient.get("http://#{user}:#{pass}@blog.darkhax.com/dump.json").body
+ json = RestClient.get("http://#{user}:#{pass}@blog.darkhax.com/dump.json")
AWS::S3::S3Object.store("/backups/#{key('json')}", json, BUCKET)
end
def backup_pgdumps!
- AWS::S3::S3Object.store("/backups/#{key('sql.gz')}", RestClient.get(dump).body, BUCKET)
+ AWS::S3::S3Object.store("/backups/#{key('sql.gz')}", RestClient.get(dump), BUCKET)
end
AWS::S3::Base.establish_connection!(YAML.load_file(S3_CREDENTIALS))
View
1  lib/middleware.rb
@@ -8,6 +8,7 @@
use Rack::StaticCache, :root => 'public', :compress => true if production?
use Rack::ResponseTimeInjector, :format => '%.3f'
use Rack::InlineCompress if production?
+use Rack::Gist, :jquery => false
use Rack::Insert, :ignore => ignore do
%Q{<script type='text/javascript' src='http://www.google-analytics.com/ga.js'></script>
View
2  public/stylesheets/darkblog.css
@@ -393,7 +393,7 @@ pre {
font-size: 12px;
}
-.entry > object, .entry > embed {
+.entry > object, .entry > embed, div.rack-gist {
margin-bottom: 20px;
}
Please sign in to comment.
Something went wrong with that request. Please try again.