rails_critical_css_server 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4635add259c6b78a9a8bee26fa354e74b6b7a0d5
4
- data.tar.gz: a8281b77c7bb0ebc958084e7e51051ec3221032f
2
+ SHA256:
3
+ metadata.gz: ef7e6acbeaa79e836b44a75a7b22c63b0a3f246d5bebe72f724e771da4615a22
4
+ data.tar.gz: 7b173aa56235c56713c869818e5546c843bf535dc3cc2fc1188e473ae02c0a30
5
5
  SHA512:
6
- metadata.gz: 2bd1c2052a6afe408c2968f23582638569f10ccaa9954ee34f4ca4287cd9b3989c024af3c7a3d62ebe9f454d399611ba7cbe0e342c8c3e48af9976d4748411de
7
- data.tar.gz: 92ff6edfeb33f964866f80caf5c10fe5f6fcc45dbac1117bb66ea78d29580545cabb97ca9a7266a724244e75ee04adf33e70d6fbd6509f8e31b7635e9385d416
6
+ metadata.gz: 435f01747b0ee97688e15df98d624be84ada8573bc3ddea67bf231efcbb06405ab152a650d347c4dfcf85909f67ab57bb724a801a8f7366ff1305bcf5862fc52
7
+ data.tar.gz: 99ac55f39318c35285a9e3e9f8735d1100727341ce8ce638d0fb9ab99aa8159762f435132c7d9abbf36b1367ac032c7174791c29eba573d5aa322deaa00111e2
@@ -1,7 +1,7 @@
1
1
  module RailsCriticalCssServer
2
2
  class Config
3
3
  class << self
4
- attr_writer :host, :version, :timeout, :force_selectors, :auth_token, :width, :height
4
+ attr_writer :host, :version, :timeout, :force_selectors, :auth_token, :width, :height, :keep_larger_media_queries
5
5
 
6
6
  def timeout
7
7
  @timeout ||= 0.05
@@ -31,11 +31,16 @@ module RailsCriticalCssServer
31
31
  @height ||= 900
32
32
  end
33
33
 
34
+ def keep_larger_media_queries
35
+ @keep_larger_media_queries ||= false
36
+ end
37
+
34
38
  def read_options
35
39
  {
36
40
  'forceInclude' => force_selectors,
37
41
  'width' => width,
38
- 'height' => height
42
+ 'height' => height,
43
+ 'keepLargerMediaQueries' => keep_larger_media_queries
39
44
  }
40
45
  end
41
46
  end
@@ -1,3 +1,3 @@
1
1
  module RailsCriticalCssServer
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_critical_css_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wheeler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-19 00:00:00.000000000 Z
11
+ date: 2019-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.4.8
99
+ rubygems_version: 2.7.8
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Prioritize above-the-fold CSS in a Rails application