jekyll_ghost_importer 0.4.0 → 0.5.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: 3103e2b999a9e1f32d2a6164fdaae346e34bf761
4
- data.tar.gz: 3f908a60dfcf85d8131aca3a87864af729c0e664
3
+ metadata.gz: fbf9bee3bd71534fbd0afe06aca49476b7ec51fb
4
+ data.tar.gz: b7c84c3ca9d35e68995af4f17516ad92c490e495
5
5
  SHA512:
6
- metadata.gz: 0a1fb01587e48ef2f421d3302feeab4c2ee19c0e919f25231d52c50974962c9ed5fbc70305ec71f8b5f356e7c8700fb344251815c2d5d8b7a857698cd7e4564c
7
- data.tar.gz: eb8f7d251b4a749da61becc674d71f3c84d891935e0a140cdf3d550a79bc82a0073c72731d7972fc74876ff7e0a0e8a769941daef133daf0e687a13268bbc709
6
+ metadata.gz: c08ec9764ee82092d7278502c3f9bf7280ea0f997e56b161f860f9e978cab90af4e8dd7944ecc3ee38ee25e4a7d4b7a10fc932604364b92967855d1ae6d69d36
7
+ data.tar.gz: 2be18b5388d248be71b12971d0080bca7eda9f1d96994abaedb9e2c385d63d75ad47b3906418fcf722aa218248ecba87a371388f0470d4abf66bbe699244b291
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- [![Code Climate](http://img.shields.io/codeclimate/github/eloyesp/jekyll_ghost_importer.svg)](https://codeclimate.com/github/eloyesp/jekyll_ghost_importer)
2
- [![Build status](https://img.shields.io/codeship/d6c1ddd0-16a3-0132-5f85-2e35c05e22b1/master.svg?maxAge=2592000)](https://codeship.com/projects/153176)
3
- [![Gem Version](http://img.shields.io/gem/v/jekyll_ghost_importer.svg)](https://rubygems.org/gems/jekyll_ghost_importer)
1
+ [![Code Climate](http://img.shields.io/codeclimate/github/eloyesp/jekyll_ghost_importer.svg?maxAge=1800)](https://codeclimate.com/github/eloyesp/jekyll_ghost_importer)
2
+ [![Build status](https://img.shields.io/codeship/cb44c190-0061-0134-02b6-3a1fbd2b2974/master.svg?maxAge=1800)](https://codeship.com/projects/153176)
3
+ [![Gem Version](http://img.shields.io/gem/v/jekyll_ghost_importer.svg?maxAge=2592000)](https://rubygems.org/gems/jekyll_ghost_importer)
4
4
 
5
5
  # Jekyll ghost importer
6
6
 
@@ -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 (\d+) with some sample posts$/) do |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.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.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: 2016-05-20 00:00:00.000000000 Z
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.1
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
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.1