darkmouun 1.1.0 → 1.2.0
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/lib/darkmouun/main.rb +8 -8
- data/lib/darkmouun/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ed1b6143ae074a945157a6ae8a448e551bfe3ba62314851a5eb1466e64f4c40
|
4
|
+
data.tar.gz: 8fa7d1c9ddcffe5fc1b0da67deb41b787d0e1cb364c58e57fdd3041d1191ee51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ae829259c0d4fd85b7032c65a8c7644cc4740d8eec72c445777cc10e661975f6cf185c032845996af439531e067f7a6529eb32fb4fab9e307aad65c20432f2e
|
7
|
+
data.tar.gz: '09b875fad61ab9f544e89c748e91c93f4090c5c6d12b8ad80d04bf6827a920a718a5555f4df6ebcc81f842b42c7fbad6b1bb76927a04ecbb6c001997760e0abb'
|
data/lib/darkmouun/main.rb
CHANGED
@@ -80,16 +80,16 @@ module Darkmouun
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def apply_mustache
|
83
|
-
begin
|
84
83
|
@source = @source.gsub(/<<(.+?)>>\n((?:[# \-]*[\w_][\w\d_]*: *\n?(?: +.+\n)+)+)/) do |s|
|
85
|
-
|
86
|
-
|
87
|
-
|
84
|
+
begin
|
85
|
+
obj_spot_template, data = (@templates[$1.to_sym]).new, $2
|
86
|
+
YAML.load_stream(data).compact.reduce(&:merge).each do |k, v|
|
87
|
+
obj_spot_template.define_singleton_method(k){ v }
|
88
|
+
end
|
89
|
+
obj_spot_template.render + "\n"
|
90
|
+
rescue => e
|
91
|
+
raise e.class.new("\n#{e.message} in \"Mustache-process\" at *** #{s} ***\n")
|
88
92
|
end
|
89
|
-
obj_spot_template.render + "\n"
|
90
|
-
end
|
91
|
-
rescue => e
|
92
|
-
raise e.class.new("\n#{e.message}\n\n>>> ERROR in \"Mustache-process\" <<<\nMaybe, incorrect tags of the template exist.\n")
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
data/lib/darkmouun/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: darkmouun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinori Ichigo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,7 +123,7 @@ metadata:
|
|
123
123
|
homepage_uri: https://github.com/akinori-ichigo/darkmouun
|
124
124
|
source_code_uri: https://github.com/akinori-ichigo/darkmouun
|
125
125
|
changelog_uri: https://github.com/akinori-ichigo/darkmouun
|
126
|
-
post_install_message:
|
126
|
+
post_install_message:
|
127
127
|
rdoc_options: []
|
128
128
|
require_paths:
|
129
129
|
- lib
|
@@ -138,8 +138,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
|
-
rubygems_version: 3.
|
142
|
-
signing_key:
|
141
|
+
rubygems_version: 3.1.6
|
142
|
+
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: The Processting tool from Markdown to HTML
|
145
145
|
test_files: []
|