railties 3.1.1.rc3 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -398,7 +398,7 @@ This can be changed with the +config.assets.manifest+ option. A fully specified
398
398
  config.assets.manifest = '/path/to/some/other/location'
399
399
  </erb>
400
400
 
401
- NOTE: If there are missing precompiled files in production you will get an <tt>AssetNoPrecompiledError</tt> exception indicating the name of the missing file(s).
401
+ NOTE: If there are missing precompiled files in production you will get an <tt>Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPrecompiledError</tt> exception indicating the name of the missing file(s).
402
402
 
403
403
  h5. Server Configuration
404
404
 
@@ -436,38 +436,29 @@ location ~ ^/assets/ {
436
436
  }
437
437
  </plain>
438
438
 
439
- When files are precompiled, Sprockets also creates a "Gzip":http://en.wikipedia.org/wiki/Gzip (.gz) version of your assets. This avoids the server having to do this for any requests; it can simply read the compressed files from disk. You must configure your server to use gzip compression and serve the compressed assets that will be stored in the +public/assets+ folder. The following configuration options can be used:
439
+ When files are precompiled, Sprockets also creates a "gzipped":http://en.wikipedia.org/wiki/Gzip (.gz) version of your assets. Web servers are typically configured to use a moderate compression ratio as a compromise, but since precompilation happens once Sprockets uses the maximum compression ratio, thus reducing the size of the data transfer to the minimum. One the other hand, web servers can be configured to serve compressed content directly from disk, rather than deflating non-compressed files themselves.
440
440
 
441
- For Apache:
442
-
443
- <plain>
444
- <LocationMatch "^/assets/.*$">
445
- # 2 lines to serve pre-gzipped version
446
- RewriteCond %{REQUEST_FILENAME}.gz -s
447
- RewriteRule ^(.+) $1.gz [L]
448
- </LocationMatch>
449
-
450
- # without these, Content-Type will be "application/x-gzip"
451
- <FilesMatch "^/assets/.*\.css.gz$">
452
- ForceType text/css
453
- </FilesMatch>
454
-
455
- <FilesMatch "^/assets/.*\.js.gz$">
456
- ForceType text/javascript
457
- </FilesMatch>
458
- </plain>
459
-
460
- For nginx:
441
+ Nginx is able to do this automatically enabling +gzip_static+:
461
442
 
462
443
  <plain>
463
444
  location ~ ^/(assets)/ {
464
445
  root /path/to/public;
465
446
  gzip_static on; # to serve pre-gzipped version
466
447
  expires max;
467
- add_header Cache-Control public;
448
+ add_header Cache-Control public;
468
449
  }
469
450
  </plain>
470
451
 
452
+ This directive is available if the core module that provides this feature was compiled with the web server. Ubuntu packages, even +nginx-light+ have the module compiled. Otherwise, you may need to perform a manual compilation:
453
+
454
+ <plain>
455
+ ./configure --with-http_gzip_static_module
456
+ </plain>
457
+
458
+ If you're compiling nginx with Phusion Passenger you'll need to pass that option when prompted.
459
+
460
+ Unfortunately, a robust configuration for Apache is possible but tricky, please Google around.
461
+
471
462
  h4. Live Compilation
472
463
 
473
464
  In some circumstances you may wish to use live compilation. In this mode all requests for assets in the pipeline are handled by Sprockets directly.
@@ -3,7 +3,7 @@ module Rails
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
5
  TINY = 1
6
- PRE = "rc3"
6
+ PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railties
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940592
5
- prerelease: true
4
+ hash: 1
5
+ prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
9
  - 1
10
- - rc3
11
- version: 3.1.1.rc3
10
+ version: 3.1.1
12
11
  platform: ruby
13
12
  authors:
14
13
  - David Heinemeier Hansson
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-10-05 00:00:00 -02:00
18
+ date: 2011-10-07 00:00:00 -02:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -90,13 +89,12 @@ dependencies:
90
89
  requirements:
91
90
  - - "="
92
91
  - !ruby/object:Gem::Version
93
- hash: 977940592
92
+ hash: 1
94
93
  segments:
95
94
  - 3
96
95
  - 1
97
96
  - 1
98
- - rc3
99
- version: 3.1.1.rc3
97
+ version: 3.1.1
100
98
  type: :runtime
101
99
  version_requirements: *id005
102
100
  - !ruby/object:Gem::Dependency
@@ -107,13 +105,12 @@ dependencies:
107
105
  requirements:
108
106
  - - "="
109
107
  - !ruby/object:Gem::Version
110
- hash: 977940592
108
+ hash: 1
111
109
  segments:
112
110
  - 3
113
111
  - 1
114
112
  - 1
115
- - rc3
116
- version: 3.1.1.rc3
113
+ version: 3.1.1
117
114
  type: :runtime
118
115
  version_requirements: *id006
119
116
  description: "Rails internals: application bootup, plugins, generators, and rake tasks."
@@ -554,14 +551,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
554
551
  required_rubygems_version: !ruby/object:Gem::Requirement
555
552
  none: false
556
553
  requirements:
557
- - - ">"
554
+ - - ">="
558
555
  - !ruby/object:Gem::Version
559
- hash: 25
556
+ hash: 3
560
557
  segments:
561
- - 1
562
- - 3
563
- - 1
564
- version: 1.3.1
558
+ - 0
559
+ version: "0"
565
560
  requirements: []
566
561
 
567
562
  rubyforge_project: