jekyll-import 0.10.0 → 0.11.0

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: 978cb59817a6828ea723eeef82002e9520fb9993
4
- data.tar.gz: d193cd60fe7c2c3872a072030e2d08d4d7d42637
3
+ metadata.gz: 411790c3c98c3ba0eee2dffdc56eeb1b9ccd30b2
4
+ data.tar.gz: 57d36c8a9489910f81bdacd6cb36a52f9c46e17c
5
5
  SHA512:
6
- metadata.gz: cd53d8b869acd8123793c72e261e2a5e4a452a3ea3162783aa5df9af32059c23a37a2fb9e5eb238f91894632fb37558b735660c0257b06b242954443afb5e7dd
7
- data.tar.gz: ed999729e91426cd839bb5abd8954c6a3004c78b22a6d3571bc5336d3abd634848ea19726aabef4af8041c0485765b18549a6cc3f225622e0a5d08630c051d3d
6
+ metadata.gz: e6b0b500144bc36702db64ee1344e91ce8b3f37fa929ae1f241957c076010a5b3a89e2e9cd5fe2639b3610f2b540fc0166c86ff1b70dccad68431dc287dec192
7
+ data.tar.gz: cbc3b694be174e53b55d5851672c3413d93d1f6eb2c7cbf9dd073192a80c8c2fa697ac4adbf61b7534ce49f7948c951a690d4f1a6a791e402625110178d3a501
@@ -40,6 +40,7 @@ module JekyllImport
40
40
  sequel
41
41
  fileutils
42
42
  safe_yaml
43
+ mysql
43
44
  ])
44
45
  end
45
46
 
@@ -41,7 +41,10 @@ module JekyllImport
41
41
  feed_url = url + "?num=#{per_page}&start=#{current_page * per_page}"
42
42
  puts "Fetching #{feed_url}"
43
43
  feed = open(feed_url)
44
- json = feed.readlines.join("\n")[21...-2] # Strip Tumblr's JSONP chars.
44
+ contents = feed.readlines.join("\n")
45
+ beginning = contents.index("{")
46
+ ending = contents.rindex("}")
47
+ json = contents[beginning..ending] # Strip Tumblr's JSONP chars.
45
48
  blog = JSON.parse(json)
46
49
  puts "Page: #{current_page + 1} - Posts: #{blog["posts"].size}"
47
50
  batch = blog["posts"].map { |post| post_to_hash(post, format) }
@@ -1,3 +1,3 @@
1
1
  module JekyllImport
2
- VERSION = '0.10.0'
2
+ VERSION = '0.11.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-import
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-16 00:00:00.000000000 Z
11
+ date: 2016-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: 1.0.1
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: sequel
169
183
  requirement: !ruby/object:Gem::Requirement