rails_critical_css 0.1.0 → 0.3.1

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
2
  SHA256:
3
- metadata.gz: bd4b7e4c280804bf93b6dd1d53781ded82f99b53ecd91e745eed3720c1c8673a
4
- data.tar.gz: 98a1ba570526be8b716cd23ee96e081e598b16a477d8cb5940631dffddf4327c
3
+ metadata.gz: 84662f8f4410652f07058871afd1cfd07fe33b4d421794f9de6e7ddc3faf792a
4
+ data.tar.gz: 67bc3f8e124bdcc17d368ae2029d7ae422fd7a758f7deb217c56134752fde4c4
5
5
  SHA512:
6
- metadata.gz: a38d5c49bf15e78494cf3c19973aa87b3e5f7db39cb6316a74d0d80c97278106f290a4ab6a5b8dfec3effa022489410e6fafedb306bdaef31715cbe18a5fd0f3
7
- data.tar.gz: 8a8843bd2855cf7b04a88c44a97d9a08f8c3216bcf72201ca1a69999e65373e45c85187c8dc929a616d85870679723b0492dc98a6eb4ee14ef0688e1510d6191
6
+ metadata.gz: 785c0d745864e57f73c3e3174058a5250cabb79c9572cd6e8ea2eb5724bf969f45f4aab398a562ccbaa67799a611e84fafe729520b755e8f6d69032a5e71fb6f
7
+ data.tar.gz: c1f42781caba50cd5ee79ee70fd0561a0a87fe360541343b727215bc87ba72ca16ace6706d3ea5c5d6f6295d9a43f0342197811b5cf0a9dda8549669fd3b7153
data/Gemfile CHANGED
@@ -1 +1,3 @@
1
1
  source 'https://rubygems.org'
2
+
3
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,3 +1,8 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rails_critical_css (0.3.1)
5
+
1
6
  GEM
2
7
  remote: https://rubygems.org/
3
8
  specs:
@@ -6,6 +11,7 @@ PLATFORMS
6
11
  x86_64-linux
7
12
 
8
13
  DEPENDENCIES
14
+ rails_critical_css!
9
15
 
10
16
  BUNDLED WITH
11
17
  2.2.21
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+ require 'rails/railtie'
3
+
4
+ module CriticalCssGenerator
5
+ class Railtie < Rails::Railtie
6
+ config.eager_load_namespaces << CriticalCssGenerator
7
+ end
8
+ end
@@ -9,6 +9,7 @@ require 'critical_css_generator/jobs/extractor'
9
9
  require 'critical_css_generator/actions/after_render'
10
10
  require 'critical_css_generator/actions/before_render'
11
11
  require 'critical_css_generator/helpers'
12
+ require 'critical_css_generator/railtie'
12
13
 
13
14
  module CriticalCssGenerator
14
15
  def self.config
@@ -1,6 +1,8 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = 'rails_critical_css'
3
- s.version = '0.1.0'
5
+ s.version = '0.3.1'
4
6
  s.summary = 'Critical CSS rails generator'
5
7
  s.authors = ['Mateusz Bagiński']
6
8
 
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.1.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Bagiński
@@ -31,6 +31,7 @@ files:
31
31
  - lib/critical_css_generator/extractor.rb
32
32
  - lib/critical_css_generator/helpers.rb
33
33
  - lib/critical_css_generator/jobs/extractor.rb
34
+ - lib/critical_css_generator/railtie.rb
34
35
  - lib/js/css-extractor.js
35
36
  - rails_critical_css.gemspec
36
37
  homepage: https://github.com/Mati365/rails-critical-css