scholarmarkdown 2.8.0 → 2.9.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: fb20cd9d0e6eb8dcf38b7294b0ef8524eb31be1bf45be015adc9bd400018efdc
4
- data.tar.gz: 1087ce09881ed968864dc0cc5cd984b31048b81f337522efedc5d3432eeb3217
3
+ metadata.gz: db3956a08b3d557b8684402021f9308fa86a4282dded573750668a93b29bd29e
4
+ data.tar.gz: 0e199c636eb953f97d30571c36b3a8522e044df712ebbd249c3e32cd04b076d2
5
5
  SHA512:
6
- metadata.gz: 485489c8ae326faace480dbb5ac7ca59e528554690bf5f1d6dac785fb49d5828184c62647e439c4965c2e49bfead69fa6181d0969128f992577243bab188cabd
7
- data.tar.gz: e9ab54a0d9297463a3d017469d054b3d4961309e5f379b829963f6fcebca60d0cf8fba904b550b4ffb9f4d7e40d30776cdabb663c11a2b36e492c68abc85d25d
6
+ metadata.gz: c2578e05617d96a89f798349e5097da79311757bef769240c18219c5a6b26e3a665eac8e72498e4cff8029f0c83687c545fa73d385956c4ec16e2e79ec313464
7
+ data.tar.gz: 4c4d96b660f61d25a08322a645a53bdd8eb38baed4c1949d59a560536e517d86ab8f9695d20b86929bb2b7d474593119b8c2426eb43d035deb61ff551db09d50
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.8.0
1
+ 2.9.0
@@ -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
@@ -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'
@@ -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.9.0 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.9.0"
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 = "2020-04-22"
15
15
  s.email = "rubensworks@gmail.com".freeze
16
16
  s.executables = ["generate-scholarmarkdown".freeze]
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
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.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Taelman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-20 00:00:00.000000000 Z
11
+ date: 2020-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n