premailer-rails-inline-css-fix 0.1
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
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 80405546f59131baa3649878316ca082e07b983f
|
4
|
+
data.tar.gz: e9d4358f6c242ad53855c31358d1fd33e605fdf2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bed551a88bf687d61a9ff644c465993f8600efe0d5ab42eadcfb94f85d91d276344d31946c16c01b11c21f1d7cc445830774c57988590d4f431d95c5646a5cb6
|
7
|
+
data.tar.gz: 89a2be84f4a0d7e556409a21598c0756f2d19da2f6ca97c4580cad2b79b47b47a95175b42715a87a2ed638524aceb1c9cfd4a0fbbc3b7d8bee2f6fa19b91a629
|
@@ -0,0 +1,13 @@
|
|
1
|
+
#--
|
2
|
+
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
3
|
+
# Version 2, December 2004
|
4
|
+
#
|
5
|
+
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
6
|
+
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
7
|
+
#
|
8
|
+
# 0. You just DO WHAT THE FUCK YOU WANT TO.
|
9
|
+
#++
|
10
|
+
|
11
|
+
require 'premailer-rails-inline-css-fix/premailer'
|
12
|
+
require 'premailer-rails-inline-css-fix/railtie'
|
13
|
+
require 'premailer-rails-inline-css-fix/version'
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#--
|
2
|
+
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
3
|
+
# Version 2, December 2004
|
4
|
+
#
|
5
|
+
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
6
|
+
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
7
|
+
#
|
8
|
+
# 0. You just DO WHAT THE FUCK YOU WANT TO.
|
9
|
+
#++
|
10
|
+
|
11
|
+
module PremailerInlineFix
|
12
|
+
class Premailer
|
13
|
+
module Rails
|
14
|
+
module CSSLoaders
|
15
|
+
module AssetPipelineLoader
|
16
|
+
extend self
|
17
|
+
|
18
|
+
def file_name(url)
|
19
|
+
temp_path = URI(url).path
|
20
|
+
.sub("#{::Rails.configuration.assets.prefix}/", '')
|
21
|
+
.sub(/-\h{32}\.css$/, '.css').sub('/stylesheets/', '')
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#--
|
2
|
+
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
3
|
+
# Version 2, December 2004
|
4
|
+
#
|
5
|
+
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
6
|
+
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
7
|
+
#
|
8
|
+
# 0. You just DO WHAT THE FUCK YOU WANT TO.
|
9
|
+
#++
|
10
|
+
|
11
|
+
module PremailerInlineFix
|
12
|
+
class Railtie < Rails::Railtie
|
13
|
+
initializer 'premailer.fix_inline_css' do |config|
|
14
|
+
config.middleware.delete Rack::Lock
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
#--
|
2
|
+
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
3
|
+
# Version 2, December 2004
|
4
|
+
#
|
5
|
+
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
6
|
+
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
7
|
+
#
|
8
|
+
# 0. You just DO WHAT THE FUCK YOU WANT TO.
|
9
|
+
#++
|
10
|
+
|
11
|
+
module PremailerInlineFix
|
12
|
+
VERSION = '0.1'
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: premailer-rails-inline-css-fix
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Giovanni Capuano
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: premailer
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
27
|
+
description: Because premailer doesn't inline (actually it does, but it's slow as
|
28
|
+
fuck) the CSS in Rails 4.1.x and I don't want to put the same patch everywhere.
|
29
|
+
email: webmaster@giovannicapuano.net
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- lib/premailer-rails-inline-css-fix.rb
|
35
|
+
- lib/premailer-rails-inline-css-fix/premailer.rb
|
36
|
+
- lib/premailer-rails-inline-css-fix/railtie.rb
|
37
|
+
- lib/premailer-rails-inline-css-fix/version.rb
|
38
|
+
homepage: https://github.com/RoxasShadow
|
39
|
+
licenses:
|
40
|
+
- WTFPL
|
41
|
+
metadata: {}
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options: []
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 2.2.2
|
59
|
+
signing_key:
|
60
|
+
specification_version: 4
|
61
|
+
summary: A fix to make the premailer's inline-css feature working on rails 4.1.x
|
62
|
+
test_files: []
|