critical-path-css-rails 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/critical-path-css-rails.rb +1 -1
- data/lib/critical_path_css/configuration.rb +2 -1
- data/lib/critical_path_css/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95bdd37882da54487a75f7757f4df5f45a0daa45
|
4
|
+
data.tar.gz: 468b72efbff091a327d69a7fe1876f4698d0d363
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6868c40d8d58f03a185cdf5b002ca010e27e7fcd22368a2ad498314362a1069b5166303f1d469f7808df7c4307730d6e47014fea433d4271d2580343b2687a5
|
7
|
+
data.tar.gz: 36c659a731465c67db6a2b695bea134a321a333a95b9d715525049bf0c197932231508d258315bb5681019688edbbba683a3778a48cb1229ad1244278ea4576a
|
data/README.md
CHANGED
@@ -74,8 +74,9 @@ A simple example using loadcss-rails looks like:
|
|
74
74
|
<script>
|
75
75
|
loadCSS("<%= stylesheet_path('application') %>");
|
76
76
|
</script>
|
77
|
+
<link rel="preload" href="<%= stylesheet_path('application') %>" as="style" onload="this.rel='stylesheet'">
|
77
78
|
<noscript>
|
78
|
-
<%=
|
79
|
+
<link rel="stylesheet" href="<%= stylesheet_path('application') %>">
|
79
80
|
</noscript>
|
80
81
|
```
|
81
82
|
|
@@ -1,9 +1,10 @@
|
|
1
|
+
require 'erb'
|
1
2
|
module CriticalPathCss
|
2
3
|
class Configuration
|
3
4
|
CONFIGURATION_FILENAME = 'critical_path_css.yml'
|
4
5
|
|
5
6
|
def initialize
|
6
|
-
@configurations = YAML.
|
7
|
+
@configurations = YAML.load(ERB.new(File.read(configuration_file_path)).result)[Rails.env]
|
7
8
|
end
|
8
9
|
|
9
10
|
def base_url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: critical-path-css-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Misshore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04
|
11
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phantomjs
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
|
-
rubygems_version: 2.
|
71
|
+
rubygems_version: 2.5.1
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: Critical Path CSS for Rails!
|