pandoc2review 1.6.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/lint.yml +14 -0
- data/.github/workflows/pandoc.yml +1 -1
- data/.rubocop.yml +305 -0
- data/Gemfile +0 -2
- data/README.md +5 -0
- data/Rakefile +13 -3
- data/exe/pandoc2review +1 -2
- data/lib/pandoc2review.rb +17 -10
- data/lua/filters.lua +30 -67
- data/lua/review.lua +295 -155
- data/pandoc2review.gemspec +23 -16
- data/stylua.toml +3 -0
- metadata +62 -2
data/pandoc2review.gemspec
CHANGED
@@ -1,29 +1,36 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
|
-
spec.name =
|
3
|
-
spec.version =
|
4
|
-
spec.authors = [
|
5
|
-
spec.email = [
|
6
|
-
spec.license =
|
2
|
+
spec.name = 'pandoc2review'
|
3
|
+
spec.version = '2.0.0'
|
4
|
+
spec.authors = ['Kenshi Muto']
|
5
|
+
spec.email = ['kmuto@kmuto.jp']
|
6
|
+
spec.license = 'GPL-2.0'
|
7
|
+
spec.metadata = { 'rubygems_mfa_required' => 'true' }
|
7
8
|
|
8
|
-
spec.summary =
|
9
|
-
spec.description =
|
10
|
-
spec.homepage =
|
11
|
-
spec.required_ruby_version = Gem::Requirement.new(
|
9
|
+
spec.summary = 'Pandoc2review is a converter from any document to Re:VIEW format (using Pandoc)'
|
10
|
+
spec.description = 'It provides Re:VIEW Writer/Filter for Pandoc, and Ruby script to make it easier to handle.'
|
11
|
+
spec.homepage = 'https://github.com/kmuto/pandoc2review'
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
12
13
|
|
13
|
-
spec.metadata[
|
14
|
-
spec.metadata[
|
15
|
-
# spec.metadata[
|
14
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
15
|
+
spec.metadata['source_code_uri'] = 'https://github.com/kmuto/pandoc2review'
|
16
|
+
# spec.metadata['changelog_uri'] = "TODO: Put your gem's CHANGELOG.md URL here."
|
16
17
|
|
17
18
|
# Specify which files should be added to the gem when it is released.
|
18
19
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
-
spec.files
|
20
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
20
21
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
22
|
end
|
22
|
-
|
23
|
-
spec.
|
24
|
-
spec.
|
23
|
+
|
24
|
+
spec.bindir = 'exe'
|
25
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
|
+
spec.require_paths = ['lib', 'lua']
|
25
27
|
|
26
28
|
spec.add_dependency('unicode-eaw')
|
27
29
|
spec.add_development_dependency('simplecov')
|
28
30
|
spec.add_development_dependency('test-unit')
|
31
|
+
|
32
|
+
spec.add_development_dependency('rake', '~> 12.0')
|
33
|
+
spec.add_development_dependency('rubocop', '~> 1.50')
|
34
|
+
spec.add_development_dependency('rubocop-performance')
|
35
|
+
spec.add_development_dependency('rubocop-rake')
|
29
36
|
end
|
data/stylua.toml
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pandoc2review
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenshi Muto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unicode-eaw
|
@@ -52,6 +52,62 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '12.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '12.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.50'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.50'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-performance
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
55
111
|
description: It provides Re:VIEW Writer/Filter for Pandoc, and Ruby script to make
|
56
112
|
it easier to handle.
|
57
113
|
email:
|
@@ -61,8 +117,10 @@ executables:
|
|
61
117
|
extensions: []
|
62
118
|
extra_rdoc_files: []
|
63
119
|
files:
|
120
|
+
- ".github/workflows/lint.yml"
|
64
121
|
- ".github/workflows/pandoc.yml"
|
65
122
|
- ".gitignore"
|
123
|
+
- ".rubocop.yml"
|
66
124
|
- Gemfile
|
67
125
|
- LICENSE
|
68
126
|
- README.md
|
@@ -98,10 +156,12 @@ files:
|
|
98
156
|
- samples/reviewsample/sty/review-style.sty
|
99
157
|
- samples/reviewsample/sty/reviewmacro.sty
|
100
158
|
- samples/reviewsample/style.css
|
159
|
+
- stylua.toml
|
101
160
|
homepage: https://github.com/kmuto/pandoc2review
|
102
161
|
licenses:
|
103
162
|
- GPL-2.0
|
104
163
|
metadata:
|
164
|
+
rubygems_mfa_required: 'true'
|
105
165
|
homepage_uri: https://github.com/kmuto/pandoc2review
|
106
166
|
source_code_uri: https://github.com/kmuto/pandoc2review
|
107
167
|
post_install_message:
|