This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Pusher | |
attr_reader :user, :spec, :message, :code, :rubygem, :body, :version, :version_id | |
def initialize(user, body, host_with_port=nil) | |
@user = user | |
@body = StringIO.new(body.read) | |
@indexer = Indexer.new | |
@host_with_port = host_with_port | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hostess < Sinatra::Base | |
... etc ... | |
def serve_via_s3 | |
serve do | |
redirect "http://#{$rubygems_config[:s3_domain]}#{request.path_info}" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def avatar_geometry(style = :original) | |
@geometry ||= {} | |
begin | |
path = avatar.path(style) | |
unless path | |
temp_file = Tempfile.open("#{avatar_file_name}_#{style}") | |
temp_file << avatar.file_contents(style) | |
path = temp_file.path | |
end | |
@geometry[style] ||= Paperclip::Geometry.from_file path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* application.css.scss | |
*= require_self | |
*/ | |
@import "bootstrap/reset.css.scss"; | |
@import "bootstrap/variables.css.scss"; | |
// Override link color for my app: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
* application.css.less | |
*= require_self | |
*/ | |
@import "twitter/bootstrap/reset.less"; | |
@import "twitter/bootstrap/variables.less"; | |
// Override link color for my app: |
NewerOlder