jekyll-fontello 0.1.2 → 0.1.4
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/README.md +1 -0
- data/lib/jekyll-fontello.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed0f117410c1a852e0469b716223eaca63f45d61
|
|
4
|
+
data.tar.gz: 931d67221b6bda11198904d33c35c2c851e9bd33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5890fff96eda7d2196819e8a6fea67740d9d80532ea1effe9056116af8bfae8dbf4a230465f2bc788ac732db3f8d7973b99170bad40bf74cc08efa3ede95b3c3
|
|
7
|
+
data.tar.gz: bf7b9c70b502abdab6c92cf17101f04e234602ba57bd16ab9b905193226dc7b8bbe8d94993f0b695cbedcb69e7df1a2222292ddc24b6d0d51dc0e08981d6247d
|
data/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://circleci.com/gh/ericcornelissen/jekyll-fontello)
|
|
4
4
|
[](https://codecov.io/gh/ericcornelissen/jekyll-fontello)
|
|
5
|
+
[](https://codeclimate.com/github/ericcornelissen/jekyll-fontello/maintainability)
|
|
5
6
|
[](https://badge.fury.io/rb/jekyll-fontello)
|
|
6
7
|
|
|
7
8
|
Jekyll plugin that automatically downloads your webfont from Fontello.
|
data/lib/jekyll-fontello.rb
CHANGED
|
@@ -118,17 +118,17 @@ module JekyllFontello
|
|
|
118
118
|
return File.read(SESSION_FILE) if File.exist? SESSION_FILE
|
|
119
119
|
|
|
120
120
|
url = URI(FONTELLO_URL)
|
|
121
|
-
boundary = '----
|
|
121
|
+
boundary = '----WebKitFormBoundary7MA4YWxkTrZu0gW'
|
|
122
122
|
|
|
123
123
|
# Setup a http connection with Fontello
|
|
124
124
|
http = Net::HTTP.new url.host, url.port
|
|
125
125
|
|
|
126
126
|
# Construct the request to get a session key
|
|
127
127
|
request = Net::HTTP::Post.new url
|
|
128
|
-
request[
|
|
129
|
-
request[
|
|
130
|
-
request[
|
|
131
|
-
request.body = "--#{boundary}\r\nContent-Disposition: form-data; name=\"config\"; filename=\"#{@config_file}\"\r\nContent-Type: application/json\r\n\r\n#{@fontello_config}\r\n
|
|
128
|
+
request["Content-Type"] = "multipart/form-data; boundary=#{boundary}"
|
|
129
|
+
request["Content-Disposition"] = 'multipart/form-data'
|
|
130
|
+
request["Cache-Control"] = 'no-cache'
|
|
131
|
+
request.body = "--#{boundary}\r\nContent-Disposition: form-data; name=\"config\"; filename=\"#{@config_file}\"\r\nContent-Type: application/json\r\n\r\n#{@fontello_config}\r\n--#{boundary}--"
|
|
132
132
|
|
|
133
133
|
# Send the request to Fontello
|
|
134
134
|
response = http.request(request)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-fontello
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Cornelissen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubyzip
|