wxruby3-mdap 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaf30cdfde23d0e103ce78bfd8613c12929a22ab235fda76da4cf4fbf54a3f45
4
- data.tar.gz: b1ae428da7a9e81b3c3776f1b166c0cac1d33b8a5c15a8e41e7de4c87eecdc45
3
+ metadata.gz: 463278cea6efb82626218c697e7da6c9f6992e7415b715f482815e2e3c4fc0b8
4
+ data.tar.gz: 8f7e2568fb4244664c95e3fb6f53e28abb97633995dede390a27fd9caeb4479c
5
5
  SHA512:
6
- metadata.gz: f7346a347d17f3fe614a50b92ab082b732b4810adcdd8fe951b2e483a4eee56e341462fc02c6712bcf58dec4f2fe65abc5e8fa39825d9fe7b234b16cba30e6c4
7
- data.tar.gz: 2fa1a2c28b134d07301bbc5c94159ecebddb00f12eb0d28593b298b5d267a909e0ec6b984aba4f624fbfe934ee58f15f4cc440c3816e90a4a4296b713a85b154
6
+ metadata.gz: 4c01276d704603f9cb7ae95a826912c7b57762d15a2bbb825ab1963f248bd0361282ce4aa9949575ba967f15224fbff338ec0ae051326ac4f60330b452fecbce
7
+ data.tar.gz: 9a838aae510a3bf4e557e40589b6e4806f2cca8cbb4b5bc7790345ff9d113bb54e4b4f5305d1c421adfbd4113ba9b7a8f39f063b04cfe45f50587fde94de4998
data/.yardopts CHANGED
@@ -1,5 +1,6 @@
1
1
  --load rakelib/yard/yard-relative_markdown_links.rb
2
2
  --load rakelib/yard/yard-custom-templates.rb
3
+ --load rakelib/yard/yard-kramdown-coderay.rb
3
4
  --charset UTF-8
4
5
  --markup markdown
5
6
  --markup-provider kramdown
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![License](https://img.shields.io/badge/license-MIT-yellowgreen.svg)](LICENSE)
2
- [![Gem Version](https://badge.fury.io/rb/wxruby3-materialdesignartprovider.svg)](https://badge.fury.io/rb/wxruby3-materialdesignartprovider)
2
+ [![Gem Version](https://badge.fury.io/rb/wxruby3-mdap.svg)](https://badge.fury.io/rb/wxruby3-mdap)
3
3
  [![Documentation](https://img.shields.io/badge/docs-pages-blue.svg)](https://mcorino.github.io/wxRuby3-MaterialDesignArtProvider)
4
4
 
5
5
  # Material Design Art Provider for wxRuby3
@@ -18,28 +18,28 @@ be downloaded from the release assets on [Github](https://github.com/mcorino/wxR
18
18
  Installing the gem requires no additional installation steps and/or additional software to be installed except for a
19
19
  supported version of the Ruby interpreter. So the following command is all it takes to install:
20
20
 
21
- ```shell
21
+ ~~~shell
22
22
  gem install wxruby3-mdap
23
- ```
23
+ ~~~
24
24
 
25
25
  ## Using
26
26
 
27
27
  To add [Wx::MDAP::MaterialDesignArtProvider](https://mcorino.github.io/wxRuby3-MaterialDesignArtProvider/Wx/MDAP/MaterialDesignArtProvider.html)
28
28
  to your project you first need to `require` it like this:
29
29
 
30
- ```ruby
30
+ ~~~ruby
31
31
  require 'wx' # make sure the wxRuby3 libraries have been loaded
32
32
  require 'wx/mdap' # now load the wxRuby3-MaterialDesignArtProvider library
33
- ```
33
+ ~~~
34
34
 
35
35
  Next, before you load images through [Wx::ArtProvider](https://mcorino.github.io/wxRuby3/Wx/ArtProvider.html) register
36
36
  the [Wx::MDAP::MaterialDesignArtProvider](https://mcorino.github.io/wxRuby3-MaterialDesignArtProvider/Wx/MDAP/MaterialDesignArtProvider.html) like this:
37
37
 
38
- ```ruby
38
+ ~~~ruby
39
39
  Wx::ArtProvider.push(Wx::MDAP::MaterialDesignArtProvider.new)
40
40
  # You can in fact normally also reference the class as `Wx::MaterialDesignArtProvider` (unless the constant
41
41
  # `Wx::MaterialDesignArtProvider` was already defined before requiring 'wx/mdap').
42
- ```
42
+ ~~~
43
43
 
44
44
  Now that the new art provider has been installed the new Material Design art ids can be used. Constants for these are
45
45
  all defined in the `Wx::MDAP` module as 'Wx::MDAP::ART_*ICON_NAME*' (see [here](https://mcorino.github.io/wxRuby3-MaterialDesignArtProvider/Wx/MDAP.html)).
@@ -6,7 +6,7 @@
6
6
  module Wx
7
7
  module MDAP
8
8
 
9
- VERSION = '1.0.0'
9
+ VERSION = '1.0.2'
10
10
 
11
11
  end
12
12
  end
@@ -1,4 +1,7 @@
1
1
 
2
+ code span.line-numbers {
3
+ display: none;
4
+ }
2
5
  div.wxrb-note {
3
6
  background: #f7f7f9;
4
7
  border-left: .6em solid #f3ba6f;
@@ -0,0 +1,21 @@
1
+
2
+ require 'kramdown'
3
+ require 'kramdown-syntax-coderay'
4
+
5
+ module WxRuby3MDAP
6
+
7
+ class KramdownDocument < Kramdown::Document
8
+
9
+ def initialize(source, options = {})
10
+ super(source, options.merge({syntax_highlighter: :coderay}))
11
+ end
12
+
13
+ end
14
+
15
+ end
16
+
17
+ YARD::Templates::Helpers::MarkupHelper::MARKUP_PROVIDERS[:markdown].each do |provider|
18
+ if provider[:lib] == :kramdown
19
+ provider[:const] = 'WxRuby3MDAP::KramdownDocument'
20
+ end
21
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wxruby3-mdap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Corino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-27 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wxruby3
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0
26
+ version: '1.0'
27
27
  description: wxRuby3/MDAP is a pure Ruby library providing a custom ArtProvider for
28
28
  using MaterialDesign bitmaps and icons in wxRuby3
29
29
  email: mcorino@m2c-software.nl
@@ -20824,6 +20824,7 @@ files:
20824
20824
  - rakelib/yard/templates/default/tags/html/wxrb_require.erb
20825
20825
  - rakelib/yard/templates/default/tags/setup.rb
20826
20826
  - rakelib/yard/yard-custom-templates.rb
20827
+ - rakelib/yard/yard-kramdown-coderay.rb
20827
20828
  - rakelib/yard/yard-relative_markdown_links.rb
20828
20829
  - rakelib/yard/yard/relative_markdown_links.rb
20829
20830
  - rakelib/yard/yard/relative_markdown_links/version.rb
@@ -20854,7 +20855,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
20854
20855
  - !ruby/object:Gem::Version
20855
20856
  version: '0'
20856
20857
  requirements: []
20857
- rubygems_version: 3.5.9
20858
+ rubygems_version: 3.5.22
20858
20859
  signing_key:
20859
20860
  specification_version: 4
20860
20861
  summary: wxRuby3 Material Design Art Provider