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 +4 -4
- data/lib/jekyll-import/importers/drupal6.rb +1 -0
- data/lib/jekyll-import/importers/tumblr.rb +4 -1
- data/lib/jekyll-import/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 411790c3c98c3ba0eee2dffdc56eeb1b9ccd30b2
|
4
|
+
data.tar.gz: 57d36c8a9489910f81bdacd6cb36a52f9c46e17c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6b0b500144bc36702db64ee1344e91ce8b3f37fa929ae1f241957c076010a5b3a89e2e9cd5fe2639b3610f2b540fc0166c86ff1b70dccad68431dc287dec192
|
7
|
+
data.tar.gz: cbc3b694be174e53b55d5851672c3413d93d1f6eb2c7cbf9dd073192a80c8c2fa697ac4adbf61b7534ce49f7948c951a690d4f1a6a791e402625110178d3a501
|
@@ -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
|
-
|
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) }
|
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.
|
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-
|
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
|