rafters 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4199faab0e6c08bb71f8b982f9ec0d8a4f71cdd
4
- data.tar.gz: eab7deb22988294f34cb4d4c8f20782334709a22
3
+ metadata.gz: a7900cb89ffd2a9e271783e382d76ce8aef995a1
4
+ data.tar.gz: f79f54a8d9ca67f5ccc3c02be7c5b7631446f034
5
5
  SHA512:
6
- metadata.gz: 0c5e9b1ad6c5773c0e2e8ce44ad5452d225dc6668cd97bb10e123320303f84f20972599bcdfe2f74d118e86f81b8547d1286aa41308e1b09feee6716590a0c30
7
- data.tar.gz: 821b6b96f755c152c3f938b9e984d8398047efe28e6505824d202ed61713028ba12127b26696f11a3e3f17a6eac4d3664f0a07816da1c2f03403b88c15e1b346
6
+ metadata.gz: fb63afff21e37662bac1b7d76a685b4968a49670bfabd4e1b448303344a2879d0b7747612950d69e6abdb28603b338daaa9e9136966aa78ed46bca44e2d82e83
7
+ data.tar.gz: cd553bf4f1a515bfd594dea3f465ae1986b6ac0f7e5b666f387168528019d5fb5460544d0efb37f9cedbe214390b1d3382ebabffccc0d71d9b68a83ec6e83d0b
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Rafters
2
2
 
3
- !!! STILL UNDER ACTIVE DEVELOPMENT. USE AT YOUR OWN RISK !!!
3
+ <p><strong>WARNING</strong>: STILL UNDER DEVELOPMENT. USE AT YOUR OWN RISK!</p>
4
4
 
5
5
  [![Build Status](https://travis-ci.org/andyhite/rafters.png?branch=master)](https://travis-ci.org/andyhite/rafters)
6
+ [![Gem Version](https://badge.fury.io/rb/rafters.png)](http://badge.fury.io/rb/rafters)
6
7
 
7
8
  Rafters lets you think about each page of your application as a collection of small pieces instead of monolithic, difficult to maintain
8
9
  views.
data/Rakefile CHANGED
@@ -5,25 +5,6 @@ rescue LoadError
5
5
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
6
  end
7
7
 
8
- begin
9
- require 'rdoc/task'
10
- rescue LoadError
11
- require 'rdoc/rdoc'
12
- require 'rake/rdoctask'
13
- RDoc::Task = Rake::RDocTask
14
- end
15
-
16
- RDoc::Task.new(:rdoc) do |rdoc|
17
- rdoc.rdoc_dir = 'rdoc'
18
- rdoc.title = 'Rafters'
19
- rdoc.options << '--line-numbers'
20
- rdoc.rdoc_files.include('README.rdoc')
21
- rdoc.rdoc_files.include('lib/**/*.rb')
22
- end
23
-
24
- APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
25
- load 'rails/tasks/engine.rake'
26
-
27
8
  Bundler::GemHelper.install_tasks
28
9
 
29
10
  require 'rspec/core/rake_task'
@@ -11,7 +11,7 @@ class Rafters::InstallGenerator < Rails::Generators::Base
11
11
 
12
12
  def add_asset_requires
13
13
  inject_into_file "app/assets/stylesheets/application.css", after: "*= require_tree .\n" do <<-'RUBY'
14
- *= require_components`
14
+ *= require_components
15
15
  RUBY
16
16
  end
17
17
 
@@ -1,14 +1,6 @@
1
1
  require 'sprockets/component_processor'
2
2
 
3
- class Rafters::Engine < Rails::Engine
4
- isolate_namespace Rafters
5
-
6
- config.generators do |g|
7
- g.test_framework :rspec
8
- g.assets false
9
- g.helper false
10
- end
11
-
3
+ class Rafters::Railtie < Rails::Railtie
12
4
  initializer "rafters.load_view_paths" do |app|
13
5
  Rafters.view_paths = Dir[app.root.join("app", "components", "*", "views")]
14
6
  end
@@ -1,3 +1,3 @@
1
1
  module Rafters
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/rafters.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'active_support'
2
2
  require 'hashie'
3
3
 
4
- require 'rafters/engine'
4
+ require 'rafters/railtie'
5
5
 
6
6
  module Rafters
7
7
  extend ActiveSupport::Autoload
data/rafters.gemspec CHANGED
@@ -25,5 +25,6 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "capybara", "~> 2.1"
26
26
 
27
27
  spec.add_dependency "rails", "> 3.2"
28
+ spec.add_dependency "sass-rails", "> 3.2"
28
29
  spec.add_dependency "hashie", "~> 2.0.5"
29
30
  end
@@ -10,5 +10,5 @@
10
10
  *
11
11
  *= require_self
12
12
  *= require_tree .
13
- *= require_components`
13
+ *= require_components
14
14
  */
@@ -1,6 +1,7 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- require 'rails/all'
3
+ require "action_controller/railtie"
4
+ require "sprockets/railtie"
4
5
 
5
6
  Bundler.require(*Rails.groups)
6
7
  require "rafters"
@@ -18,9 +19,6 @@ module Dummy
18
19
  # :all can be used as a placeholder for all plugins not explicitly named.
19
20
  # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
21
 
21
- # Activate observers that should always be running.
22
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
-
24
22
  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
23
  # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
24
  # config.time_zone = 'Central Time (US & Canada)'
@@ -38,11 +36,6 @@ module Dummy
38
36
  # Enable escaping HTML in JSON.
39
37
  config.active_support.escape_html_entities_in_json = true
40
38
 
41
- # Use SQL instead of Active Record's schema dumper when creating the database.
42
- # This is necessary if your schema can't be completely dumped by the schema dumper,
43
- # like if you have constraints or database-specific column types
44
- # config.active_record.schema_format = :sql
45
-
46
39
  # Enable the asset pipeline
47
40
  config.assets.enabled = true
48
41
 
@@ -13,19 +13,12 @@ Dummy::Application.configure do
13
13
  config.consider_all_requests_local = true
14
14
  config.action_controller.perform_caching = false
15
15
 
16
- # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
16
  # Print deprecation notices to the Rails logger
20
17
  config.active_support.deprecation = :log
21
18
 
22
19
  # Only use best-standards-support built into browsers
23
20
  config.action_dispatch.best_standards_support = :builtin
24
21
 
25
- # Log the query plan for queries taking more than this (works
26
- # with SQLite, MySQL, and PostgreSQL)
27
- config.active_record.auto_explain_threshold_in_seconds = 0.5
28
-
29
22
  # Do not compress assets
30
23
  config.assets.compress = false
31
24
 
@@ -24,11 +24,6 @@ Dummy::Application.configure do
24
24
  # Disable request forgery protection in test environment
25
25
  config.action_controller.allow_forgery_protection = false
26
26
 
27
- # Tell Action Mailer not to deliver emails to the real world.
28
- # The :test delivery method accumulates sent emails in the
29
- # ActionMailer::Base.deliveries array.
30
- config.action_mailer.delivery_method = :test
31
-
32
27
  # Print deprecation notices to the stderr
33
28
  config.active_support.deprecation = :stderr
34
29
  end
@@ -1,5 +1,3 @@
1
1
  Rails.application.routes.draw do
2
- mount Rafters::Engine => "/rafters"
3
-
4
2
  resources :posts
5
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rafters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-25 00:00:00.000000000 Z
11
+ date: 2013-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - '>'
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sass-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>'
102
+ - !ruby/object:Gem::Version
103
+ version: '3.2'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>'
109
+ - !ruby/object:Gem::Version
110
+ version: '3.2'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: hashie
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -135,17 +149,15 @@ files:
135
149
  - lib/rafters/component.rb
136
150
  - lib/rafters/component_context.rb
137
151
  - lib/rafters/component_renderer.rb
138
- - lib/rafters/engine.rb
152
+ - lib/rafters/railtie.rb
139
153
  - lib/rafters/version.rb
140
154
  - lib/sprockets/component_processor.rb
141
155
  - lib/tasks/rafters_tasks.rake
142
156
  - rafters.gemspec
143
- - spec/dummy/README.rdoc
144
157
  - spec/dummy/Rakefile
145
158
  - spec/dummy/app/assets/javascripts/application.js
146
159
  - spec/dummy/app/assets/javascripts/posts.js
147
160
  - spec/dummy/app/assets/stylesheets/application.css
148
- - spec/dummy/app/assets/stylesheets/posts.css
149
161
  - spec/dummy/app/components/author/assets/images/.gitkeep
150
162
  - spec/dummy/app/components/author/assets/javascripts/author_component.js
151
163
  - spec/dummy/app/components/author/assets/stylesheets/author_component.scss
@@ -184,10 +196,8 @@ files:
184
196
  - spec/dummy/config.ru
185
197
  - spec/dummy/config/application.rb
186
198
  - spec/dummy/config/boot.rb
187
- - spec/dummy/config/database.yml
188
199
  - spec/dummy/config/environment.rb
189
200
  - spec/dummy/config/environments/development.rb
190
- - spec/dummy/config/environments/production.rb
191
201
  - spec/dummy/config/environments/test.rb
192
202
  - spec/dummy/config/initializers/backtrace_silencers.rb
193
203
  - spec/dummy/config/initializers/inflections.rb
@@ -198,7 +208,6 @@ files:
198
208
  - spec/dummy/config/initializers/wrap_parameters.rb
199
209
  - spec/dummy/config/locales/en.yml
200
210
  - spec/dummy/config/routes.rb
201
- - spec/dummy/lib/assets/.gitkeep
202
211
  - spec/dummy/log/.gitkeep
203
212
  - spec/dummy/public/404.html
204
213
  - spec/dummy/public/422.html
@@ -236,12 +245,10 @@ specification_version: 4
236
245
  summary: Rafters lets you think about each page of your application as a collection
237
246
  of small pieces instead of monolithic, difficult to maintain views.
238
247
  test_files:
239
- - spec/dummy/README.rdoc
240
248
  - spec/dummy/Rakefile
241
249
  - spec/dummy/app/assets/javascripts/application.js
242
250
  - spec/dummy/app/assets/javascripts/posts.js
243
251
  - spec/dummy/app/assets/stylesheets/application.css
244
- - spec/dummy/app/assets/stylesheets/posts.css
245
252
  - spec/dummy/app/components/author/assets/images/.gitkeep
246
253
  - spec/dummy/app/components/author/assets/javascripts/author_component.js
247
254
  - spec/dummy/app/components/author/assets/stylesheets/author_component.scss
@@ -280,10 +287,8 @@ test_files:
280
287
  - spec/dummy/config.ru
281
288
  - spec/dummy/config/application.rb
282
289
  - spec/dummy/config/boot.rb
283
- - spec/dummy/config/database.yml
284
290
  - spec/dummy/config/environment.rb
285
291
  - spec/dummy/config/environments/development.rb
286
- - spec/dummy/config/environments/production.rb
287
292
  - spec/dummy/config/environments/test.rb
288
293
  - spec/dummy/config/initializers/backtrace_silencers.rb
289
294
  - spec/dummy/config/initializers/inflections.rb
@@ -294,7 +299,6 @@ test_files:
294
299
  - spec/dummy/config/initializers/wrap_parameters.rb
295
300
  - spec/dummy/config/locales/en.yml
296
301
  - spec/dummy/config/routes.rb
297
- - spec/dummy/lib/assets/.gitkeep
298
302
  - spec/dummy/log/.gitkeep
299
303
  - spec/dummy/public/404.html
300
304
  - spec/dummy/public/422.html
@@ -1,261 +0,0 @@
1
- == Welcome to Rails
2
-
3
- Rails is a web-application framework that includes everything needed to create
4
- database-backed web applications according to the Model-View-Control pattern.
5
-
6
- This pattern splits the view (also called the presentation) into "dumb"
7
- templates that are primarily responsible for inserting pre-built data in between
8
- HTML tags. The model contains the "smart" domain objects (such as Account,
9
- Product, Person, Post) that holds all the business logic and knows how to
10
- persist themselves to a database. The controller handles the incoming requests
11
- (such as Save New Account, Update Product, Show Post) by manipulating the model
12
- and directing data to the view.
13
-
14
- In Rails, the model is handled by what's called an object-relational mapping
15
- layer entitled Active Record. This layer allows you to present the data from
16
- database rows as objects and embellish these data objects with business logic
17
- methods. You can read more about Active Record in
18
- link:files/vendor/rails/activerecord/README.html.
19
-
20
- The controller and view are handled by the Action Pack, which handles both
21
- layers by its two parts: Action View and Action Controller. These two layers
22
- are bundled in a single package due to their heavy interdependence. This is
23
- unlike the relationship between the Active Record and Action Pack that is much
24
- more separate. Each of these packages can be used independently outside of
25
- Rails. You can read more about Action Pack in
26
- link:files/vendor/rails/actionpack/README.html.
27
-
28
-
29
- == Getting Started
30
-
31
- 1. At the command prompt, create a new Rails application:
32
- <tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
33
-
34
- 2. Change directory to <tt>myapp</tt> and start the web server:
35
- <tt>cd myapp; rails server</tt> (run with --help for options)
36
-
37
- 3. Go to http://localhost:3000/ and you'll see:
38
- "Welcome aboard: You're riding Ruby on Rails!"
39
-
40
- 4. Follow the guidelines to start developing your application. You can find
41
- the following resources handy:
42
-
43
- * The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
44
- * Ruby on Rails Tutorial Book: http://www.railstutorial.org/
45
-
46
-
47
- == Debugging Rails
48
-
49
- Sometimes your application goes wrong. Fortunately there are a lot of tools that
50
- will help you debug it and get it back on the rails.
51
-
52
- First area to check is the application log files. Have "tail -f" commands
53
- running on the server.log and development.log. Rails will automatically display
54
- debugging and runtime information to these files. Debugging info will also be
55
- shown in the browser on requests from 127.0.0.1.
56
-
57
- You can also log your own messages directly into the log file from your code
58
- using the Ruby logger class from inside your controllers. Example:
59
-
60
- class WeblogController < ActionController::Base
61
- def destroy
62
- @weblog = Weblog.find(params[:id])
63
- @weblog.destroy
64
- logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
65
- end
66
- end
67
-
68
- The result will be a message in your log file along the lines of:
69
-
70
- Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
71
-
72
- More information on how to use the logger is at http://www.ruby-doc.org/core/
73
-
74
- Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
75
- several books available online as well:
76
-
77
- * Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
78
- * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
79
-
80
- These two books will bring you up to speed on the Ruby language and also on
81
- programming in general.
82
-
83
-
84
- == Debugger
85
-
86
- Debugger support is available through the debugger command when you start your
87
- Mongrel or WEBrick server with --debugger. This means that you can break out of
88
- execution at any point in the code, investigate and change the model, and then,
89
- resume execution! You need to install ruby-debug to run the server in debugging
90
- mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
91
-
92
- class WeblogController < ActionController::Base
93
- def index
94
- @posts = Post.all
95
- debugger
96
- end
97
- end
98
-
99
- So the controller will accept the action, run the first line, then present you
100
- with a IRB prompt in the server window. Here you can do things like:
101
-
102
- >> @posts.inspect
103
- => "[#<Post:0x14a6be8
104
- @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
105
- #<Post:0x14a6620
106
- @attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
107
- >> @posts.first.title = "hello from a debugger"
108
- => "hello from a debugger"
109
-
110
- ...and even better, you can examine how your runtime objects actually work:
111
-
112
- >> f = @posts.first
113
- => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
114
- >> f.
115
- Display all 152 possibilities? (y or n)
116
-
117
- Finally, when you're ready to resume execution, you can enter "cont".
118
-
119
-
120
- == Console
121
-
122
- The console is a Ruby shell, which allows you to interact with your
123
- application's domain model. Here you'll have all parts of the application
124
- configured, just like it is when the application is running. You can inspect
125
- domain models, change values, and save to the database. Starting the script
126
- without arguments will launch it in the development environment.
127
-
128
- To start the console, run <tt>rails console</tt> from the application
129
- directory.
130
-
131
- Options:
132
-
133
- * Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
134
- made to the database.
135
- * Passing an environment name as an argument will load the corresponding
136
- environment. Example: <tt>rails console production</tt>.
137
-
138
- To reload your controllers and models after launching the console run
139
- <tt>reload!</tt>
140
-
141
- More information about irb can be found at:
142
- link:http://www.rubycentral.org/pickaxe/irb.html
143
-
144
-
145
- == dbconsole
146
-
147
- You can go to the command line of your database directly through <tt>rails
148
- dbconsole</tt>. You would be connected to the database with the credentials
149
- defined in database.yml. Starting the script without arguments will connect you
150
- to the development database. Passing an argument will connect you to a different
151
- database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
152
- PostgreSQL and SQLite 3.
153
-
154
- == Description of Contents
155
-
156
- The default directory structure of a generated Ruby on Rails application:
157
-
158
- |-- app
159
- | |-- assets
160
- | | |-- images
161
- | | |-- javascripts
162
- | | `-- stylesheets
163
- | |-- controllers
164
- | |-- helpers
165
- | |-- mailers
166
- | |-- models
167
- | `-- views
168
- | `-- layouts
169
- |-- config
170
- | |-- environments
171
- | |-- initializers
172
- | `-- locales
173
- |-- db
174
- |-- doc
175
- |-- lib
176
- | |-- assets
177
- | `-- tasks
178
- |-- log
179
- |-- public
180
- |-- script
181
- |-- test
182
- | |-- fixtures
183
- | |-- functional
184
- | |-- integration
185
- | |-- performance
186
- | `-- unit
187
- |-- tmp
188
- | `-- cache
189
- | `-- assets
190
- `-- vendor
191
- |-- assets
192
- | |-- javascripts
193
- | `-- stylesheets
194
- `-- plugins
195
-
196
- app
197
- Holds all the code that's specific to this particular application.
198
-
199
- app/assets
200
- Contains subdirectories for images, stylesheets, and JavaScript files.
201
-
202
- app/controllers
203
- Holds controllers that should be named like weblogs_controller.rb for
204
- automated URL mapping. All controllers should descend from
205
- ApplicationController which itself descends from ActionController::Base.
206
-
207
- app/models
208
- Holds models that should be named like post.rb. Models descend from
209
- ActiveRecord::Base by default.
210
-
211
- app/views
212
- Holds the template files for the view that should be named like
213
- weblogs/index.html.erb for the WeblogsController#index action. All views use
214
- eRuby syntax by default.
215
-
216
- app/views/layouts
217
- Holds the template files for layouts to be used with views. This models the
218
- common header/footer method of wrapping views. In your views, define a layout
219
- using the <tt>layout :default</tt> and create a file named default.html.erb.
220
- Inside default.html.erb, call <% yield %> to render the view using this
221
- layout.
222
-
223
- app/helpers
224
- Holds view helpers that should be named like weblogs_helper.rb. These are
225
- generated for you automatically when using generators for controllers.
226
- Helpers can be used to wrap functionality for your views into methods.
227
-
228
- config
229
- Configuration files for the Rails environment, the routing map, the database,
230
- and other dependencies.
231
-
232
- db
233
- Contains the database schema in schema.rb. db/migrate contains all the
234
- sequence of Migrations for your schema.
235
-
236
- doc
237
- This directory is where your application documentation will be stored when
238
- generated using <tt>rake doc:app</tt>
239
-
240
- lib
241
- Application specific libraries. Basically, any kind of custom code that
242
- doesn't belong under controllers, models, or helpers. This directory is in
243
- the load path.
244
-
245
- public
246
- The directory available for the web server. Also contains the dispatchers and the
247
- default HTML files. This should be set as the DOCUMENT_ROOT of your web
248
- server.
249
-
250
- script
251
- Helper scripts for automation and generation.
252
-
253
- test
254
- Unit and functional tests along with fixtures. When using the rails generate
255
- command, template test files will be generated for you and placed in this
256
- directory.
257
-
258
- vendor
259
- External libraries that the application depends on. Also includes the plugins
260
- subdirectory. If the app has frozen rails, those gems also go here, under
261
- vendor/rails/. This directory is in the load path.
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -1,70 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Full error reports are disabled and caching is turned on
8
- config.consider_all_requests_local = false
9
- config.action_controller.perform_caching = true
10
-
11
- # Eager loading
12
- config.eager_load = false
13
-
14
- # Disable Rails's static asset server (Apache or nginx will already do this)
15
- config.serve_static_assets = false
16
-
17
- # Compress JavaScripts and CSS
18
- config.assets.compress = true
19
-
20
- # Don't fallback to assets pipeline if a precompiled asset is missed
21
- config.assets.compile = false
22
-
23
- # Generate digests for assets URLs
24
- config.assets.digest = true
25
-
26
- # Defaults to nil and saved in location specified by config.assets.prefix
27
- # config.assets.manifest = YOUR_PATH
28
-
29
- # Specifies the header that your server uses for sending files
30
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
31
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
32
-
33
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
34
- # config.force_ssl = true
35
-
36
- # See everything in the log (default is :info)
37
- # config.log_level = :debug
38
-
39
- # Prepend all log lines with the following tags
40
- # config.log_tags = [ :subdomain, :uuid ]
41
-
42
- # Use a different logger for distributed setups
43
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
44
-
45
- # Use a different cache store in production
46
- # config.cache_store = :mem_cache_store
47
-
48
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
49
- # config.action_controller.asset_host = "http://assets.example.com"
50
-
51
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
52
- # config.assets.precompile += %w( search.js )
53
-
54
- # Disable delivery errors, bad email addresses will be ignored
55
- # config.action_mailer.raise_delivery_errors = false
56
-
57
- # Enable threaded mode
58
- # config.threadsafe!
59
-
60
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
61
- # the I18n.default_locale when a translation can not be found)
62
- config.i18n.fallbacks = true
63
-
64
- # Send deprecation notices to registered listeners
65
- config.active_support.deprecation = :notify
66
-
67
- # Log the query plan for queries taking more than this (works
68
- # with SQLite, MySQL, and PostgreSQL)
69
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
70
- end
File without changes