rails_serve_static_assets 0.0.4 → 0.0.5
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/lib/rails_serve_static_assets/railtie.rb +4 -1
- data/lib/rails_serve_static_assets/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99a2719b997aed410c2d178343ff8ac2fd6e6abb
|
|
4
|
+
data.tar.gz: 7c455e765ea5a020c8fbe8c5d6fe3cca9f4e2ee4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c949a9c774a1cee0ac18ad62042554d9f52c97a7baa6ae27ed1084984b404a8d20184efb756400014331f93d555c959dfe5760dfbf4bc36eb4f18949c7a824e4
|
|
7
|
+
data.tar.gz: 9d5fa8407dc15cb38985cbd3bc1f59e0af65b40cb26289e279a9a427048d61f6e3f9ce96b0493e899a007d206d41413cfdf654da0b58bd67bca8a232efbef3f4
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Master
|
|
4
4
|
|
|
5
|
+
## [0.0.5] - 2015-02-01
|
|
6
|
+
|
|
7
|
+
- Added support for Rails 5.0 [#16](https://github.com/heroku/rails_serve_static_assets/pull/16)
|
|
8
|
+
|
|
5
9
|
## [0.0.4] - 2015-01-29
|
|
6
10
|
|
|
7
11
|
- Reduce gem size on disk closes [#13](https://github.com/heroku/rails_serve_static_assets/issues/13)
|
data/README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
module RailsServeStaticAssets
|
|
2
2
|
class Railtie < Rails::Railtie
|
|
3
3
|
config.before_initialize do
|
|
4
|
-
|
|
4
|
+
version = Rails.version
|
|
5
|
+
if version >= "5.0.0"
|
|
6
|
+
::Rails.configuration.public_file_server.enabled = true
|
|
7
|
+
elsif version >= "4.2.0"
|
|
5
8
|
::Rails.configuration.serve_static_files = true
|
|
6
9
|
else
|
|
7
10
|
::Rails.configuration.serve_static_assets = true
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_serve_static_assets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pedro Belo
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
141
|
version: '0'
|
|
142
142
|
requirements: []
|
|
143
143
|
rubyforge_project:
|
|
144
|
-
rubygems_version: 2.
|
|
144
|
+
rubygems_version: 2.5.1
|
|
145
145
|
signing_key:
|
|
146
146
|
specification_version: 4
|
|
147
147
|
summary: Sets serve_static_assets to true so Rails will sere your static assets
|
|
@@ -192,4 +192,3 @@ test_files:
|
|
|
192
192
|
- test/rails_app/public/favicon.ico
|
|
193
193
|
- test/rails_app/script/rails
|
|
194
194
|
- test/test_helper.rb
|
|
195
|
-
has_rdoc:
|