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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed322d3e05f2d8b117470ead4a7634d6a9c97ae96d059a8a5a8238b6cd91ab70
4
- data.tar.gz: 17b36206c87d6f5aa106b35e88eeb942447688875687ceac78881498d4b00eb7
3
+ metadata.gz: 2ed1b6143ae074a945157a6ae8a448e551bfe3ba62314851a5eb1466e64f4c40
4
+ data.tar.gz: 8fa7d1c9ddcffe5fc1b0da67deb41b787d0e1cb364c58e57fdd3041d1191ee51
5
5
  SHA512:
6
- metadata.gz: 43ae3bf99169c3df50ac366cb7966900446d5a0e9f3b9baf573305ab47d22dece7fe06632fd73ae1f7a47b860f871d7860fc9fb19dd94004493482928c11047f
7
- data.tar.gz: 2bdb4c000a9725773ef1cbaa2e8c1506b8e9a92c365170addebf71b7b6304fe761d23e9ed95b692e9aaf2612f2465d71d8dfce945ff5f6135709c7b332a7fb52
6
+ metadata.gz: 4ae829259c0d4fd85b7032c65a8c7644cc4740d8eec72c445777cc10e661975f6cf185c032845996af439531e067f7a6529eb32fb4fab9e307aad65c20432f2e
7
+ data.tar.gz: '09b875fad61ab9f544e89c748e91c93f4090c5c6d12b8ad80d04bf6827a920a718a5555f4df6ebcc81f842b42c7fbad6b1bb76927a04ecbb6c001997760e0abb'
@@ -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
- 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 }
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
 
@@ -1,3 +1,3 @@
1
1
  module Darkmouun
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
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.1.0
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-03-17 00:00:00.000000000 Z
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.2.14
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: []