premonition 2.0.0 → 2.0.1
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/LICENSE +1 -1
- data/README.md +3 -3
- data/lib/premonition/hook.rb +2 -2
- data/lib/premonition/version.rb +1 -1
- metadata +17 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2aaae4cd98bc03518dfe2ff814d0686aab58f5b0370f8bb3f4d3b19eef303007
|
|
4
|
+
data.tar.gz: 28c1d9e93692de8c29affe8982accb19327e4d7fcdb32186f4d00679f8a38964
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 647c3f5c4b253c9f13d447fdcb25e5aa83aba2ff215eb241c63d3cb1103bf26560b967697a6831f95be030691940cf2c4e599cb87f35a050766e5bb5199c87b7
|
|
7
|
+
data.tar.gz: 97837e09726a349eaf4817ebe4acb0cbd60042ca8d663c02b737f170fd5759ada261433da5f7b9691cf312aff8a73a9de4df0b2b6200c5c2820b4c39c9b43012
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Premonition
|
|
2
2
|
|
|
3
|
-
**DEMO: https://
|
|
3
|
+
**DEMO: https://lazee.github.io/premonition-demo/ ([Source code](https://github.com/lazee/premonition-demo))**
|
|
4
4
|
|
|
5
5
|
Premonition is a [Jekyll](https://jekyllrb.com/) extension that makes it possible to add block-styled content to your site in plain Markdown.
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ By adding a special header to the first line of a [block quote](https://github.c
|
|
|
8
8
|
Premonition will transform it into a markup block of your choice.
|
|
9
9
|
|
|
10
10
|
<p align="center">
|
|
11
|
-
<img src="https://github.com/
|
|
11
|
+
<img src="https://github.com/lazee/premonition/raw/master/screen.png" height="450"/>
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
14
|
## Features
|
|
@@ -161,7 +161,7 @@ premonition:
|
|
|
161
161
|
Premonition comes with a stylesheet you can copy into to your project. Either
|
|
162
162
|
as a Sass file or as plain css. The [Jekyll Documentation](https://jekyllrb.com/docs/assets/) describes the process in great details.
|
|
163
163
|
|
|
164
|
-
Download the stylesheet from here : https://github.com/
|
|
164
|
+
Download the stylesheet from here : https://github.com/lazee/premonition/tree/master/stylesheet
|
|
165
165
|
|
|
166
166
|
In order to get the fancy icons, you will have to add [Font Awesome](https://fontawesome.com/) to your html header file.
|
|
167
167
|
Be aware that you have to use v4.x of Font Awesome together with our CSS.
|
data/lib/premonition/hook.rb
CHANGED
|
@@ -20,14 +20,14 @@ module Jekyll
|
|
|
20
20
|
b = nil
|
|
21
21
|
doc.content.each_line do |l|
|
|
22
22
|
if blockquote?(l) && empty_block?(b)
|
|
23
|
-
if (m = l.match(
|
|
23
|
+
if (m = l.match(/^\s*\>\s+([a-z]+)\s+\"(.*)\"$/i))
|
|
24
24
|
y, t = m.captures
|
|
25
25
|
b = { 'title' => t.strip, 'type' => y.strip.downcase, 'content' => [] }
|
|
26
26
|
else
|
|
27
27
|
o << l
|
|
28
28
|
end
|
|
29
29
|
elsif blockquote?(l) && !empty_block?(b)
|
|
30
|
-
b['content'] << l.match(
|
|
30
|
+
b['content'] << l.match(/^\s*\>\s?(.*)$/i).captures[0]
|
|
31
31
|
else
|
|
32
32
|
if !blockquote?(l) && !empty_block?(b)
|
|
33
33
|
o << render_block(b)
|
data/lib/premonition/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: premonition
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jakob Vad Nielsen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -48,47 +48,47 @@ dependencies:
|
|
|
48
48
|
name: mocha
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
|
-
- - "
|
|
51
|
+
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version:
|
|
53
|
+
version: 1.11.2
|
|
54
54
|
type: :development
|
|
55
55
|
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
|
-
- - "
|
|
58
|
+
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version:
|
|
60
|
+
version: 1.11.2
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
|
62
62
|
name: rake
|
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
|
-
- - "
|
|
65
|
+
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version:
|
|
67
|
+
version: 13.0.1
|
|
68
68
|
type: :development
|
|
69
69
|
prerelease: false
|
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
|
-
- - "
|
|
72
|
+
- - "~>"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version:
|
|
74
|
+
version: 13.0.1
|
|
75
75
|
- !ruby/object:Gem::Dependency
|
|
76
76
|
name: turn
|
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
|
-
- - "
|
|
79
|
+
- - "~>"
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version:
|
|
81
|
+
version: 0.9.7
|
|
82
82
|
type: :development
|
|
83
83
|
prerelease: false
|
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
|
-
- - "
|
|
86
|
+
- - "~>"
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version:
|
|
88
|
+
version: 0.9.7
|
|
89
89
|
description:
|
|
90
90
|
email:
|
|
91
|
-
-
|
|
91
|
+
- jakobvadnielsen@gmail.com
|
|
92
92
|
executables: []
|
|
93
93
|
extensions: []
|
|
94
94
|
extra_rdoc_files:
|
|
@@ -100,7 +100,7 @@ files:
|
|
|
100
100
|
- lib/premonition/hook.rb
|
|
101
101
|
- lib/premonition/resources.rb
|
|
102
102
|
- lib/premonition/version.rb
|
|
103
|
-
homepage: http://github.com/
|
|
103
|
+
homepage: http://github.com/lazee/premonition
|
|
104
104
|
licenses:
|
|
105
105
|
- MIT
|
|
106
106
|
metadata: {}
|
|
@@ -120,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
120
120
|
- !ruby/object:Gem::Version
|
|
121
121
|
version: '0'
|
|
122
122
|
requirements: []
|
|
123
|
-
|
|
124
|
-
rubygems_version: 2.7.3
|
|
123
|
+
rubygems_version: 3.0.3
|
|
125
124
|
signing_key:
|
|
126
125
|
specification_version: 4
|
|
127
126
|
summary: Jekyll generator that will convert special block quotes into message boxes.
|