scholarmarkdown 2.8.0 → 2.10.1

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: fb20cd9d0e6eb8dcf38b7294b0ef8524eb31be1bf45be015adc9bd400018efdc
4
- data.tar.gz: 1087ce09881ed968864dc0cc5cd984b31048b81f337522efedc5d3432eeb3217
3
+ metadata.gz: 82f0540b101490a459e891872083cf3daede4de34cfa6ceca1e9a16f2a1e3925
4
+ data.tar.gz: 23c9ae1bc376603461559e7c8897613952f763adb592021ea9be30c8e2f10863
5
5
  SHA512:
6
- metadata.gz: 485489c8ae326faace480dbb5ac7ca59e528554690bf5f1d6dac785fb49d5828184c62647e439c4965c2e49bfead69fa6181d0969128f992577243bab188cabd
7
- data.tar.gz: e9ab54a0d9297463a3d017469d054b3d4961309e5f379b829963f6fcebca60d0cf8fba904b550b4ffb9f4d7e40d30776cdabb663c11a2b36e492c68abc85d25d
6
+ metadata.gz: 8e63476d6e2b644b3c2a910c85d47f555383c88ee945c2770628844afb65bc49a6f7520c405f106e3aea7788dc34daa9f6c33e9e35285869cccc6d3f5848ea45
7
+ data.tar.gz: 308771691759bf82709035f971da5c4b58e4937d8f09797a7f4e3a112a52204d04a57053e37cd8284d9cf74f2cd56e8879eba940a5932cd07836253c62cd4dce
data/Gemfile CHANGED
@@ -1,5 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ # webserver
4
+ gem 'puma'
5
+
3
6
  # references
4
7
  gem 'i18n'
5
8
  gem 'bibtex-ruby'
@@ -17,6 +20,6 @@ gem 'therubyracer', :platforms => :ruby # embedded V8 JavaScript engine
17
20
 
18
21
  group :development do
19
22
  # management of this gem
20
- gem "bundler", "~> 1.0"
23
+ gem "bundler", "~> 2.0"
21
24
  gem "juwelier", "~> 2.4.7"
22
25
  end
data/Gemfile.lock CHANGED
@@ -1,39 +1,58 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- addressable (2.5.2)
5
- public_suffix (>= 2.0.2, < 4.0)
4
+ addressable (2.8.0)
5
+ public_suffix (>= 2.0.2, < 5.0)
6
6
  bibmarkdown (2.0.0)
7
7
  citeproc-ruby
8
8
  csl-styles
9
- bibtex-ruby (4.4.6)
9
+ bibtex-ruby (6.0.0)
10
10
  latex-decode (~> 0.0)
11
- builder (3.2.3)
12
- citeproc (1.0.9)
11
+ builder (3.2.4)
12
+ citeproc (1.0.10)
13
13
  namae (~> 1.0)
14
- citeproc-ruby (1.1.10)
14
+ citeproc-ruby (1.1.14)
15
15
  citeproc (~> 1.0, >= 1.0.9)
16
- csl (~> 1.5)
17
- concurrent-ruby (1.0.5)
18
- csl (1.5.0)
16
+ csl (~> 1.6)
17
+ concurrent-ruby (1.1.9)
18
+ csl (1.6.0)
19
19
  namae (~> 1.0)
20
- csl-styles (1.0.1.8)
20
+ rexml
21
+ csl-styles (1.0.1.11)
21
22
  csl (~> 1.0)
22
23
  descendants_tracker (0.0.4)
23
24
  thread_safe (~> 0.3, >= 0.3.1)
24
- execjs (2.7.0)
25
- faraday (0.12.2)
25
+ execjs (2.8.1)
26
+ faraday (1.8.0)
27
+ faraday-em_http (~> 1.0)
28
+ faraday-em_synchrony (~> 1.0)
29
+ faraday-excon (~> 1.1)
30
+ faraday-httpclient (~> 1.0.1)
31
+ faraday-net_http (~> 1.0)
32
+ faraday-net_http_persistent (~> 1.1)
33
+ faraday-patron (~> 1.0)
34
+ faraday-rack (~> 1.0)
26
35
  multipart-post (>= 1.2, < 3)
27
- git (1.3.0)
28
- github_api (0.18.2)
36
+ ruby2_keywords (>= 0.0.4)
37
+ faraday-em_http (1.0.0)
38
+ faraday-em_synchrony (1.0.0)
39
+ faraday-excon (1.1.0)
40
+ faraday-httpclient (1.0.1)
41
+ faraday-net_http (1.0.1)
42
+ faraday-net_http_persistent (1.2.0)
43
+ faraday-patron (1.0.0)
44
+ faraday-rack (1.0.0)
45
+ git (1.9.1)
46
+ rchardet (~> 1.8)
47
+ github_api (0.19.0)
29
48
  addressable (~> 2.4)
30
49
  descendants_tracker (~> 0.0.4)
31
- faraday (~> 0.8)
50
+ faraday (>= 0.8, < 2)
32
51
  hashie (~> 3.5, >= 3.5.2)
33
52
  oauth2 (~> 1.0)
34
- hashie (3.5.7)
35
- highline (1.7.10)
36
- i18n (0.9.5)
53
+ hashie (3.6.0)
54
+ highline (2.0.3)
55
+ i18n (1.8.10)
37
56
  concurrent-ruby (~> 1.0)
38
57
  juwelier (2.4.9)
39
58
  builder
@@ -47,36 +66,47 @@ GEM
47
66
  rake
48
67
  rdoc
49
68
  semver2
50
- jwt (1.5.6)
69
+ jwt (2.2.3)
51
70
  kamelcase (0.0.2)
52
71
  semver2 (~> 3)
53
- katex (0.4.3)
72
+ katex (0.8.0)
54
73
  execjs (~> 2.7)
55
- kramdown (2.1.0)
74
+ kramdown (2.3.1)
75
+ rexml
56
76
  kramdown-math-sskatex (1.0.0)
57
77
  kramdown (~> 2.0)
58
78
  sskatex (>= 0.9.37)
59
- latex-decode (0.3.1)
79
+ latex-decode (0.3.2)
60
80
  libv8 (3.16.14.19)
61
- mini_portile2 (2.3.0)
62
- multi_json (1.13.1)
81
+ mini_portile2 (2.6.1)
82
+ multi_json (1.15.0)
63
83
  multi_xml (0.6.0)
64
- multipart-post (2.0.0)
65
- namae (1.0.1)
66
- nokogiri (1.8.2)
67
- mini_portile2 (~> 2.3.0)
68
- oauth2 (1.4.0)
69
- faraday (>= 0.8, < 0.13)
70
- jwt (~> 1.0)
84
+ multipart-post (2.1.1)
85
+ namae (1.1.1)
86
+ nio4r (2.5.8)
87
+ nokogiri (1.12.4)
88
+ mini_portile2 (~> 2.6.1)
89
+ racc (~> 1.4)
90
+ nokogiri (1.12.4-x86_64-darwin)
91
+ racc (~> 1.4)
92
+ oauth2 (1.4.7)
93
+ faraday (>= 0.8, < 2.0)
94
+ jwt (>= 1.0, < 3.0)
71
95
  multi_json (~> 1.3)
72
96
  multi_xml (~> 0.5)
73
97
  rack (>= 1.2, < 3)
74
- psych (3.0.2)
75
- public_suffix (3.0.2)
76
- rack (1.5.5)
77
- rake (12.3.0)
78
- rdoc (6.0.2)
98
+ psych (4.0.1)
99
+ public_suffix (4.0.6)
100
+ puma (5.6.2)
101
+ nio4r (~> 2.0)
102
+ racc (1.5.2)
103
+ rack (2.2.3)
104
+ rake (13.0.6)
105
+ rchardet (1.8.0)
106
+ rdoc (6.3.2)
79
107
  ref (2.0.0)
108
+ rexml (3.2.5)
109
+ ruby2_keywords (0.0.5)
80
110
  semver2 (3.4.2)
81
111
  sskatex (0.9.39)
82
112
  execjs (~> 2.7)
@@ -87,11 +117,12 @@ GEM
87
117
 
88
118
  PLATFORMS
89
119
  ruby
120
+ x86_64-darwin-19
90
121
 
91
122
  DEPENDENCIES
92
123
  bibmarkdown (~> 2.0.0)
93
124
  bibtex-ruby
94
- bundler (~> 1.0)
125
+ bundler (~> 2.0)
95
126
  citeproc-ruby (>= 1.1.6)
96
127
  csl-styles
97
128
  execjs
@@ -100,8 +131,9 @@ DEPENDENCIES
100
131
  katex
101
132
  kramdown-math-sskatex
102
133
  latex-decode
134
+ puma
103
135
  sskatex
104
136
  therubyracer
105
137
 
106
138
  BUNDLED WITH
107
- 1.16.2
139
+ 2.2.28
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.8.0
1
+ 2.10.1
data/bin/template/Gemfile CHANGED
@@ -21,10 +21,9 @@ gem 'csl-styles'
21
21
  group :development do
22
22
  # live view
23
23
  gem 'guard-nanoc', '~> 2.1.2'
24
- gem 'guard-process'
24
+ gem 'guard-rack'
25
25
  gem 'guard-livereload'
26
- gem 'serve'
27
- gem 'thin'
26
+ gem 'rack'
28
27
  gem 'rack-livereload'
29
28
  gem 'wdm', '>= 0.1.0' if Gem.win_platform?
30
29
  gem 'rb-readline'
@@ -1,15 +1,15 @@
1
+ guard 'rack', :port => 3000 do
2
+ watch 'Gemfile.lock'
3
+ end
4
+
1
5
  guard :nanoc do
2
6
  watch 'nanoc.yaml'
3
7
  watch 'Rules'
4
8
  watch %r{^(content|layouts|lib)/}
5
9
  end
6
10
 
7
- guard :process, name: 'server', command: 'bundle exec serve' do
8
- watch 'Gemfile.lock'
9
- end
10
-
11
11
  guard :livereload do
12
12
  watch(%r{^output/}) { |m| m[0].sub(%r{^output/}, '') }
13
13
  end
14
14
 
15
- notification :notifu, :nosound => true
15
+ notification :notifu, :nosound => true
@@ -13,3 +13,5 @@ bundle exec nanoc compile
13
13
  ```
14
14
 
15
15
  View on http://localhost:3000/
16
+
17
+ This article makes use of the [ScholarMarkdown](https://github.com/rubensworks/ScholarMarkdown/) framework.
@@ -1,11 +1,17 @@
1
- #\ -p 3000
2
- require 'serve'
3
- require 'serve/rack'
1
+ require 'rack'
4
2
  require 'rack-livereload'
5
- use Rack::LiveReload, no_swf: true
6
3
 
7
- root = File.dirname(__FILE__) + '/output'
8
- run Rack::Cascade.new [
9
- Serve::RackAdapter.new(root),
10
- Rack::Directory.new(root),
11
- ]
4
+ class IndexRewriter
5
+ def initialize app
6
+ @app = app
7
+ end
8
+
9
+ def call env
10
+ env["PATH_INFO"].gsub! /\/$/, '/index.html'
11
+ @app.call env
12
+ end
13
+ end
14
+
15
+ use IndexRewriter
16
+ use Rack::LiveReload
17
+ run Rack::File.new 'output'
@@ -154,6 +154,7 @@
154
154
  </group>
155
155
  </else>
156
156
  </choose>
157
+ <text variable="DOI" prefix=" doi:"/>
157
158
  </layout>
158
159
  </bibliography>
159
160
  </style>
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: scholarmarkdown 2.8.0 ruby lib
5
+ # stub: scholarmarkdown 2.10.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "scholarmarkdown".freeze
9
- s.version = "2.8.0"
9
+ s.version = "2.10.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Ruben Taelman".freeze]
14
- s.date = "2020-04-20"
14
+ s.date = "2022-02-23"
15
15
  s.email = "rubensworks@gmail.com".freeze
16
16
  s.executables = ["generate-scholarmarkdown".freeze]
17
17
  s.extra_rdoc_files = [
@@ -71,42 +71,30 @@ Gem::Specification.new do |s|
71
71
  ]
72
72
  s.homepage = "http://github.com/rubensworks/ScholarMarkdown".freeze
73
73
  s.licenses = ["MIT".freeze]
74
- s.rubygems_version = "2.7.7".freeze
74
+ s.rubygems_version = "3.1.2".freeze
75
75
  s.summary = "A framework for writing markdown-based scholarly articles.".freeze
76
76
 
77
77
  if s.respond_to? :specification_version then
78
78
  s.specification_version = 4
79
+ end
79
80
 
80
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
81
- s.add_runtime_dependency(%q<i18n>.freeze, [">= 0"])
82
- s.add_runtime_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
83
- s.add_runtime_dependency(%q<latex-decode>.freeze, [">= 0"])
84
- s.add_runtime_dependency(%q<citeproc-ruby>.freeze, [">= 1.1.6"])
85
- s.add_runtime_dependency(%q<csl-styles>.freeze, [">= 0"])
86
- s.add_runtime_dependency(%q<bibmarkdown>.freeze, ["~> 2.0.0"])
87
- s.add_runtime_dependency(%q<katex>.freeze, [">= 0"])
88
- s.add_runtime_dependency(%q<sskatex>.freeze, [">= 0"])
89
- s.add_runtime_dependency(%q<kramdown-math-sskatex>.freeze, [">= 0"])
90
- s.add_runtime_dependency(%q<execjs>.freeze, [">= 0"])
91
- s.add_runtime_dependency(%q<therubyracer>.freeze, [">= 0"])
92
- s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
93
- s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
94
- else
95
- s.add_dependency(%q<i18n>.freeze, [">= 0"])
96
- s.add_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
97
- s.add_dependency(%q<latex-decode>.freeze, [">= 0"])
98
- s.add_dependency(%q<citeproc-ruby>.freeze, [">= 1.1.6"])
99
- s.add_dependency(%q<csl-styles>.freeze, [">= 0"])
100
- s.add_dependency(%q<bibmarkdown>.freeze, ["~> 2.0.0"])
101
- s.add_dependency(%q<katex>.freeze, [">= 0"])
102
- s.add_dependency(%q<sskatex>.freeze, [">= 0"])
103
- s.add_dependency(%q<kramdown-math-sskatex>.freeze, [">= 0"])
104
- s.add_dependency(%q<execjs>.freeze, [">= 0"])
105
- s.add_dependency(%q<therubyracer>.freeze, [">= 0"])
106
- s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
107
- s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
108
- end
81
+ if s.respond_to? :add_runtime_dependency then
82
+ s.add_runtime_dependency(%q<puma>.freeze, [">= 0"])
83
+ s.add_runtime_dependency(%q<i18n>.freeze, [">= 0"])
84
+ s.add_runtime_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
85
+ s.add_runtime_dependency(%q<latex-decode>.freeze, [">= 0"])
86
+ s.add_runtime_dependency(%q<citeproc-ruby>.freeze, [">= 1.1.6"])
87
+ s.add_runtime_dependency(%q<csl-styles>.freeze, [">= 0"])
88
+ s.add_runtime_dependency(%q<bibmarkdown>.freeze, ["~> 2.0.0"])
89
+ s.add_runtime_dependency(%q<katex>.freeze, [">= 0"])
90
+ s.add_runtime_dependency(%q<sskatex>.freeze, [">= 0"])
91
+ s.add_runtime_dependency(%q<kramdown-math-sskatex>.freeze, [">= 0"])
92
+ s.add_runtime_dependency(%q<execjs>.freeze, [">= 0"])
93
+ s.add_runtime_dependency(%q<therubyracer>.freeze, [">= 0"])
94
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 2.0"])
95
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
109
96
  else
97
+ s.add_dependency(%q<puma>.freeze, [">= 0"])
110
98
  s.add_dependency(%q<i18n>.freeze, [">= 0"])
111
99
  s.add_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
112
100
  s.add_dependency(%q<latex-decode>.freeze, [">= 0"])
@@ -118,7 +106,7 @@ Gem::Specification.new do |s|
118
106
  s.add_dependency(%q<kramdown-math-sskatex>.freeze, [">= 0"])
119
107
  s.add_dependency(%q<execjs>.freeze, [">= 0"])
120
108
  s.add_dependency(%q<therubyracer>.freeze, [">= 0"])
121
- s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
109
+ s.add_dependency(%q<bundler>.freeze, ["~> 2.0"])
122
110
  s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
123
111
  end
124
112
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scholarmarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Taelman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-20 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: puma
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: i18n
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +184,14 @@ dependencies:
170
184
  requirements:
171
185
  - - "~>"
172
186
  - !ruby/object:Gem::Version
173
- version: '1.0'
187
+ version: '2.0'
174
188
  type: :development
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
192
  - - "~>"
179
193
  - !ruby/object:Gem::Version
180
- version: '1.0'
194
+ version: '2.0'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: juwelier
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +206,7 @@ dependencies:
192
206
  - - "~>"
193
207
  - !ruby/object:Gem::Version
194
208
  version: 2.4.7
195
- description:
209
+ description:
196
210
  email: rubensworks@gmail.com
197
211
  executables:
198
212
  - generate-scholarmarkdown
@@ -254,7 +268,7 @@ homepage: http://github.com/rubensworks/ScholarMarkdown
254
268
  licenses:
255
269
  - MIT
256
270
  metadata: {}
257
- post_install_message:
271
+ post_install_message:
258
272
  rdoc_options: []
259
273
  require_paths:
260
274
  - lib
@@ -269,9 +283,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
283
  - !ruby/object:Gem::Version
270
284
  version: '0'
271
285
  requirements: []
272
- rubyforge_project:
273
- rubygems_version: 2.7.7
274
- signing_key:
286
+ rubygems_version: 3.1.2
287
+ signing_key:
275
288
  specification_version: 4
276
289
  summary: A framework for writing markdown-based scholarly articles.
277
290
  test_files: []