rails_critical_css_server 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 4315716a1c280034eee9a5b73934bbfdf4a24fae
4
- data.tar.gz: 106e235a486969775f72875b46ebe19b531210af
3
+ metadata.gz: 4635add259c6b78a9a8bee26fa354e74b6b7a0d5
4
+ data.tar.gz: a8281b77c7bb0ebc958084e7e51051ec3221032f
5
5
  SHA512:
6
- metadata.gz: 45f8b82422672a8b82ae9b649b035d1a710de5dc64c3247597a077bb02ebd3872c60078f7630a82a9fc2a916950a406eb23d0d2c3c84ba3c873ceb04cfc88c5f
7
- data.tar.gz: beb3e939c006289bca58583d8d6aa3981b75a6043e4c4649f8b6b4e2c116289724ff757e64399e28478e02f9e531a375cacdb20a98f50636bf33c7fb864b0c3e
6
+ metadata.gz: 2bd1c2052a6afe408c2968f23582638569f10ccaa9954ee34f4ca4287cd9b3989c024af3c7a3d62ebe9f454d399611ba7cbe0e342c8c3e48af9976d4748411de
7
+ data.tar.gz: 92ff6edfeb33f964866f80caf5c10fe5f6fcc45dbac1117bb66ea78d29580545cabb97ca9a7266a724244e75ee04adf33e70d6fbd6509f8e31b7635e9385d416
@@ -4,6 +4,7 @@ require 'rails_critical_css_server/config'
4
4
  require 'rails_critical_css_server/client'
5
5
  require 'rails_critical_css_server/extract_css_from_html'
6
6
  require 'rails_critical_css_server/rewrite'
7
+ require 'rails_critical_css_server/error_handler'
7
8
 
8
9
  module RailsCriticalCssServer
9
10
  def self.config
@@ -30,7 +30,7 @@ module RailsCriticalCssServer
30
30
  end
31
31
 
32
32
  def log_error(error)
33
- Rails.logger.error error
33
+ ErrorHandler.call error
34
34
  end
35
35
 
36
36
  private
@@ -0,0 +1,9 @@
1
+ module RailsCriticalCssServer
2
+ class ErrorHandler
3
+ extend Callable
4
+
5
+ def call(error)
6
+ Rails.logger.error error
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsCriticalCssServer
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
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.2
4
+ version: 0.1.3
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-07 00:00:00.000000000 Z
11
+ date: 2017-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -71,6 +71,7 @@ files:
71
71
  - lib/rails_critical_css_server/client.rb
72
72
  - lib/rails_critical_css_server/config.rb
73
73
  - lib/rails_critical_css_server/engine.rb
74
+ - lib/rails_critical_css_server/error_handler.rb
74
75
  - lib/rails_critical_css_server/extract_css_from_html.rb
75
76
  - lib/rails_critical_css_server/rewrite.rb
76
77
  - lib/rails_critical_css_server/version.rb