jekyll-fontello 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/lib/jekyll-fontello.rb +5 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5398fb08dcd0d5ae6048ab98c3f5022a11ab3d37
4
- data.tar.gz: aa1118d37d5b9e25cebde83891020980f57a3678
3
+ metadata.gz: ed0f117410c1a852e0469b716223eaca63f45d61
4
+ data.tar.gz: 931d67221b6bda11198904d33c35c2c851e9bd33
5
5
  SHA512:
6
- metadata.gz: 710e8e15dc76f3fc80db449d88ff88320791bae37fec601d623dfd783f79e2adffa5c7be5d34cdcd4b9b6d4a683e79b6a6c1e624045a354207f757b0557ebe5f
7
- data.tar.gz: acd86205e3c63230056449981227cfa90f989bacbae76f3ffa4b137d04b6cb711191331cd9ce0d1bce73df89d13d8d275161a2dd986ebf7197adfd8673fd005b
6
+ metadata.gz: 5890fff96eda7d2196819e8a6fea67740d9d80532ea1effe9056116af8bfae8dbf4a230465f2bc788ac732db3f8d7973b99170bad40bf74cc08efa3ede95b3c3
7
+ data.tar.gz: bf7b9c70b502abdab6c92cf17101f04e234602ba57bd16ab9b905193226dc7b8bbe8d94993f0b695cbedcb69e7df1a2222292ddc24b6d0d51dc0e08981d6247d
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![CircleCI](https://circleci.com/gh/ericcornelissen/jekyll-fontello.svg?style=svg)](https://circleci.com/gh/ericcornelissen/jekyll-fontello)
4
4
  [![Codecov](https://codecov.io/gh/ericcornelissen/jekyll-fontello/branch/master/graph/badge.svg)](https://codecov.io/gh/ericcornelissen/jekyll-fontello)
5
+ [![Maintainability](https://api.codeclimate.com/v1/badges/2e63e692dc90862a47ad/maintainability)](https://codeclimate.com/github/ericcornelissen/jekyll-fontello/maintainability)
5
6
  [![Gem Version](https://badge.fury.io/rb/jekyll-fontello.png)](https://badge.fury.io/rb/jekyll-fontello)
6
7
 
7
8
  Jekyll plugin that automatically downloads your webfont from Fontello.
@@ -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 = '----WebKitFormREQUEST_BOUNDARY7MA4YWxkTrZu0gW'
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['Content-Type'] = "multipart/form-data; REQUEST_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\r\n\r\n--#{boundary}"
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.2
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-02-08 00:00:00.000000000 Z
11
+ date: 2018-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip