Skip to content

Instantly share code, notes, and snippets.

@gkop
Created December 12, 2012 18:36
Show Gist options
  • Save gkop/4270354 to your computer and use it in GitHub Desktop.
Save gkop/4270354 to your computer and use it in GitHub Desktop.
Comparison of Rails 3.2.9 bare app vs. Rails-API 3.2.9 bare app
gabe2@moth:~/play $ diff rails-standard-app/Gemfile.lock rails-api-app/Gemfile.lock
33,39d32
< coffee-rails (3.2.2)
< coffee-script (>= 2.2.0)
< railties (~> 3.2.0)
< coffee-script (2.2.0)
< coffee-script-source
< execjs
< coffee-script-source (1.4.0)
41,42d33
< execjs (1.4.0)
< multi_json (~> 1.0)
46,48d36
< jquery-rails (2.1.4)
< railties (>= 3.0, < 5.0)
< thor (>= 0.14, < 2.0)
71a60,63
> rails-api (0.0.2)
> actionpack (>= 3.2.0)
> railties (>= 3.2.0)
> tzinfo (~> 0.3.31)
82,86d73
< sass (3.2.3)
< sass-rails (3.2.5)
< railties (~> 3.2.0)
< sass (>= 3.1.10)
< tilt (~> 1.3)
99,101d85
< uglifier (1.3.0)
< execjs (>= 0.3.0)
< multi_json (~> 1.0, >= 1.0.2)
107,108d90
< coffee-rails (~> 3.2.1)
< jquery-rails
110c92
< sass-rails (~> 3.2.3)
---
> rails-api
112d93
< uglifier (>= 1.0.3)
gabe2@moth:~/play $ diff rails-standard-app/rake_middleware.out rails-api-app/rake_middleware.out
3c3
< use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000002459910>
---
> use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x000000024033d0>
5d4
< use Rack::MethodOverride
15,17d13
< use ActionDispatch::Cookies
< use ActionDispatch::Session::CookieStore
< use ActionDispatch::Flash
22,23c18
< use ActionDispatch::BestStandardsSupport
< run RailsStandardApp::Application.routes
---
> run RailsApiApp::Application.routes
# note that both apps were created with --skip-test-unit
gabe2@moth:~/play/rails-standard-app $ find . | wc -l
77
gabe2@moth:~/play/rails-api-app $ find . | wc -l
54
gabe2@moth:~/play $ diff -rq rails-standard-app/ rails-api-app/ | grep "Only in"
Only in rails-standard-app/app: assets
Only in rails-standard-app/app: helpers
Only in rails-standard-app/app: views
Only in rails-standard-app/: tmp
Only in rails-standard-app/: vendor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment