vimwiki_markdown 0.9.0 → 0.9.2
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/.github/workflows/ci.yml +29 -0
- data/README.md +1 -1
- data/changelog.md +6 -0
- data/lib/vimwiki_markdown/template.rb +5 -1
- data/lib/vimwiki_markdown/version.rb +1 -1
- data/vimwiki_markdown.gemspec +1 -1
- metadata +9 -9
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1862037db07c82d83186fb53ad3815b863b76297a3a6c70b879eb22c56b3e7a7
|
|
4
|
+
data.tar.gz: 34e9f38e6a534c5f71abebd6f4260376f37e5b717987a4e3b193d7134834fc20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 534eff92c35fb05d49af15630e1ab3f56e3080d902f6bae98a616aee804a44cd7ad8ca7ecad8981e035eb67fc7ecba50932112c61db81dfc5e3ea75f2895f29a
|
|
7
|
+
data.tar.gz: 35662e9ad371f99f5f7744a281f9bff47c50d04de951b452307adcb35777fa79546ebac4e8190cd4c7e8c13e080b56df9b59d4816daebcbb6e28a786331285ad
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: CI
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
pull_request:
|
|
6
|
+
branches:
|
|
7
|
+
- '*'
|
|
8
|
+
push:
|
|
9
|
+
branches:
|
|
10
|
+
- master
|
|
11
|
+
jobs:
|
|
12
|
+
# SQLITE
|
|
13
|
+
testrunner:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
ruby: ['2.7', '3.0', '3.1']
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v2
|
|
21
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
|
22
|
+
uses: ruby/setup-ruby@v1
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
|
25
|
+
bundler-cache: true
|
|
26
|
+
|
|
27
|
+
- name: Run tests
|
|
28
|
+
run: |
|
|
29
|
+
bundle exec rspec spec
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# VimwikiMarkdown
|
|
2
|
-
[](https://codeclimate.com/github/patrickdavey/vimwiki_markdown) [](https://codeclimate.com/github/patrickdavey/vimwiki_markdown) [](https://github.com/patrickdavey/vimwiki_markdown/actions/workflows/ci.yml)
|
|
3
3
|
|
|
4
4
|
This gem allows vimwiki pages written in (github enhanced) markdown
|
|
5
5
|
to be converted to HTML.
|
data/changelog.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 0.9.2 [02 April 2023]
|
|
2
|
+
Just bump activesupport version for security advisories
|
|
3
|
+
|
|
4
|
+
## 0.9.1 [02 April 2023]
|
|
5
|
+
Bugfix that both pygments and dark_pygments placeholers were required.
|
|
6
|
+
|
|
1
7
|
## 0.9.0 [02 April 2023]
|
|
2
8
|
Add support for dark mode. Drop support for ruby < 2.7
|
|
3
9
|
|
|
@@ -27,7 +27,7 @@ module VimwikiMarkdown
|
|
|
27
27
|
|
|
28
28
|
def fixtags(template)
|
|
29
29
|
@template = template.gsub('%title%',title)
|
|
30
|
-
.gsub(
|
|
30
|
+
.gsub(pygments_marker,pygments_wrapped_in_tags)
|
|
31
31
|
.gsub('%root_path%', root_path)
|
|
32
32
|
.gsub('%date%', Date.today.strftime("%e %b %Y"))
|
|
33
33
|
end
|
|
@@ -54,6 +54,10 @@ module VimwikiMarkdown
|
|
|
54
54
|
raise MissingRequiredParamError.new("ERROR: vimwiki template must contain %pygments% placeholder token. Please visit https://github.com/patrickdavey/vimwiki_markdown for more information")
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
+
def pygments_marker
|
|
58
|
+
dark_template? ? "%dark_pygments%" : "%pygments%"
|
|
59
|
+
end
|
|
60
|
+
|
|
57
61
|
def dark_template?
|
|
58
62
|
@template =~ /%dark_pygments%/
|
|
59
63
|
end
|
data/vimwiki_markdown.gemspec
CHANGED
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.add_development_dependency "rubocop"
|
|
29
29
|
spec.add_development_dependency "solargraph"
|
|
30
30
|
|
|
31
|
-
spec.add_runtime_dependency "activesupport", "~>
|
|
31
|
+
spec.add_runtime_dependency "activesupport", "~> 6.1"
|
|
32
32
|
spec.add_runtime_dependency "commonmarker", "~> 0.23.4"
|
|
33
33
|
spec.add_runtime_dependency "escape_utils", "~> 1.2"
|
|
34
34
|
spec.add_runtime_dependency "github-markup", "~> 3.0"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vimwiki_markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Patrick Davey
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-03-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -142,14 +142,14 @@ dependencies:
|
|
|
142
142
|
requirements:
|
|
143
143
|
- - "~>"
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: '
|
|
145
|
+
version: '6.1'
|
|
146
146
|
type: :runtime
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
150
|
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: '
|
|
152
|
+
version: '6.1'
|
|
153
153
|
- !ruby/object:Gem::Dependency
|
|
154
154
|
name: commonmarker
|
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -229,11 +229,11 @@ executables:
|
|
|
229
229
|
extensions: []
|
|
230
230
|
extra_rdoc_files: []
|
|
231
231
|
files:
|
|
232
|
+
- ".github/workflows/ci.yml"
|
|
232
233
|
- ".gitignore"
|
|
233
234
|
- ".hound.yml"
|
|
234
235
|
- ".rspec"
|
|
235
236
|
- ".rubocop.yml"
|
|
236
|
-
- ".travis.yml"
|
|
237
237
|
- A.png
|
|
238
238
|
- B.png
|
|
239
239
|
- Gemfile
|
|
@@ -262,7 +262,7 @@ homepage: https://github.com/patrickdavey/wimwiki_markdown
|
|
|
262
262
|
licenses:
|
|
263
263
|
- MIT
|
|
264
264
|
metadata: {}
|
|
265
|
-
post_install_message:
|
|
265
|
+
post_install_message:
|
|
266
266
|
rdoc_options: []
|
|
267
267
|
require_paths:
|
|
268
268
|
- lib
|
|
@@ -277,8 +277,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
277
277
|
- !ruby/object:Gem::Version
|
|
278
278
|
version: '0'
|
|
279
279
|
requirements: []
|
|
280
|
-
rubygems_version: 3.
|
|
281
|
-
signing_key:
|
|
280
|
+
rubygems_version: 3.4.6
|
|
281
|
+
signing_key:
|
|
282
282
|
specification_version: 4
|
|
283
283
|
summary: Converts a github flavoured markdown vimwiki file into html.
|
|
284
284
|
test_files:
|