premonition 4.0.0.pre2 → 4.0.0.pre3

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
  SHA256:
3
- metadata.gz: 702f70cebe5c5bc886febd4ef952d96ae29fb3648005c0c2b479dcb6558ad05d
4
- data.tar.gz: f68b77e7d9a65c7d92bf859375d6705df066c902548425f0d81020afba05991b
3
+ metadata.gz: abfe46c768bd3eb585a45c353bfec07ec3949d9e429fa6ad33048c7ea95f1073
4
+ data.tar.gz: f4faec4011c684028b26ad4a6d8e4e1f898d39b430be3d52699811ae874de136
5
5
  SHA512:
6
- metadata.gz: 738fa98b26ce9d6f5a8ed7bfd7ae646d264d85a252139f4d7ad44dcff77d25bc98389ea2412d36a0f194e179745bfd085d54576e8282badbf577a446f885c862
7
- data.tar.gz: 8f86832b377ba7be043d80cdde9ff8134dbb6d4f42c2caf27adbed85dfe3f5902ba45b3316981918fe23ba3f6d0980fd788eebe0572c11302710dbb3ed7f85df
6
+ metadata.gz: d7e50e23298fdba22b884c1a26b1c7ccb6cc4210c0c08b20d0bb29e40e2034c60fbb253e5f1b542b6109fd82d3d878cc95e3da18887e2bb409393daf6ed2a978
7
+ data.tar.gz: a419bd8dca3eadc59799eefbea6b7738a316629f45aa925c146482e202633a6685550f23fc0e15a17075f0d3bbc42ce68085786c6391333b6b420ef5df8e1cb5
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Premonition
2
2
 
3
+ NOTE: This is the documentation for the version 4 release, coming soon. For 2.x documentation, please switch to the `2.x` branch.
4
+
3
5
  [Demo site](https://lazee.github.io/premonition-demo/) ([Source code](https://github.com/lazee/premonition-demo))
4
6
 
5
7
  Premonition is a higly customizable [Jekyll](https://jekyllrb.com/) plugin that can convert Markdown block-quotes into beautiful block styled content.
@@ -43,7 +45,7 @@ Add the following line to your `Gemfile` inside your Jekyll project folder:
43
45
 
44
46
  ```
45
47
  group :jekyll_plugins do
46
- gem "premonition", "~> 4.0.0"
48
+ gem "premonition", "4.0.0.pre3"
47
49
  end
48
50
  ```
49
51
 
@@ -63,6 +65,7 @@ bundle install
63
65
  ### Installing the default stylesheet
64
66
 
65
67
  Finally, if you want to use the default Premonition styling (You really should!), then you have to install the SASS stylesheet.
68
+ Note: The installer expect you to have installed SASS support like it is described in the Jekyll documentation: https://jekyllrb.com/docs/step-by-step/07-assets/#sass.
66
69
 
67
70
  From your Jekyll project folder, run:
68
71
 
@@ -23,8 +23,8 @@ module Jekyll
23
23
  puts '== Installing Premonition Stylesheet and resources =="'
24
24
  puts '-- premonition.scss --'
25
25
  dest = opts['dest'].nil? || opts['dest'].empty? ? './_sass/' : File.join(opts['dest'], '')
26
- main = opts['main'].nil? || opts['main'].empty? ? './assets/main.scss' : opts['main']
27
- raise StandardError, "#{dest} folder does not exist" unless Dir.exist?(dest)
26
+ main = opts['main'].nil? || opts['main'].empty? ? './assets/css/styles.scss' : opts['main']
27
+ raise StandardError, "#{dest} folder does not exist. Create it manually, and run script again." unless Dir.exist?(dest)
28
28
  raise StandardError, "#{main} does not exist" unless File.exist?(main)
29
29
 
30
30
  uri = URI('https://raw.githubusercontent.com/lazee/premonition/master/stylesheet/premonition.scss')
@@ -11,7 +11,7 @@ module Jekyll
11
11
  end
12
12
 
13
13
  def generate_excerpt?(doc)
14
- !doc.data['excerpt_separator'].empty?
14
+ !doc.data['excerpt_separator'].nil? && !doc.data['excerpt_separator'].empty?
15
15
  end
16
16
 
17
17
  def process?(resources, doc)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Premonition
5
- VERSION = '4.0.0.pre2'
5
+ VERSION = '4.0.0.pre3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: premonition
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.pre2
4
+ version: 4.0.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakob Vad Nielsen