jekyll-w2m 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -8
- data/.travis.yml +18 -5
- data/Gemfile +5 -5
- data/README.md +35 -35
- data/Rakefile +12 -12
- data/jekyll-w2m.gemspec +42 -42
- data/lib/jekyll-w2m.rb +29 -29
- data/lib/jekyll-w2m/version.rb +7 -7
- data/script/cibuild +6 -6
- data/script/fmt +11 -11
- data/script/release +7 -7
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6554650e88c582011c4680f313b46e0263a474c45d6c880405e55bbcea29a485
|
4
|
+
data.tar.gz: 2d43982423449ec390249bfb1dcd1bde63366f47e161fad010123791851a8ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42c5fb6b4aa474056492710d9e92cc99f629b71276366d2789571c67d8f35c049715837389936c76b59eac34d12ce011ecfb69c40582377ea16c0d08210eb957
|
7
|
+
data.tar.gz: d482004593ce03a2a7f5f2ba3f8e6ea07823e1e94ebd554bf145c30abe0679ada5f5f237c6e0774678142189401b199738fd102e621493336f1244c2079bbc0e
|
data/.rubocop.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
inherit_gem:
|
2
|
-
jekyll: .rubocop.yml
|
3
|
-
|
4
|
-
AllCops:
|
5
|
-
TargetRubyVersion: 2.3
|
6
|
-
Exclude:
|
7
|
-
- vendor/**/*
|
8
|
-
- jekyll-w2m.gemspec
|
1
|
+
inherit_gem:
|
2
|
+
jekyll: .rubocop.yml
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
TargetRubyVersion: 2.3
|
6
|
+
Exclude:
|
7
|
+
- vendor/**/*
|
8
|
+
- jekyll-w2m.gemspec
|
data/.travis.yml
CHANGED
@@ -7,12 +7,25 @@ before_script: bundle update
|
|
7
7
|
script: script/cibuild
|
8
8
|
|
9
9
|
matrix:
|
10
|
+
fast_finish: true
|
10
11
|
include:
|
11
|
-
- rvm: 2.6.
|
12
|
-
- rvm: 2.5.
|
13
|
-
- rvm: 2.4.
|
14
|
-
- rvm: 2.3.
|
15
|
-
|
12
|
+
- rvm: 2.6.1
|
13
|
+
- rvm: 2.5.3
|
14
|
+
- rvm: 2.4.5
|
15
|
+
- rvm: 2.3.8
|
16
|
+
# JRuby
|
17
|
+
# - rvm: jruby-9.1.16.0 - https://github.com/kacperduras/jekyll-w2m/issues/2
|
18
|
+
|
19
|
+
|
20
|
+
deploy:
|
21
|
+
provider: rubygems
|
22
|
+
api_key:
|
23
|
+
secure: "s4GHX+11qthI3BUL6MBCbD9gICQBHr1NIDS/828nCeKbe5yJ43iRvOZPITqOLEeWIQC7UBEdhpPsG1atHIsjf8v+Q1AEZwLiq1GwoF4TqYwJaxRQn0oq6eBgxBnzGLREZFt9p/xWRGOOH5L/cwREFX18/BDBWf+t5mxB89FJ1p1egPSiH/S0AazY8cEecBI93bH6XxWA5JCcjd7OwlVPPsea9pH8wyCfnITQkALDqZgs6xAfuvvs+/RpontbzanJFiSmXsZ0pwvfjuwm/fDJu82RznHJ6lTi/K4y69OCxEvBLpwMPiVs+Z5ulvNcyAvXt5caVWzO+nXOtZN7EZ4c/smoj7rnSxOEMe3K81pZCiHuOHKs1Phas3ltHlxs2gXgWYjL8Z58RiuBuO1YXJJAztuDP/gfwJ+Qq9BcxVoE/yirKiNkDfnXaMLrWONwi431VfgKL5h8zGUEqpGMFoE833Q9PEaj96GEv7yGFyvh6Vg1DzRzoklIhfp5jhXdyxnuReMKFkkoYEa3Iui4RyquEkdjSV1OtjnBSuWewYRbZQbiN+5oEL8yjR+RNIfWO2yXBwilnf/xCOfbPQSW7B/cjtlyJOqzSkKmc5Qv0H2ASWh3iQhYwCxGnq9sTtXpbLWSaDgdhPjV5ckDiUYJ9KN1n3R08mtaNemITZqvgdKjI80="
|
24
|
+
on:
|
25
|
+
rvm: 2.5.3
|
26
|
+
tags: true
|
27
|
+
gem: jekyll-w2m
|
28
|
+
gemspec: jekyll-w2m.gemspec
|
16
29
|
|
17
30
|
notfications:
|
18
31
|
email: false
|
data/Gemfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gemspec
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gemspec
|
data/README.md
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
# jekyll-w2m [![Build Status](https://travis-ci.org/kacperduras/jekyll-w2m.svg?branch=master)](https://travis-ci.org/kacperduras/jekyll-w2m) [![Gem Version](https://badge.fury.io/rb/jekyll-w2m.svg)](https://badge.fury.io/rb/jekyll-w2m)
|
2
|
-
|
3
|
-
A Jekyll plugin to liberate content from Microsoft Word documents (powered by [word-to-markdown](https://github.com/benbalter/word-to-markdown)).
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
```
|
9
|
-
$ gem 'jekyll-w2m'
|
10
|
-
```
|
11
|
-
|
12
|
-
And then execute:
|
13
|
-
```
|
14
|
-
$ bundle
|
15
|
-
```
|
16
|
-
|
17
|
-
Or install it yourself as:
|
18
|
-
```
|
19
|
-
$ gem install jekyll-w2m
|
20
|
-
```
|
21
|
-
|
22
|
-
Then add the following to your site's `_config.yml`
|
23
|
-
```yaml
|
24
|
-
plugins:
|
25
|
-
- "jekyll-w2m"
|
26
|
-
```
|
27
|
-
|
28
|
-
## Usage
|
29
|
-
Use the tag as follows in your Jekyll pages, posts and collections:
|
30
|
-
```
|
31
|
-
{% w2m /path/to/document.docx %}
|
32
|
-
```
|
33
|
-
|
34
|
-
## License
|
35
|
-
[MIT](LICENSE)
|
1
|
+
# jekyll-w2m [![Build Status](https://travis-ci.org/kacperduras/jekyll-w2m.svg?branch=master)](https://travis-ci.org/kacperduras/jekyll-w2m) [![Gem Version](https://badge.fury.io/rb/jekyll-w2m.svg)](https://badge.fury.io/rb/jekyll-w2m)
|
2
|
+
|
3
|
+
A Jekyll plugin to liberate content from Microsoft Word documents (powered by [word-to-markdown](https://github.com/benbalter/word-to-markdown)).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
```
|
9
|
+
$ gem 'jekyll-w2m'
|
10
|
+
```
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
```
|
14
|
+
$ bundle
|
15
|
+
```
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
```
|
19
|
+
$ gem install jekyll-w2m
|
20
|
+
```
|
21
|
+
|
22
|
+
Then add the following to your site's `_config.yml`
|
23
|
+
```yaml
|
24
|
+
plugins:
|
25
|
+
- "jekyll-w2m"
|
26
|
+
```
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
Use the tag as follows in your Jekyll pages, posts and collections:
|
30
|
+
```
|
31
|
+
{% w2m /path/to/document.docx %}
|
32
|
+
```
|
33
|
+
|
34
|
+
## License
|
35
|
+
[MIT](LICENSE)
|
data/Rakefile
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "bundler/gem_tasks"
|
4
|
-
require "rake/testtask"
|
5
|
-
|
6
|
-
Rake::TestTask.new(:test) do |t|
|
7
|
-
t.libs << "test"
|
8
|
-
t.libs << "lib"
|
9
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
10
|
-
end
|
11
|
-
|
12
|
-
task :default => :test
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rake/testtask"
|
5
|
+
|
6
|
+
Rake::TestTask.new(:test) do |t|
|
7
|
+
t.libs << "test"
|
8
|
+
t.libs << "lib"
|
9
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
10
|
+
end
|
11
|
+
|
12
|
+
task :default => :test
|
data/jekyll-w2m.gemspec
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path("lib", __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require "jekyll-w2m/version"
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = "jekyll-w2m"
|
9
|
-
spec.version = Jekyll::W2M::VERSION
|
10
|
-
spec.authors = ["Kacper Duras"]
|
11
|
-
spec.email = ["git@kacperduras.pl"]
|
12
|
-
|
13
|
-
spec.summary = "A Jekyll plugin to liberate content from Microsoft Word documents (powered by word-to-markdown)."
|
14
|
-
spec.homepage = "https://github.com/kacperduras/jekyll-w2m"
|
15
|
-
spec.license = "MIT"
|
16
|
-
|
17
|
-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
-
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
-
if spec.respond_to?(:metadata)
|
20
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
-
else
|
22
|
-
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
-
"public gem pushes."
|
24
|
-
end
|
25
|
-
|
26
|
-
spec.required_ruby_version = ">= 2.
|
27
|
-
|
28
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
29
|
-
f.match(%r!^(test|spec|features)/!)
|
30
|
-
end
|
31
|
-
spec.bindir = "exe"
|
32
|
-
spec.executables = spec.files.grep(%r!^exe/!) { |f| File.basename(f) }
|
33
|
-
spec.require_paths = ["lib"]
|
34
|
-
|
35
|
-
spec.add_dependency "jekyll", "~> 3.
|
36
|
-
spec.add_dependency "word-to-markdown", "~> 1.1.7"
|
37
|
-
|
38
|
-
spec.add_development_dependency "bundler", "~> 1.
|
39
|
-
spec.add_development_dependency "minitest", "~> 5.11.3"
|
40
|
-
spec.add_development_dependency "rake", "~> 12.3"
|
41
|
-
spec.add_development_dependency "rubocop", "~> 0.52.0"
|
42
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "jekyll-w2m/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "jekyll-w2m"
|
9
|
+
spec.version = Jekyll::W2M::VERSION
|
10
|
+
spec.authors = ["Kacper Duras"]
|
11
|
+
spec.email = ["git@kacperduras.pl"]
|
12
|
+
|
13
|
+
spec.summary = "A Jekyll plugin to liberate content from Microsoft Word documents (powered by word-to-markdown)."
|
14
|
+
spec.homepage = "https://github.com/kacperduras/jekyll-w2m"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.required_ruby_version = ">= 2.3"
|
27
|
+
|
28
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
29
|
+
f.match(%r!^(test|spec|features)/!)
|
30
|
+
end
|
31
|
+
spec.bindir = "exe"
|
32
|
+
spec.executables = spec.files.grep(%r!^exe/!) { |f| File.basename(f) }
|
33
|
+
spec.require_paths = ["lib"]
|
34
|
+
|
35
|
+
spec.add_dependency "jekyll", "~> 3.8.5"
|
36
|
+
spec.add_dependency "word-to-markdown", "~> 1.1.7"
|
37
|
+
|
38
|
+
spec.add_development_dependency "bundler", "~> 1.17.3"
|
39
|
+
spec.add_development_dependency "minitest", "~> 5.11.3"
|
40
|
+
spec.add_development_dependency "rake", "~> 12.3"
|
41
|
+
spec.add_development_dependency "rubocop", "~> 0.52.0"
|
42
|
+
end
|
data/lib/jekyll-w2m.rb
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "jekyll"
|
4
|
-
require "liquid"
|
5
|
-
require "word-to-markdown"
|
6
|
-
|
7
|
-
module Jekyll
|
8
|
-
module W2M
|
9
|
-
|
10
|
-
class Tag < Liquid::Tag
|
11
|
-
def initialize(_tag_name, txt, _tokens)
|
12
|
-
@context = txt
|
13
|
-
end
|
14
|
-
|
15
|
-
def render(_context)
|
16
|
-
Jekyll::W2M.parse(@context)
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
class << self
|
21
|
-
def parse(file_path)
|
22
|
-
WordToMarkown.new(file_path)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
Liquid::Template.register_tag("w2m", Jekyll::W2M::Tag)
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "jekyll"
|
4
|
+
require "liquid"
|
5
|
+
require "word-to-markdown"
|
6
|
+
|
7
|
+
module Jekyll
|
8
|
+
module W2M
|
9
|
+
|
10
|
+
class Tag < Liquid::Tag
|
11
|
+
def initialize(_tag_name, txt, _tokens)
|
12
|
+
@context = txt
|
13
|
+
end
|
14
|
+
|
15
|
+
def render(_context)
|
16
|
+
Jekyll::W2M.parse(@context)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class << self
|
21
|
+
def parse(file_path)
|
22
|
+
WordToMarkown.new(file_path)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
Liquid::Template.register_tag("w2m", Jekyll::W2M::Tag)
|
data/lib/jekyll-w2m/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Jekyll
|
4
|
-
module W2M
|
5
|
-
VERSION = "1.0.
|
6
|
-
end
|
7
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Jekyll
|
4
|
+
module W2M
|
5
|
+
VERSION = "1.0.2"
|
6
|
+
end
|
7
|
+
end
|
data/script/cibuild
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#! /bin/bash
|
2
|
-
|
3
|
-
set -e
|
4
|
-
|
5
|
-
script/fmt
|
6
|
-
bundle exec rake build
|
1
|
+
#! /bin/bash
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
script/fmt
|
6
|
+
bundle exec rake build
|
data/script/fmt
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
# Lint Ruby according to Jekyll's conventions
|
3
|
-
set -e
|
4
|
-
|
5
|
-
echo "Rubocop $(bundle exec rubocop --version)"
|
6
|
-
bundle exec rubocop -S -D -E $@
|
7
|
-
success=$?
|
8
|
-
if ((success != 0)); then
|
9
|
-
echo -e "\nTry running \`script/fmt -a\` to automatically fix errors"
|
10
|
-
fi
|
11
|
-
exit $success
|
1
|
+
#!/bin/bash
|
2
|
+
# Lint Ruby according to Jekyll's conventions
|
3
|
+
set -e
|
4
|
+
|
5
|
+
echo "Rubocop $(bundle exec rubocop --version)"
|
6
|
+
bundle exec rubocop -S -D -E $@
|
7
|
+
success=$?
|
8
|
+
if ((success != 0)); then
|
9
|
+
echo -e "\nTry running \`script/fmt -a\` to automatically fix errors"
|
10
|
+
fi
|
11
|
+
exit $success
|
data/script/release
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# Tag and push a release.
|
3
|
-
|
4
|
-
set -e
|
5
|
-
|
6
|
-
script/cibuild
|
7
|
-
bundle exec rake release
|
1
|
+
#!/bin/sh
|
2
|
+
# Tag and push a release.
|
3
|
+
|
4
|
+
set -e
|
5
|
+
|
6
|
+
script/cibuild
|
7
|
+
bundle exec rake release
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-w2m
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kacper Duras
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.8.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.8.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: word-to-markdown
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.17.3
|
48
48
|
type: :development
|
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: 1.
|
54
|
+
version: 1.17.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,15 +129,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
129
|
requirements:
|
130
130
|
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: '2.
|
132
|
+
version: '2.3'
|
133
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - ">="
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
|
-
|
140
|
-
rubygems_version: 2.7.3
|
139
|
+
rubygems_version: 3.0.2
|
141
140
|
signing_key:
|
142
141
|
specification_version: 4
|
143
142
|
summary: A Jekyll plugin to liberate content from Microsoft Word documents (powered
|