smart_asset 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/.gitignore +10 -0
  2. data/Gemfile +3 -0
  3. data/LICENSE +2 -2
  4. data/Rakefile +1 -0
  5. data/bin/smart_asset +1 -1
  6. data/lib/smart_asset.rb +2 -6
  7. data/lib/smart_asset/adapters/stasis.rb +43 -0
  8. data/smart_asset.gemspec +25 -0
  9. data/spec/fixtures/all_frameworks/assets.yml +20 -0
  10. data/spec/fixtures/all_frameworks/test.html.erb +3 -0
  11. data/spec/fixtures/assets.yml +27 -0
  12. data/spec/fixtures/assets/javascripts/jquery/jquery.js +7179 -0
  13. data/spec/fixtures/assets/javascripts/underscore.js +722 -0
  14. data/spec/fixtures/assets/stylesheets/960.css +648 -0
  15. data/spec/fixtures/assets/stylesheets/blueprint/blueprint.css +265 -0
  16. data/spec/fixtures/development_output.txt +5 -0
  17. data/spec/fixtures/frameworks.yml +32 -0
  18. data/spec/fixtures/production_output.txt +3 -0
  19. data/spec/fixtures/rails2/application_controller.rb +17 -0
  20. data/spec/fixtures/rails2/environment.rb +42 -0
  21. data/spec/fixtures/rails2/init.rb +1 -0
  22. data/spec/fixtures/rails2/routes.rb +47 -0
  23. data/spec/fixtures/rails3/Gemfile +34 -0
  24. data/spec/fixtures/rails3/application.rb +47 -0
  25. data/spec/fixtures/rails3/application_controller.rb +11 -0
  26. data/spec/fixtures/rails3/routes.rb +61 -0
  27. data/spec/fixtures/sinatra/application.rb +19 -0
  28. data/spec/run +39 -0
  29. data/spec/smart_asset/adapters/rails2_spec.rb +46 -0
  30. data/spec/smart_asset/adapters/rails3_spec.rb +46 -0
  31. data/spec/smart_asset/adapters/sinatra_spec.rb +47 -0
  32. data/spec/smart_asset_spec.rb +403 -0
  33. data/spec/spec_helper.rb +27 -0
  34. metadata +113 -59
  35. data/lib/smart_asset/gems.rb +0 -45
  36. data/lib/smart_asset/version.rb +0 -3
@@ -0,0 +1,265 @@
1
+ /* -----------------------------------------------------------------------
2
+
3
+
4
+ Blueprint CSS Framework 1.0
5
+ http://blueprintcss.org
6
+
7
+ * Copyright (c) 2007-Present. See LICENSE for more info.
8
+ * See README for instructions on how to use Blueprint.
9
+ * For credits and origins, see AUTHORS.
10
+ * This is a compressed file. See the sources in the 'src' directory.
11
+
12
+ ----------------------------------------------------------------------- */
13
+
14
+ /* reset.css */
15
+ html {margin:0;padding:0;border:0;}
16
+ body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
17
+ article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;}
18
+ body {line-height:1.5;background:white;}
19
+ table {border-collapse:separate;border-spacing:0;}
20
+ caption, th, td {text-align:left;font-weight:normal;float:none !important;}
21
+ table, th, td {vertical-align:middle;}
22
+ blockquote:before, blockquote:after, q:before, q:after {content:'';}
23
+ blockquote, q {quotes:"" "";}
24
+ a img {border:none;}
25
+ :focus {outline:0;}
26
+
27
+ /* typography.css */
28
+ html {font-size:100.01%;}
29
+ body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
30
+ h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
31
+ h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
32
+ h2 {font-size:2em;margin-bottom:0.75em;}
33
+ h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
34
+ h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
35
+ h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
36
+ h6 {font-size:1em;font-weight:bold;}
37
+ h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
38
+ p {margin:0 0 1.5em;}
39
+ .left {float:left !important;}
40
+ p .left {margin:1.5em 1.5em 1.5em 0;padding:0;}
41
+ .right {float:right !important;}
42
+ p .right {margin:1.5em 0 1.5em 1.5em;padding:0;}
43
+ a:focus, a:hover {color:#09f;}
44
+ a {color:#06c;text-decoration:underline;}
45
+ blockquote {margin:1.5em;color:#666;font-style:italic;}
46
+ strong, dfn {font-weight:bold;}
47
+ em, dfn {font-style:italic;}
48
+ sup, sub {line-height:0;}
49
+ abbr, acronym {border-bottom:1px dotted #666;}
50
+ address {margin:0 0 1.5em;font-style:italic;}
51
+ del {color:#666;}
52
+ pre {margin:1.5em 0;white-space:pre;}
53
+ pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
54
+ li ul, li ol {margin:0;}
55
+ ul, ol {margin:0 1.5em 1.5em 0;padding-left:1.5em;}
56
+ ul {list-style-type:disc;}
57
+ ol {list-style-type:decimal;}
58
+ dl {margin:0 0 1.5em 0;}
59
+ dl dt {font-weight:bold;}
60
+ dd {margin-left:1.5em;}
61
+ table {margin-bottom:1.4em;width:100%;}
62
+ th {font-weight:bold;}
63
+ thead th {background:#c3d9ff;}
64
+ th, td, caption {padding:4px 10px 4px 5px;}
65
+ tbody tr:nth-child(even) td, tbody tr.even td {background:#e5ecf9;}
66
+ tfoot {font-style:italic;}
67
+ caption {background:#eee;}
68
+ .small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
69
+ .large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
70
+ .hide {display:none;}
71
+ .quiet {color:#666;}
72
+ .loud {color:#000;}
73
+ .highlight {background:#ff0;}
74
+ .added {background:#060;color:#fff;}
75
+ .removed {background:#900;color:#fff;}
76
+ .first {margin-left:0;padding-left:0;}
77
+ .last {margin-right:0;padding-right:0;}
78
+ .top {margin-top:0;padding-top:0;}
79
+ .bottom {margin-bottom:0;padding-bottom:0;}
80
+
81
+ /* forms.css */
82
+ label {font-weight:bold;}
83
+ fieldset {padding:0 1.4em 1.4em 1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
84
+ legend {font-weight:bold;font-size:1.2em;margin-top:-0.2em;margin-bottom:1em;}
85
+ fieldset, #IE8#HACK {padding-top:1.4em;}
86
+ legend, #IE8#HACK {margin-top:0;margin-bottom:0;}
87
+ input[type=text], input[type=password], input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;}
88
+ input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus {border-color:#666;}
89
+ select {background-color:#fff;border-width:1px;border-style:solid;}
90
+ input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
91
+ input.text, input.title {width:300px;padding:5px;}
92
+ input.title {font-size:1.5em;}
93
+ textarea {width:390px;height:250px;padding:5px;}
94
+ form.inline {line-height:3;}
95
+ form.inline p {margin-bottom:0;}
96
+ .error, .alert, .notice, .success, .info {padding:0.8em;margin-bottom:1em;border:2px solid #ddd;}
97
+ .error, .alert {background:#fbe3e4;color:#8a1f11;border-color:#fbc2c4;}
98
+ .notice {background:#fff6bf;color:#514721;border-color:#ffd324;}
99
+ .success {background:#e6efc2;color:#264409;border-color:#c6d880;}
100
+ .info {background:#d5edf8;color:#205791;border-color:#92cae4;}
101
+ .error a, .alert a {color:#8a1f11;}
102
+ .notice a {color:#514721;}
103
+ .success a {color:#264409;}
104
+ .info a {color:#205791;}
105
+
106
+ /* grid.css */
107
+ .container {width:950px;margin:0 auto;}
108
+ .showgrid {background:url(src/grid.png);}
109
+ .column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24 {float:left;margin-right:10px;}
110
+ .last {margin-right:0;}
111
+ .span-1 {width:30px;}
112
+ .span-2 {width:70px;}
113
+ .span-3 {width:110px;}
114
+ .span-4 {width:150px;}
115
+ .span-5 {width:190px;}
116
+ .span-6 {width:230px;}
117
+ .span-7 {width:270px;}
118
+ .span-8 {width:310px;}
119
+ .span-9 {width:350px;}
120
+ .span-10 {width:390px;}
121
+ .span-11 {width:430px;}
122
+ .span-12 {width:470px;}
123
+ .span-13 {width:510px;}
124
+ .span-14 {width:550px;}
125
+ .span-15 {width:590px;}
126
+ .span-16 {width:630px;}
127
+ .span-17 {width:670px;}
128
+ .span-18 {width:710px;}
129
+ .span-19 {width:750px;}
130
+ .span-20 {width:790px;}
131
+ .span-21 {width:830px;}
132
+ .span-22 {width:870px;}
133
+ .span-23 {width:910px;}
134
+ .span-24 {width:950px;margin-right:0;}
135
+ input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px;border-right-width:1px;padding-left:5px;padding-right:5px;}
136
+ input.span-1, textarea.span-1 {width:18px;}
137
+ input.span-2, textarea.span-2 {width:58px;}
138
+ input.span-3, textarea.span-3 {width:98px;}
139
+ input.span-4, textarea.span-4 {width:138px;}
140
+ input.span-5, textarea.span-5 {width:178px;}
141
+ input.span-6, textarea.span-6 {width:218px;}
142
+ input.span-7, textarea.span-7 {width:258px;}
143
+ input.span-8, textarea.span-8 {width:298px;}
144
+ input.span-9, textarea.span-9 {width:338px;}
145
+ input.span-10, textarea.span-10 {width:378px;}
146
+ input.span-11, textarea.span-11 {width:418px;}
147
+ input.span-12, textarea.span-12 {width:458px;}
148
+ input.span-13, textarea.span-13 {width:498px;}
149
+ input.span-14, textarea.span-14 {width:538px;}
150
+ input.span-15, textarea.span-15 {width:578px;}
151
+ input.span-16, textarea.span-16 {width:618px;}
152
+ input.span-17, textarea.span-17 {width:658px;}
153
+ input.span-18, textarea.span-18 {width:698px;}
154
+ input.span-19, textarea.span-19 {width:738px;}
155
+ input.span-20, textarea.span-20 {width:778px;}
156
+ input.span-21, textarea.span-21 {width:818px;}
157
+ input.span-22, textarea.span-22 {width:858px;}
158
+ input.span-23, textarea.span-23 {width:898px;}
159
+ input.span-24, textarea.span-24 {width:938px;}
160
+ .append-1 {padding-right:40px;}
161
+ .append-2 {padding-right:80px;}
162
+ .append-3 {padding-right:120px;}
163
+ .append-4 {padding-right:160px;}
164
+ .append-5 {padding-right:200px;}
165
+ .append-6 {padding-right:240px;}
166
+ .append-7 {padding-right:280px;}
167
+ .append-8 {padding-right:320px;}
168
+ .append-9 {padding-right:360px;}
169
+ .append-10 {padding-right:400px;}
170
+ .append-11 {padding-right:440px;}
171
+ .append-12 {padding-right:480px;}
172
+ .append-13 {padding-right:520px;}
173
+ .append-14 {padding-right:560px;}
174
+ .append-15 {padding-right:600px;}
175
+ .append-16 {padding-right:640px;}
176
+ .append-17 {padding-right:680px;}
177
+ .append-18 {padding-right:720px;}
178
+ .append-19 {padding-right:760px;}
179
+ .append-20 {padding-right:800px;}
180
+ .append-21 {padding-right:840px;}
181
+ .append-22 {padding-right:880px;}
182
+ .append-23 {padding-right:920px;}
183
+ .prepend-1 {padding-left:40px;}
184
+ .prepend-2 {padding-left:80px;}
185
+ .prepend-3 {padding-left:120px;}
186
+ .prepend-4 {padding-left:160px;}
187
+ .prepend-5 {padding-left:200px;}
188
+ .prepend-6 {padding-left:240px;}
189
+ .prepend-7 {padding-left:280px;}
190
+ .prepend-8 {padding-left:320px;}
191
+ .prepend-9 {padding-left:360px;}
192
+ .prepend-10 {padding-left:400px;}
193
+ .prepend-11 {padding-left:440px;}
194
+ .prepend-12 {padding-left:480px;}
195
+ .prepend-13 {padding-left:520px;}
196
+ .prepend-14 {padding-left:560px;}
197
+ .prepend-15 {padding-left:600px;}
198
+ .prepend-16 {padding-left:640px;}
199
+ .prepend-17 {padding-left:680px;}
200
+ .prepend-18 {padding-left:720px;}
201
+ .prepend-19 {padding-left:760px;}
202
+ .prepend-20 {padding-left:800px;}
203
+ .prepend-21 {padding-left:840px;}
204
+ .prepend-22 {padding-left:880px;}
205
+ .prepend-23 {padding-left:920px;}
206
+ .border {padding-right:4px;margin-right:5px;border-right:1px solid #ddd;}
207
+ .colborder {padding-right:24px;margin-right:25px;border-right:1px solid #ddd;}
208
+ .pull-1 {margin-left:-40px;}
209
+ .pull-2 {margin-left:-80px;}
210
+ .pull-3 {margin-left:-120px;}
211
+ .pull-4 {margin-left:-160px;}
212
+ .pull-5 {margin-left:-200px;}
213
+ .pull-6 {margin-left:-240px;}
214
+ .pull-7 {margin-left:-280px;}
215
+ .pull-8 {margin-left:-320px;}
216
+ .pull-9 {margin-left:-360px;}
217
+ .pull-10 {margin-left:-400px;}
218
+ .pull-11 {margin-left:-440px;}
219
+ .pull-12 {margin-left:-480px;}
220
+ .pull-13 {margin-left:-520px;}
221
+ .pull-14 {margin-left:-560px;}
222
+ .pull-15 {margin-left:-600px;}
223
+ .pull-16 {margin-left:-640px;}
224
+ .pull-17 {margin-left:-680px;}
225
+ .pull-18 {margin-left:-720px;}
226
+ .pull-19 {margin-left:-760px;}
227
+ .pull-20 {margin-left:-800px;}
228
+ .pull-21 {margin-left:-840px;}
229
+ .pull-22 {margin-left:-880px;}
230
+ .pull-23 {margin-left:-920px;}
231
+ .pull-24 {margin-left:-960px;}
232
+ .pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;}
233
+ .push-1 {margin:0 -40px 1.5em 40px;}
234
+ .push-2 {margin:0 -80px 1.5em 80px;}
235
+ .push-3 {margin:0 -120px 1.5em 120px;}
236
+ .push-4 {margin:0 -160px 1.5em 160px;}
237
+ .push-5 {margin:0 -200px 1.5em 200px;}
238
+ .push-6 {margin:0 -240px 1.5em 240px;}
239
+ .push-7 {margin:0 -280px 1.5em 280px;}
240
+ .push-8 {margin:0 -320px 1.5em 320px;}
241
+ .push-9 {margin:0 -360px 1.5em 360px;}
242
+ .push-10 {margin:0 -400px 1.5em 400px;}
243
+ .push-11 {margin:0 -440px 1.5em 440px;}
244
+ .push-12 {margin:0 -480px 1.5em 480px;}
245
+ .push-13 {margin:0 -520px 1.5em 520px;}
246
+ .push-14 {margin:0 -560px 1.5em 560px;}
247
+ .push-15 {margin:0 -600px 1.5em 600px;}
248
+ .push-16 {margin:0 -640px 1.5em 640px;}
249
+ .push-17 {margin:0 -680px 1.5em 680px;}
250
+ .push-18 {margin:0 -720px 1.5em 720px;}
251
+ .push-19 {margin:0 -760px 1.5em 760px;}
252
+ .push-20 {margin:0 -800px 1.5em 800px;}
253
+ .push-21 {margin:0 -840px 1.5em 840px;}
254
+ .push-22 {margin:0 -880px 1.5em 880px;}
255
+ .push-23 {margin:0 -920px 1.5em 920px;}
256
+ .push-24 {margin:0 -960px 1.5em 960px;}
257
+ .push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:left;position:relative;}
258
+ div.prepend-top, .prepend-top {margin-top:1.5em;}
259
+ div.append-bottom, .append-bottom {margin-bottom:1.5em;}
260
+ .box {padding:1.5em;margin-bottom:1.5em;background:#e5eCf9;}
261
+ hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:1px;margin:0 0 1.45em;border:none;}
262
+ hr.space {background:#fff;color:#fff;visibility:hidden;}
263
+ .clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
264
+ .clearfix, .container {display:block;}
265
+ .clear {clear:both;}
@@ -0,0 +1,5 @@
1
+ <script src="/javascripts/jquery/jquery.js"></script>
2
+ <script src="/javascripts/underscore.js"></script>
3
+
4
+ <link href="/stylesheets/blueprint/blueprint.css" media="screen" rel="stylesheet" />
5
+ <link href="/stylesheets/960.css" media="screen" rel="stylesheet" />
@@ -0,0 +1,32 @@
1
+ rails:
2
+ <3:
3
+ rails2:
4
+ - app/controllers/application_controller.rb
5
+ - config/environment.rb
6
+ - config/routes.rb
7
+ - vendor/plugins/plugin/rails/init.rb
8
+ all_frameworks:
9
+ - app/views/application/test.html.erb
10
+ - config/assets.yml
11
+ <4:
12
+ rails3:
13
+ - app/controllers/application_controller.rb
14
+ - config/application.rb
15
+ - config/routes.rb
16
+ - Gemfile
17
+ all_frameworks:
18
+ - app/views/application/test.html.erb
19
+ - config/assets.yml
20
+ sinatra:
21
+ <1:
22
+ sinatra:
23
+ - application.rb
24
+ all_frameworks:
25
+ - test.html.erb
26
+ - config/assets.yml
27
+ <2:
28
+ sinatra:
29
+ - application.rb
30
+ all_frameworks:
31
+ - test.html.erb
32
+ - config/assets.yml
@@ -0,0 +1,3 @@
1
+ <script src="/packaged/1042e864_package.js"></script>
2
+
3
+ <link href="/packaged/4c0f7deb_package.css" media="screen" rel="stylesheet" />
@@ -0,0 +1,17 @@
1
+ # Filters added to this controller apply to all controllers in the application.
2
+ # Likewise, all the methods added will be available for all controllers.
3
+
4
+ class ApplicationController < ActionController::Base
5
+ helper :all # include all helpers, all the time
6
+ protect_from_forgery # See ActionController::RequestForgeryProtection for details
7
+
8
+ # Scrub sensitive parameters from your log
9
+ # filter_parameter_logging :password
10
+
11
+ def pulse
12
+ render :text => '1'
13
+ end
14
+
15
+ def test
16
+ end
17
+ end
@@ -0,0 +1,42 @@
1
+ # Be sure to restart your server when you modify this file
2
+
3
+ # Specifies gem version of Rails to use when vendor/rails is not present
4
+ RAILS_GEM_VERSION = '2.3.10' unless defined? RAILS_GEM_VERSION
5
+
6
+ # Bootstrap the Rails environment, frameworks, and default configuration
7
+ require File.join(File.dirname(__FILE__), 'boot')
8
+
9
+ Rails::Initializer.run do |config|
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Add additional load paths for your own custom dirs
15
+ # config.autoload_paths += %W( #{RAILS_ROOT}/extras )
16
+
17
+ # Specify gems that this application depends on and have them installed with rake gems:install
18
+ # config.gem "bj"
19
+ # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
20
+ # config.gem "sqlite3-ruby", :lib => "sqlite3"
21
+ # config.gem "aws-s3", :lib => "aws/s3"
22
+
23
+ # Only load the plugins named here, in the order given (default is alphabetical).
24
+ # :all can be used as a placeholder for all plugins not explicitly named
25
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
26
+
27
+ # Skip frameworks you're not going to use. To use Rails without a database,
28
+ # you must remove the Active Record framework.
29
+ # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
30
+ config.frameworks -= [ :active_record ]
31
+
32
+ # Activate observers that should always be running
33
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
34
+
35
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
36
+ # Run "rake -D time" for a list of tasks for finding time zone names.
37
+ config.time_zone = 'UTC'
38
+
39
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
40
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
41
+ # config.i18n.default_locale = :de
42
+ end
@@ -0,0 +1 @@
1
+ require 'smart_asset'
@@ -0,0 +1,47 @@
1
+ ActionController::Routing::Routes.draw do |map|
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+
4
+ # Sample of regular route:
5
+ # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
6
+ # Keep in mind you can assign values other than :controller and :action
7
+
8
+ # Sample of named route:
9
+ # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
10
+ # This route can be invoked with purchase_url(:id => product.id)
11
+
12
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
13
+ # map.resources :products
14
+
15
+ # Sample resource route with options:
16
+ # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
17
+
18
+ # Sample resource route with sub-resources:
19
+ # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
20
+
21
+ # Sample resource route with more complex sub-resources
22
+ # map.resources :products do |products|
23
+ # products.resources :comments
24
+ # products.resources :sales, :collection => { :recent => :get }
25
+ # end
26
+
27
+ # Sample resource route within a namespace:
28
+ # map.namespace :admin do |admin|
29
+ # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
30
+ # admin.resources :products
31
+ # end
32
+
33
+ # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
34
+ # map.root :controller => "welcome"
35
+
36
+ # See how all your routes lay out with "rake routes"
37
+
38
+ # Install the default routes as the lowest priority.
39
+ # Note: These default routes make all actions in every controller accessible via GET requests. You should
40
+ # consider removing or commenting them out if you're using named routes and resources.
41
+
42
+ # map.connect ':controller/:action/:id'
43
+ # map.connect ':controller/:action/:id.:format'
44
+
45
+ map.connect 'pulse', :controller => 'application', :action => 'pulse'
46
+ map.connect 'test', :controller => 'application', :action => 'test'
47
+ end
@@ -0,0 +1,34 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'framework_fixture', '0.1.2'
4
+ gem 'rails', '3.0.3'
5
+ gem 'rspec'
6
+
7
+ gem 'smart_asset', :path => "../../../../"
8
+
9
+ # Bundle edge Rails instead:
10
+ # gem 'rails', :git => 'git://github.com/rails/rails.git'
11
+
12
+
13
+ # Use unicorn as the web server
14
+ # gem 'unicorn'
15
+
16
+ # Deploy with Capistrano
17
+ # gem 'capistrano'
18
+
19
+ # To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
20
+ # gem 'ruby-debug'
21
+ # gem 'ruby-debug19'
22
+
23
+ # Bundle the extra gems:
24
+ # gem 'bj'
25
+ # gem 'nokogiri'
26
+ # gem 'sqlite3-ruby', :require => 'sqlite3'
27
+ # gem 'aws-s3', :require => 'aws/s3'
28
+
29
+ # Bundle gems for the local environment. Make sure to
30
+ # put test-only gems in this group so their generators
31
+ # and rake tasks are available in development mode:
32
+ # group :development, :test do
33
+ # gem 'webrat'
34
+ # end