rails_critical_css 0.3.7 → 0.3.8

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
  SHA256:
3
- metadata.gz: 77467407b3faaca39cea6db6b578d6cefa0635ccc221bb53087a9ac348840b62
4
- data.tar.gz: f8e5c8caccdcefa8265d5756c2b9780aa11fd74bfc0557ae325583e4ad1eff09
3
+ metadata.gz: '08b36ef0e246ec233ed907921d184c1b2988f310d6bf993b7416f83735390810'
4
+ data.tar.gz: 59ae0dabd12e65f59389ff27ecfb5ba0bbf912f1f38f80871bf353b268243918
5
5
  SHA512:
6
- metadata.gz: b4c47e5b244785bdc403d2267fc198fc18040ee65cb38ea1ecebfe501b7a8d922d0706a93110d0a093a0cf6fe889be33c1b4b06d3a3edf17686620ce9bb07c26
7
- data.tar.gz: 0a9f6cc4626c8c9bfcb3a091f0b30439bb826b35e35ca9544391b7b1c49eb4589460b6ecec7340cfe2f869caf76dc9efb8cfe6a2e3b2f53586b0148b583b6ee2
6
+ metadata.gz: 3849a469e93679d1393f405c34825ef6812ed614f2e9f38edc71d80aadc500f6d9255aa55dbb7915d3ec7e9f9fba28892ad37836c89850860111f492a8af556e
7
+ data.tar.gz: 6219ecd0584ab16821af3bbdb18ecff40d397f447350c7ea23c1fd95b4d170a2aa7f71e52a14973e0f2c4e911f94df3963e778434693f027151d8a1c74c853cf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_critical_css (0.3.7)
4
+ rails_critical_css (0.3.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -33,9 +33,11 @@ module RailsCriticalCss::Helpers
33
33
 
34
34
  def critical_css_link(href:, media: nil)
35
35
  if critical_css?
36
- link_to href: href, rel: 'preload', as: 'style', media: media, onload: "this.rel = 'stylesheet'"
36
+ link_to(href: href, rel: 'preload', as: 'style', media: media, onload: "this.rel = 'stylesheet'")
37
37
  else
38
- link_to href: href, rel: 'stylesheet', media: media
38
+ append_css_tags_assets(content) do
39
+ link_to(href: href, rel: 'stylesheet', media: media)
40
+ end
39
41
  end
40
42
  end
41
43
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsCriticalCss
4
- VERSION = '0.3.7'
4
+ VERSION = '0.3.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_critical_css
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Bagiński