Skip to content

Commit

Permalink
performance optimization and new icon
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Jan 24, 2012
1 parent cb21711 commit 8e49a9c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -28,6 +28,7 @@ gem 'juggernaut'
gem 'rdiscount'
gem 'rails_autolink'
gem 'airbrake'
gem 'macgap'

group :development do
gem 'sqlite3'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -108,6 +108,7 @@ GEM
addressable (~> 2.2.6)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
macgap (0.0.3)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
Expand Down Expand Up @@ -237,6 +238,7 @@ DEPENDENCIES
heroku
jquery-rails
juggernaut
macgap
nestful
omniauth
omniauth-google
Expand Down
Expand Up @@ -114,8 +114,9 @@ class App.Messages.Article extends Spine.Controller
@replace @view('messages/article')(@current)
@compose.append(new Compose(record: @current).render())

messages = @current?.messages().all().sort(Message.sentAtDesc)
@add(messages)
@delay ->
messages = @current?.messages().all().sort(Message.sentAtDesc)
@add(messages)

add: (records = []) ->
if @items.is(':empty')
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/app/messages/article.css.styl
Expand Up @@ -50,7 +50,7 @@
.subject
text-align: center
color: lighten(#52585D, 50%)
margin: 0 90px 10px 65px
margin: 0 90px 10px
text-shadow: 0 1px 1px #FFF
ellipsis()

Expand Down
7 changes: 7 additions & 0 deletions lib/tasks/macgap.rake
@@ -0,0 +1,7 @@
namespace :macgap do
task :build do
`sips -s format icns macgap/application.png --out macgap/application.icns`
`macgap --name Hermes ./macgap`
`zip -r Hermes.zip Hermes.app`
end
end
Binary file added macgap/application.icns
Binary file not shown.
Binary file added macgap/application.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8e49a9c

Please sign in to comment.