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 +4 -4
- data/.yardopts +1 -0
- data/README.md +7 -7
- data/lib/wx/mdap/version.rb +1 -1
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +3 -0
- data/rakelib/yard/yard-kramdown-coderay.rb +21 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 463278cea6efb82626218c697e7da6c9f6992e7415b715f482815e2e3c4fc0b8
|
4
|
+
data.tar.gz: 8f7e2568fb4244664c95e3fb6f53e28abb97633995dede390a27fd9caeb4479c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c01276d704603f9cb7ae95a826912c7b57762d15a2bbb825ab1963f248bd0361282ce4aa9949575ba967f15224fbff338ec0ae051326ac4f60330b452fecbce
|
7
|
+
data.tar.gz: 9a838aae510a3bf4e557e40589b6e4806f2cca8cbb4b5bc7790345ff9d113bb54e4b4f5305d1c421adfbd4113ba9b7a8f39f063b04cfe45f50587fde94de4998
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[](LICENSE)
|
2
|
-
[](https://badge.fury.io/rb/wxruby3-mdap)
|
3
3
|
[](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
|
-
|
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
|
-
|
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
|
-
|
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)).
|
data/lib/wx/mdap/version.rb
CHANGED
@@ -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.
|
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-
|
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
|
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
|
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.
|
20858
|
+
rubygems_version: 3.5.22
|
20858
20859
|
signing_key:
|
20859
20860
|
specification_version: 4
|
20860
20861
|
summary: wxRuby3 Material Design Art Provider
|