stepmod-utils 0.3.36 → 0.4.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc937fce5f5bcc0ae84e007894542cd6bcf76f9557436f8543bbfbd6e79d7d8c
|
4
|
+
data.tar.gz: 427400b1a2353284fbdd080ed4219afa59d5230b5f297a63615eef58bc82cde6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fcf8e5182b797372d2d87d55ddcda604255bfea85efb22108a1e8cdb6e3b15091cde5ab8ef33f3d25b7ee4855029719b7409202f959cf9c6fe14a3c56b2e4a7
|
7
|
+
data.tar.gz: cf4db46480fbac65e538f09a5edfb1ebca7ee15fdb5d8020d131c615d85a8ed4f978454486299fd5696811c1b89632cf3c58ca86401032798fa1ece49ba053ff
|
@@ -18,9 +18,7 @@ module Stepmod
|
|
18
18
|
treat(equation, state.merge(equation: true, already_italic: true))
|
19
19
|
end
|
20
20
|
|
21
|
-
content = if state[:
|
22
|
-
"ii(#{content.strip})"
|
23
|
-
elsif content.strip.empty? || state[:already_italic]
|
21
|
+
content = if content.strip.empty? || state[:already_italic] || state[:equation]
|
24
22
|
content
|
25
23
|
else
|
26
24
|
"#{content[/^\s*/]}_#{content.strip}_#{content[/\s*$/]}"
|
@@ -50,8 +50,7 @@ module Stepmod
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def stem_converted(cloned_node, state)
|
53
|
-
|
54
|
-
# remove_tags_not_in_context(cloned_node)
|
53
|
+
remove_tags_not_in_context(cloned_node)
|
55
54
|
internal_content = treat_children(cloned_node, state.merge(equation: true))
|
56
55
|
content = Stepmod::Utils::HtmlToAsciimath.new.call(internal_content)
|
57
56
|
res = <<~TEMPLATE
|
@@ -20,9 +20,7 @@ module Stepmod
|
|
20
20
|
treat(equation, state.merge(equation: true, already_strong: true))
|
21
21
|
end
|
22
22
|
|
23
|
-
content = if state[:equation]
|
24
|
-
"bb(#{content.strip})"
|
25
|
-
elsif content.strip.empty? || state[:already_strong]
|
23
|
+
content = if content.strip.empty? || state[:already_strong] || state[:equation]
|
26
24
|
content
|
27
25
|
else
|
28
26
|
strong_tag = state[:non_flanking_whitesapce] ? '**' : '*'
|
data/stepmod-utils.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
spec.files = `git ls-files`.split("\n")
|
20
20
|
spec.test_files = `git ls-files -- {spec}/*`.split("\n")
|
21
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
21
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
|
22
22
|
|
23
23
|
# Specify which files should be added to the gem when it is released.
|
24
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -33,12 +33,12 @@ Gem::Specification.new do |spec|
|
|
33
33
|
|
34
34
|
spec.add_runtime_dependency "concurrent-ruby"
|
35
35
|
spec.add_runtime_dependency "expressir"
|
36
|
-
spec.add_runtime_dependency "glossarist", "~>
|
36
|
+
spec.add_runtime_dependency "glossarist", "~> 2.0"
|
37
37
|
spec.add_runtime_dependency "indefinite_article"
|
38
38
|
spec.add_runtime_dependency "ptools"
|
39
39
|
spec.add_runtime_dependency "pubid-iso"
|
40
|
-
spec.add_runtime_dependency "reverse_adoc", ">= 0.3
|
41
|
-
spec.add_runtime_dependency "thor", ">= 0.20
|
40
|
+
spec.add_runtime_dependency "reverse_adoc", ">= 0.3"
|
41
|
+
spec.add_runtime_dependency "thor", ">= 0.20"
|
42
42
|
spec.add_development_dependency "rubocop"
|
43
43
|
spec.add_development_dependency "rubocop-performance"
|
44
44
|
spec.add_development_dependency "rubocop-rails"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stepmod-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '2.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: indefinite_article
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.3
|
103
|
+
version: '0.3'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.3
|
110
|
+
version: '0.3'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: thor
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.20
|
117
|
+
version: '0.20'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.20
|
124
|
+
version: '0.20'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -289,7 +289,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
289
289
|
requirements:
|
290
290
|
- - ">="
|
291
291
|
- !ruby/object:Gem::Version
|
292
|
-
version: 2.
|
292
|
+
version: 2.6.0
|
293
293
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
294
294
|
requirements:
|
295
295
|
- - ">="
|