vimwiki_markdown 0.9.0 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 339d2e69a0cf1092eee83e9ac396e8dea9a8890a84aa4a1e48951d2239790def
4
- data.tar.gz: 9a7615397fbfbc1a419b2f40037a6c151c0f4534e07d57ec39f902dc88dbbd68
3
+ metadata.gz: 7f1e1d20697d5a731b15239141a4924be65a38a7dbce81255220c737766bd4e4
4
+ data.tar.gz: 187a2a2bfbd8b44149594cce4d9608246c7286cc4058d509ba9da2c5dac59d62
5
5
  SHA512:
6
- metadata.gz: a2f9dbb62a7013d67b380b96d72bac6f57e2fcc87cf2388bd501eb7365cffc897750e462bb5d2c8bc95ef1d6d88bb4f0d5cb6d230f0f4f9dc6e46641d9fdc916
7
- data.tar.gz: 80e2a9e2b9bb507e65147530dd4c21737f2d3195ab9d1dceca15bdf5fa697dafca40eb1f9b56a9b9dd5b25f772f722b93aa9a1db6f356bde88004b0ddb8d2879
6
+ metadata.gz: 655f2171a7f65a6d26d126a677f69a6484d1347548d11df4f5a8f48238d7a2c05176c1c6862a854218b051182ce221527f5312616c88a14aaf43deda573af945
7
+ data.tar.gz: 7f1f0af3584f1763391cfe2b713bcbce03d5d1153cb1d1aa562970d5a109f8e13c8a7e4ea07de9ea9f72388428a4bf818d94f6cb8933d82d3c530c4ebb26ce09
@@ -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
- [![Code Climate](https://codeclimate.com/github/patrickdavey/vimwiki_markdown/badges/gpa.svg)](https://codeclimate.com/github/patrickdavey/vimwiki_markdown) [![Build Status](https://travis-ci.org/patrickdavey/vimwiki_markdown.svg?branch=master)](https://travis-ci.org/patrickdavey/vimwiki_markdown)
2
+ [![Code Climate](https://codeclimate.com/github/patrickdavey/vimwiki_markdown/badges/gpa.svg)](https://codeclimate.com/github/patrickdavey/vimwiki_markdown) [![CI](https://github.com/patrickdavey/vimwiki_markdown/actions/workflows/ci.yml/badge.svg)](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.
@@ -27,7 +27,7 @@ module VimwikiMarkdown
27
27
 
28
28
  def fixtags(template)
29
29
  @template = template.gsub('%title%',title)
30
- .gsub('%pygments%',pygments_wrapped_in_tags)
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
@@ -1,3 +1,3 @@
1
1
  module VimwikiMarkdown
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vimwiki_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Davey
@@ -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
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- before_install:
2
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
3
- - gem install bundler -v '< 2'
4
- language: ruby
5
- rvm:
6
- - 2.7.8
7
- - 3.0.6
8
- - 3.1.4
9
- - 3.2.2