vimwiki_markdown 0.9.0 → 0.9.2

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: 339d2e69a0cf1092eee83e9ac396e8dea9a8890a84aa4a1e48951d2239790def
4
- data.tar.gz: 9a7615397fbfbc1a419b2f40037a6c151c0f4534e07d57ec39f902dc88dbbd68
3
+ metadata.gz: 1862037db07c82d83186fb53ad3815b863b76297a3a6c70b879eb22c56b3e7a7
4
+ data.tar.gz: 34e9f38e6a534c5f71abebd6f4260376f37e5b717987a4e3b193d7134834fc20
5
5
  SHA512:
6
- metadata.gz: a2f9dbb62a7013d67b380b96d72bac6f57e2fcc87cf2388bd501eb7365cffc897750e462bb5d2c8bc95ef1d6d88bb4f0d5cb6d230f0f4f9dc6e46641d9fdc916
7
- data.tar.gz: 80e2a9e2b9bb507e65147530dd4c21737f2d3195ab9d1dceca15bdf5fa697dafca40eb1f9b56a9b9dd5b25f772f722b93aa9a1db6f356bde88004b0ddb8d2879
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
- [![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.
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('%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.2".freeze
3
3
  end
@@ -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", "~> 4.1"
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.0
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: 2023-04-02 00:00:00.000000000 Z
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: '4.1'
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: '4.1'
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.2.33
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:
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