jekyll_ghost_importer 0.4.0 → 0.5.0
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 +3 -3
- data/bin/jekyll_ghost_importer +4 -0
- data/features/step_definitions/backup_files.rb +1 -1
- data/jekyll_ghost_importer.gemspec +1 -1
- metadata +3 -4
- data/.travis.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbf9bee3bd71534fbd0afe06aca49476b7ec51fb
|
4
|
+
data.tar.gz: b7c84c3ca9d35e68995af4f17516ad92c490e495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c08ec9764ee82092d7278502c3f9bf7280ea0f997e56b161f860f9e978cab90af4e8dd7944ecc3ee38ee25e4a7d4b7a10fc932604364b92967855d1ae6d69d36
|
7
|
+
data.tar.gz: 2be18b5388d248be71b12971d0080bca7eda9f1d96994abaedb9e2c385d63d75ad47b3906418fcf722aa218248ecba87a371388f0470d4abf66bbe699244b291
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
[](https://codeclimate.com/github/eloyesp/jekyll_ghost_importer)
|
2
|
-
[](https://rubygems.org/gems/jekyll_ghost_importer)
|
1
|
+
[](https://codeclimate.com/github/eloyesp/jekyll_ghost_importer)
|
2
|
+
[](https://codeship.com/projects/153176)
|
3
|
+
[](https://rubygems.org/gems/jekyll_ghost_importer)
|
4
4
|
|
5
5
|
# Jekyll ghost importer
|
6
6
|
|
data/bin/jekyll_ghost_importer
CHANGED
@@ -66,6 +66,10 @@ class Post
|
|
66
66
|
'layout' => "post",
|
67
67
|
'title' => post[:title]
|
68
68
|
}
|
69
|
+
|
70
|
+
front_matter_hash['featured'] = true if post[:featured] == 1
|
71
|
+
front_matter_hash['image'] = post[:image] if post[:image] != nil
|
72
|
+
|
69
73
|
unless draft?
|
70
74
|
front_matter_hash['date'] = date.strftime('%Y-%m-%d %H:%M:%S') if date
|
71
75
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Given(/^a ghost backup file version (\
|
1
|
+
Given(/^a ghost backup file version (\w+) with some sample posts$/) do |version|
|
2
2
|
fixture = File.join __dir__, '..', 'fixtures', "version-#{ version }.json"
|
3
3
|
write_file 'GhostBackup.json', File.read(fixture)
|
4
4
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "jekyll_ghost_importer"
|
4
|
-
spec.version = "0.
|
4
|
+
spec.version = "0.5.0"
|
5
5
|
spec.authors = ["Eloy Espinaco"]
|
6
6
|
spec.email = ["eloyesp@gmail.com"]
|
7
7
|
spec.summary = %q{Import your posts from a ghost backup file.}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_ghost_importer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Espinaco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -47,7 +47,6 @@ extensions: []
|
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
49
|
- ".gitignore"
|
50
|
-
- ".travis.yml"
|
51
50
|
- COPYING
|
52
51
|
- Gemfile
|
53
52
|
- Guardfile
|
@@ -80,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
79
|
version: '0'
|
81
80
|
requirements: []
|
82
81
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.5.
|
82
|
+
rubygems_version: 2.5.2
|
84
83
|
signing_key:
|
85
84
|
specification_version: 4
|
86
85
|
summary: Import your posts from a ghost backup file.
|
data/.travis.yml
DELETED