inline-css-html-converter 0.1.3 → 0.1.7
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 +4 -4
- data/Gemfile +1 -1
- data/README.md +1 -0
- data/inline-css-html-converter.gemspec +1 -3
- data/lib/inline-css-html-converter.rb +0 -1
- data/lib/inline-css-html-converter/worker.rb +8 -4
- metadata +2 -3
- data/lib/inline-css-html-converter/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0c559afbb78f2661bfcbf46d234ffcb3ff13bc3
|
4
|
+
data.tar.gz: 51c213b4274a59ac9f478e8eefaa6e7a16f23662
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b239784ad9dbbf1733e28e30b6c891e8a5f64b0834adcf2bbc900f15c660f407d831db1d85687ef4a40d36a49ee5aa587c5327e5f5bff2842b23a94e21f55682
|
7
|
+
data.tar.gz: 8f13ea2d8f9d578ae5c63b9d2c9fccff943b19f572d52951c0ed956bba209bbd2fd4c2de18146637c726efb0131ae189492de678e7087788b8d82ebcfa9de726
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,7 @@ Inline CSS HTML Converter
|
|
2
2
|
==
|
3
3
|
[](https://travis-ci.org/Garllon/inline-css-html-converter)
|
4
4
|
[](https://codeclimate.com/github/Garllon/inline-css-html-converter)
|
5
|
+
[](https://badge.fury.io/rb/inline-css-html-converter)
|
5
6
|
|
6
7
|
I use the MailChimpAPI
|
7
8
|
|
@@ -1,8 +1,6 @@
|
|
1
|
-
$:.push File.expand_path("../lib", __FILE__)
|
2
|
-
|
3
1
|
Gem::Specification.new do |s|
|
4
2
|
s.name = "inline-css-html-converter"
|
5
|
-
s.version =
|
3
|
+
s.version = '0.1.7'
|
6
4
|
|
7
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
6
|
s.required_ruby_version = '>= 2.2.2'
|
@@ -18,15 +18,19 @@ module InlineCssHtmlConverter
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def perform
|
21
|
-
result =
|
22
|
-
body: parameters.to_json,
|
23
|
-
verify: true,
|
24
|
-
headers: { 'Content-Type' => 'application/json' })
|
21
|
+
result = call_mailchimp
|
25
22
|
result['html']
|
26
23
|
end
|
27
24
|
|
28
25
|
private
|
29
26
|
|
27
|
+
def call_mailchimp
|
28
|
+
HTTParty.post(call_url,
|
29
|
+
body: parameters.to_json,
|
30
|
+
verify: true,
|
31
|
+
headers: { 'Content-Type' => 'application/json' })
|
32
|
+
end
|
33
|
+
|
30
34
|
def call_url
|
31
35
|
@host + '/helper/inline-css.json'
|
32
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline-css-html-converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bennet Palluthe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -87,7 +87,6 @@ files:
|
|
87
87
|
- inline-css-html-converter.gemspec
|
88
88
|
- lib/inline-css-html-converter.rb
|
89
89
|
- lib/inline-css-html-converter/errors.rb
|
90
|
-
- lib/inline-css-html-converter/version.rb
|
91
90
|
- lib/inline-css-html-converter/worker.rb
|
92
91
|
- pry.sh
|
93
92
|
- spec/spec_helper.rb
|