jekyll-deploy-shosetsu 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +48 -4
- data/.travis.yml +3 -1
- data/Gemfile +1 -1
- data/README.md +11 -4
- data/Rakefile +2 -2
- data/bin/console +3 -3
- data/jekyll-deploy-shosetsu.gemspec +19 -18
- data/lib/jekyll/commands/deploy_kakuyomu.rb +24 -29
- data/lib/jekyll/commands/deploy_narou.rb +63 -0
- data/lib/jekyll-deploy-shosetsu/deployers/kakuyomu.rb +13 -23
- data/lib/jekyll-deploy-shosetsu/deployers/narou.rb +39 -0
- data/lib/jekyll-deploy-shosetsu/util.rb +13 -0
- data/lib/jekyll-deploy-shosetsu/version.rb +1 -1
- data/lib/jekyll-deploy-shosetsu.rb +7 -5
- metadata +35 -19
- data/Gemfile.lock +0 -131
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd4d44a41ffc59f808a45179286a20fab33d416b8534222669b0fe52aeb0353f
|
4
|
+
data.tar.gz: b43d255325ea9a925e5f93750efb9537873dc11979027d663857e51dff2726e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d357e0c074e174bcf84e1e2581e272a60b1e1bf49ee0646bece7005fee60cfa08a664e705999a6bcb13fbcc5eeba5d066112105ec50cd91a01b5d62197f1f8b0
|
7
|
+
data.tar.gz: a052c1f4b1527b01c278c5751c8bd78e08f1c4d289d7b66192269b2148cf179b4bc155a53dfa7b0093fa307ca4bbebe73eaf4ea2ab4a5afbb9814e5ebe4d5e4b
|
data/.gitignore
CHANGED
@@ -1,12 +1,56 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
### https://raw.github.com/github/gitignore/9da1b5d8ce4e009ff627c4fe49a4488b2a3f60d4/Ruby.gitignore
|
2
|
+
|
3
|
+
*.gem
|
4
|
+
*.rbc
|
5
|
+
/.config
|
4
6
|
/coverage/
|
5
|
-
/
|
7
|
+
/InstalledFiles
|
6
8
|
/pkg/
|
7
9
|
/spec/reports/
|
10
|
+
/spec/examples.txt
|
11
|
+
/test/tmp/
|
12
|
+
/test/version_tmp/
|
8
13
|
/tmp/
|
9
14
|
|
15
|
+
# Used by dotenv library to load environment variables.
|
16
|
+
# .env
|
17
|
+
|
18
|
+
## Specific to RubyMotion:
|
19
|
+
.dat*
|
20
|
+
.repl_history
|
21
|
+
build/
|
22
|
+
*.bridgesupport
|
23
|
+
build-iPhoneOS/
|
24
|
+
build-iPhoneSimulator/
|
25
|
+
|
26
|
+
## Specific to RubyMotion (use of CocoaPods):
|
27
|
+
#
|
28
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
29
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
30
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
31
|
+
#
|
32
|
+
# vendor/Pods/
|
33
|
+
|
34
|
+
## Documentation cache and generated files:
|
35
|
+
/.yardoc/
|
36
|
+
/_yardoc/
|
37
|
+
/doc/
|
38
|
+
/rdoc/
|
39
|
+
|
40
|
+
## Environment normalization:
|
41
|
+
/.bundle/
|
42
|
+
/vendor/bundle
|
43
|
+
/lib/bundler/man/
|
44
|
+
|
45
|
+
# for a library or gem, you might want to ignore these files since the code is
|
46
|
+
# intended to run in multiple environments; otherwise, check them in:
|
47
|
+
Gemfile.lock
|
48
|
+
.ruby-version
|
49
|
+
.ruby-gemset
|
50
|
+
|
51
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
52
|
+
.rvmrc
|
53
|
+
|
10
54
|
# rspec failure tracking
|
11
55
|
.rspec_status
|
12
56
|
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# jekyll-deploy-shosetsu
|
2
2
|
|
3
|
-
Jekyll plugin that adds subcommands to deploy your posts to [Kakuyomu](https://kakuyomu.jp/).
|
3
|
+
Jekyll plugin that adds subcommands to deploy your posts to [Kakuyomu](https://kakuyomu.jp/) or [Narou](https://syosetu.com/).
|
4
|
+
|
5
|
+
This gem is build on [KakuyomuAgent](https://github.com/fuji-nakahara/kakuyomu_agent), [NarouAgent](https://github.com/fuji-nakahara/narou_agent) and [FujiMarkdown](https://github.com/fuji-nakahara/fuji_markdown).
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -16,17 +18,22 @@ And then execute:
|
|
16
18
|
|
17
19
|
## Usage
|
18
20
|
|
19
|
-
You can deploy your posts to Kakuyomu by the following
|
21
|
+
You can deploy your posts to Kakuyomu and Narou by the following commands:
|
20
22
|
|
21
23
|
$ bundle exec jekyll deploy-kakuyomu --email YOUR_EMAIL --password YOUR_PASSWORD --work_id KAKUYOMU_WORK_ID
|
24
|
+
$ bundle exec jekyll deploy-narou --id YOUR_ID --password YOUR_PASSWORD --ncode NCODE
|
22
25
|
|
23
|
-
You can also edit the deploy settings in `_config.yml
|
26
|
+
You can also edit the deploy settings in `_config.yml`:
|
24
27
|
|
25
28
|
```yaml
|
26
29
|
kakuyomu:
|
27
30
|
work_id: 1234567890123456789
|
28
31
|
email: kakuyomu@example.com
|
29
|
-
password:
|
32
|
+
password: KAKUYOMU_PASSWORD
|
33
|
+
narou:
|
34
|
+
ncode: N9999ZZ
|
35
|
+
id: narou@example.com
|
36
|
+
password: NAROU_PASSWORD
|
30
37
|
```
|
31
38
|
|
32
39
|
## Development
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'jekyll-deploy-shosetsu'
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
8
8
|
|
9
|
-
require
|
9
|
+
require 'pry'
|
10
10
|
Pry.start
|
@@ -1,35 +1,36 @@
|
|
1
1
|
|
2
|
-
lib = File.expand_path(
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
4
|
+
require 'jekyll-deploy-shosetsu/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'jekyll-deploy-shosetsu'
|
8
8
|
spec.version = JekyllDeployShosetsu::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Fuji Nakahara']
|
10
|
+
spec.email = ['fujinakahara2032@gmail.com']
|
11
11
|
|
12
|
-
spec.summary =
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
12
|
+
spec.summary = 'Jekyll plugin that adds command to deploy posts to Kakuyomu or Narou'
|
13
|
+
spec.homepage = 'https://github.com/fuji-nakahara/jekyll-deploy-shosetsu'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
16
|
# Specify which files should be added to the gem when it is released.
|
17
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
18
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
19
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
20
|
end
|
21
|
-
spec.bindir =
|
21
|
+
spec.bindir = 'exe'
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
-
spec.require_paths = [
|
23
|
+
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.add_dependency
|
25
|
+
spec.add_dependency 'jekyll', '~> 3.5'
|
26
26
|
|
27
|
-
spec.add_dependency
|
28
|
-
spec.add_dependency
|
27
|
+
spec.add_dependency 'jekyll-fuji_markdown', '~> 0.3'
|
28
|
+
spec.add_dependency 'kakuyomu_agent', '~> 0.2'
|
29
|
+
spec.add_dependency 'narou_agent', '~> 0.1'
|
29
30
|
|
30
|
-
spec.add_development_dependency
|
31
|
-
spec.add_development_dependency
|
32
|
-
spec.add_development_dependency
|
33
|
-
spec.add_development_dependency
|
34
|
-
spec.add_development_dependency
|
31
|
+
spec.add_development_dependency 'bundler', '~> 1.17'
|
32
|
+
spec.add_development_dependency 'meowcop', '~> 1.17'
|
33
|
+
spec.add_development_dependency 'pry', '>= 0.12'
|
34
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
35
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
35
36
|
end
|
@@ -1,25 +1,29 @@
|
|
1
1
|
module Jekyll
|
2
2
|
module Commands
|
3
3
|
class DeployKakuyomu < Command
|
4
|
-
KAKUYOMU_OPTIONS = %w[email password work_id]
|
5
|
-
|
6
4
|
class << self
|
5
|
+
COMMAND_OPTIONS = {
|
6
|
+
'email' => ['--email EMAIL', 'Email of Kakuyomu account'],
|
7
|
+
'password' => ['--password PASSWORD', 'Password of Kakuyomu account'],
|
8
|
+
'work_id' => ['--work_id WORK_ID', Integer, 'The posts will be deployed into Kakuyomu work of WORK_ID'],
|
9
|
+
}
|
10
|
+
|
7
11
|
def init_with_program(prog)
|
8
12
|
prog.command(:'deploy-kakuyomu') do |c|
|
9
13
|
c.syntax 'deploy-kakuyomu [options]'
|
10
|
-
c.description 'Deploy posts to
|
14
|
+
c.description 'Deploy posts to Kakuyomu'
|
11
15
|
c.alias :dk
|
12
16
|
|
13
17
|
c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
|
14
18
|
c.option 'verbose', '-V', '--verbose', 'Print verbose output.'
|
15
19
|
|
16
|
-
|
17
|
-
|
18
|
-
|
20
|
+
COMMAND_OPTIONS.each do |key, val|
|
21
|
+
c.option key, *val
|
22
|
+
end
|
19
23
|
|
20
24
|
c.action do |_args, options|
|
21
25
|
options['kakuyomu'] = {}
|
22
|
-
|
26
|
+
COMMAND_OPTIONS.keys.each do |key|
|
23
27
|
options['kakuyomu'][key] = options[key] unless options[key].nil?
|
24
28
|
end
|
25
29
|
|
@@ -29,38 +33,29 @@ module Jekyll
|
|
29
33
|
end
|
30
34
|
|
31
35
|
def process(options, deployer: JekyllDeployShosetsu::Deployers::Kakuyomu.new)
|
32
|
-
# Adjust verbosity quickly
|
33
36
|
Jekyll.logger.adjust_verbosity(options)
|
34
37
|
|
35
|
-
|
36
|
-
|
37
|
-
# Rendering settings
|
38
|
-
options['markdown'] = 'FujiMarkdown'
|
39
|
-
options['FujiMarkdown'] ||= {}
|
40
|
-
options['FujiMarkdown']['output'] = 'kakuyomu'
|
41
|
-
Jekyll::Hooks.register :posts, :pre_render do |post, _payload|
|
42
|
-
post.merge_data!('layout' => 'none')
|
43
|
-
end
|
44
|
-
|
45
|
-
site = Jekyll::Site.new(options)
|
38
|
+
site = Jekyll::Site.new(configure(options))
|
46
39
|
site.reset
|
47
40
|
site.read
|
48
41
|
|
49
|
-
deploy(site
|
42
|
+
deployer.deploy(site)
|
50
43
|
end
|
51
44
|
|
52
|
-
|
53
|
-
t = Time.now
|
54
|
-
source = options['source']
|
55
|
-
work_id = options['kakuyomu']['work_id']
|
45
|
+
private
|
56
46
|
|
57
|
-
|
58
|
-
Jekyll.
|
59
|
-
|
47
|
+
def configure(options)
|
48
|
+
Jekyll::Hooks.register :posts, :pre_render do |post, _payload|
|
49
|
+
post.merge_data!('layout' => 'none')
|
50
|
+
end
|
60
51
|
|
61
|
-
|
52
|
+
config = configuration_from_options(options)
|
53
|
+
|
54
|
+
config['markdown'] = 'FujiMarkdown'
|
55
|
+
config['FujiMarkdown'] ||= {}
|
56
|
+
config['FujiMarkdown']['output'] = 'kakuyomu'
|
62
57
|
|
63
|
-
|
58
|
+
config
|
64
59
|
end
|
65
60
|
end
|
66
61
|
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module Jekyll
|
2
|
+
module Commands
|
3
|
+
class DeployNarou < Command
|
4
|
+
class << self
|
5
|
+
COMMAND_OPTIONS = {
|
6
|
+
'id' => ['--id ID', 'ID of Narou account'],
|
7
|
+
'password' => ['--password PASSWORD', 'Password of Narou account'],
|
8
|
+
'ncode' => ['--ncode NCODE', 'The posts will be deployed into NCODE syosetsu'],
|
9
|
+
}
|
10
|
+
|
11
|
+
def init_with_program(prog)
|
12
|
+
prog.command(:'deploy-narou') do |c|
|
13
|
+
c.syntax 'deploy-narou [options]'
|
14
|
+
c.description 'Deploy posts to Narou'
|
15
|
+
c.alias :dn
|
16
|
+
|
17
|
+
c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
|
18
|
+
c.option 'verbose', '-V', '--verbose', 'Print verbose output.'
|
19
|
+
|
20
|
+
COMMAND_OPTIONS.each do |key, val|
|
21
|
+
c.option key, *val
|
22
|
+
end
|
23
|
+
|
24
|
+
c.action do |_args, options|
|
25
|
+
options['narou'] = {}
|
26
|
+
COMMAND_OPTIONS.keys.each do |key|
|
27
|
+
options['narou'][key] = options[key] unless options[key].nil?
|
28
|
+
end
|
29
|
+
|
30
|
+
process(options)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def process(options, deployer: JekyllDeployShosetsu::Deployers::Narou.new)
|
36
|
+
Jekyll.logger.adjust_verbosity(options)
|
37
|
+
|
38
|
+
site = Jekyll::Site.new(configure(options))
|
39
|
+
site.reset
|
40
|
+
site.read
|
41
|
+
|
42
|
+
deployer.deploy(site)
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def configure(options)
|
48
|
+
Jekyll::Hooks.register :posts, :pre_render do |post, _payload|
|
49
|
+
post.merge_data!('layout' => 'none')
|
50
|
+
end
|
51
|
+
|
52
|
+
config = configuration_from_options(options)
|
53
|
+
|
54
|
+
config['markdown'] = 'FujiMarkdown'
|
55
|
+
config['FujiMarkdown'] ||= {}
|
56
|
+
config['FujiMarkdown']['output'] = 'narou'
|
57
|
+
|
58
|
+
config
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -1,49 +1,39 @@
|
|
1
1
|
module JekyllDeployShosetsu
|
2
2
|
module Deployers
|
3
3
|
class Kakuyomu
|
4
|
-
attr_reader :
|
4
|
+
attr_reader :agent
|
5
5
|
|
6
|
-
def initialize(
|
7
|
-
@
|
6
|
+
def initialize(agent: KakuyomuAgent.new)
|
7
|
+
@agent = agent
|
8
8
|
end
|
9
9
|
|
10
10
|
def deploy(site)
|
11
11
|
email = site.config['kakuyomu']['email']
|
12
12
|
password = site.config['kakuyomu']['password']
|
13
|
-
|
13
|
+
agent.login!(email: email, password: password)
|
14
14
|
|
15
15
|
work_id = site.config['kakuyomu']['work_id']
|
16
16
|
|
17
17
|
site.posts.docs.each do |post|
|
18
|
-
post.output = Jekyll::Renderer.new(site, post).run
|
19
|
-
|
20
18
|
kakuyomu_config = post['kakuyomu'] || {}
|
21
19
|
next if kakuyomu_config['ignore']
|
22
20
|
|
21
|
+
post.output = Jekyll::Renderer.new(site, post).run
|
22
|
+
|
23
23
|
if kakuyomu_config['url']
|
24
|
-
episode_id =
|
25
|
-
url =
|
24
|
+
episode_id = KakuyomuAgent::UrlHelper.extract_episode_id(kakuyomu_config['url'])
|
25
|
+
url = agent.update_episode(work_id: work_id, episode_id: episode_id, title: post['title'], body: post.output)
|
26
26
|
Jekyll.logger.info 'Updated:', "#{post.basename} #{url}"
|
27
27
|
else
|
28
|
-
url =
|
28
|
+
url = agent.create_episode(work_id: work_id, title: post['title'], body: post.output)
|
29
29
|
Jekyll.logger.info 'Created:', "#{post.basename} #{url}"
|
30
|
-
|
30
|
+
Util.append_yaml_front_matter post.path, <<~YAML
|
31
|
+
kakuyomu:
|
32
|
+
url: #{url}
|
33
|
+
YAML
|
31
34
|
end
|
32
35
|
end
|
33
36
|
end
|
34
|
-
|
35
|
-
private
|
36
|
-
|
37
|
-
def add_kakuyomu_url_config(post, url)
|
38
|
-
content = File.read(post.path)
|
39
|
-
config = content[Jekyll::Document::YAML_FRONT_MATTER_REGEXP, 1]
|
40
|
-
new_config = config + <<~YAML
|
41
|
-
kakuyomu:
|
42
|
-
url: #{url}
|
43
|
-
YAML
|
44
|
-
new_content = content.gsub(config, new_config)
|
45
|
-
File.write(post.path, new_content)
|
46
|
-
end
|
47
37
|
end
|
48
38
|
end
|
49
39
|
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module JekyllDeployShosetsu
|
2
|
+
module Deployers
|
3
|
+
class Narou
|
4
|
+
attr_reader :agent
|
5
|
+
|
6
|
+
def initialize(agent: NarouAgent.new)
|
7
|
+
@agent = agent
|
8
|
+
end
|
9
|
+
|
10
|
+
def deploy(site)
|
11
|
+
id = site.config['narou']['id']
|
12
|
+
password = site.config['narou']['password']
|
13
|
+
agent.login!(id: id, password: password)
|
14
|
+
|
15
|
+
ncode = site.config['narou']['ncode']
|
16
|
+
|
17
|
+
site.posts.docs.each do |post|
|
18
|
+
narou_config = post['narou'] || {}
|
19
|
+
next if narou_config['ignore']
|
20
|
+
|
21
|
+
post.output = Jekyll::Renderer.new(site, post).run
|
22
|
+
|
23
|
+
if narou_config['url']
|
24
|
+
part_id = NarouAgent::UrlHelper.extract_part_id(narou_config['url'])
|
25
|
+
url = agent.update_part(ncode: ncode, part_id: part_id, subtitle: post['title'], body: post.output)
|
26
|
+
Jekyll.logger.info 'Updated:', "#{post.basename} #{url}"
|
27
|
+
else
|
28
|
+
url = agent.create_part(ncode: ncode, subtitle: post['title'], body: post.output)
|
29
|
+
Jekyll.logger.info 'Created:', "#{post.basename} #{url}"
|
30
|
+
Util.append_yaml_front_matter post.path, <<~YAML
|
31
|
+
narou:
|
32
|
+
url: #{url}
|
33
|
+
YAML
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module JekyllDeployShosetsu
|
2
|
+
module Util
|
3
|
+
class << self
|
4
|
+
def append_yaml_front_matter(path, yaml)
|
5
|
+
content = File.read(path)
|
6
|
+
config = content[Jekyll::Document::YAML_FRONT_MATTER_REGEXP, 1]
|
7
|
+
new_config = config + yaml
|
8
|
+
new_content = content.gsub(config, new_config)
|
9
|
+
File.write(path, new_content)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -3,12 +3,14 @@ require 'io/console'
|
|
3
3
|
require 'jekyll'
|
4
4
|
|
5
5
|
require 'jekyll-fuji_markdown'
|
6
|
-
require '
|
6
|
+
require 'kakuyomu_agent'
|
7
|
+
require 'narou_agent'
|
7
8
|
|
8
9
|
require_relative 'jekyll/commands/deploy_kakuyomu'
|
9
|
-
require_relative 'jekyll
|
10
|
+
require_relative 'jekyll/commands/deploy_narou'
|
11
|
+
|
12
|
+
require_relative 'jekyll-deploy-shosetsu/util'
|
10
13
|
require_relative 'jekyll-deploy-shosetsu/version'
|
11
14
|
|
12
|
-
|
13
|
-
|
14
|
-
end
|
15
|
+
require_relative 'jekyll-deploy-shosetsu/deployers/kakuyomu'
|
16
|
+
require_relative 'jekyll-deploy-shosetsu/deployers/narou'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-deploy-shosetsu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fuji Nakahara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -28,30 +28,44 @@ dependencies:
|
|
28
28
|
name: jekyll-fuji_markdown
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '0.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '0.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: kakuyomu_agent
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '0.2'
|
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: '0'
|
54
|
+
version: '0.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: narou_agent
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.1'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,30 +84,30 @@ dependencies:
|
|
70
84
|
name: meowcop
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
89
|
+
version: '1.17'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
96
|
+
version: '1.17'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: pry
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - ">="
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
103
|
+
version: '0.12'
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
110
|
+
version: '0.12'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rake
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,7 +149,6 @@ files:
|
|
135
149
|
- ".travis.yml"
|
136
150
|
- CODE_OF_CONDUCT.md
|
137
151
|
- Gemfile
|
138
|
-
- Gemfile.lock
|
139
152
|
- LICENSE.txt
|
140
153
|
- README.md
|
141
154
|
- Rakefile
|
@@ -144,8 +157,11 @@ files:
|
|
144
157
|
- jekyll-deploy-shosetsu.gemspec
|
145
158
|
- lib/jekyll-deploy-shosetsu.rb
|
146
159
|
- lib/jekyll-deploy-shosetsu/deployers/kakuyomu.rb
|
160
|
+
- lib/jekyll-deploy-shosetsu/deployers/narou.rb
|
161
|
+
- lib/jekyll-deploy-shosetsu/util.rb
|
147
162
|
- lib/jekyll-deploy-shosetsu/version.rb
|
148
163
|
- lib/jekyll/commands/deploy_kakuyomu.rb
|
164
|
+
- lib/jekyll/commands/deploy_narou.rb
|
149
165
|
homepage: https://github.com/fuji-nakahara/jekyll-deploy-shosetsu
|
150
166
|
licenses:
|
151
167
|
- MIT
|
@@ -169,5 +185,5 @@ rubyforge_project:
|
|
169
185
|
rubygems_version: 2.7.6
|
170
186
|
signing_key:
|
171
187
|
specification_version: 4
|
172
|
-
summary: Jekyll plugin that adds command to deploy posts to Kakuyomu
|
188
|
+
summary: Jekyll plugin that adds command to deploy posts to Kakuyomu or Narou
|
173
189
|
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,131 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
jekyll-deploy-shosetsu (0.1.0)
|
5
|
-
jekyll (~> 3.5)
|
6
|
-
jekyll-fuji_markdown
|
7
|
-
kakuyomu_client
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
addressable (2.5.2)
|
13
|
-
public_suffix (>= 2.0.2, < 4.0)
|
14
|
-
ast (2.4.0)
|
15
|
-
childprocess (0.9.0)
|
16
|
-
ffi (~> 1.0, >= 1.0.11)
|
17
|
-
coderay (1.1.2)
|
18
|
-
colorator (1.1.0)
|
19
|
-
commonmarker (0.18.1)
|
20
|
-
ruby-enum (~> 0.5)
|
21
|
-
concurrent-ruby (1.0.5)
|
22
|
-
diff-lcs (1.3)
|
23
|
-
em-websocket (0.5.1)
|
24
|
-
eventmachine (>= 0.12.9)
|
25
|
-
http_parser.rb (~> 0.6.0)
|
26
|
-
eventmachine (1.2.7)
|
27
|
-
ffi (1.9.25)
|
28
|
-
forwardable-extended (2.6.0)
|
29
|
-
fuji_markdown (0.2.1)
|
30
|
-
commonmarker (~> 0.17)
|
31
|
-
http_parser.rb (0.6.0)
|
32
|
-
i18n (0.9.5)
|
33
|
-
concurrent-ruby (~> 1.0)
|
34
|
-
jaro_winkler (1.5.1)
|
35
|
-
jekyll (3.8.4)
|
36
|
-
addressable (~> 2.4)
|
37
|
-
colorator (~> 1.0)
|
38
|
-
em-websocket (~> 0.5)
|
39
|
-
i18n (~> 0.7)
|
40
|
-
jekyll-sass-converter (~> 1.0)
|
41
|
-
jekyll-watch (~> 2.0)
|
42
|
-
kramdown (~> 1.14)
|
43
|
-
liquid (~> 4.0)
|
44
|
-
mercenary (~> 0.3.3)
|
45
|
-
pathutil (~> 0.9)
|
46
|
-
rouge (>= 1.7, < 4)
|
47
|
-
safe_yaml (~> 1.0)
|
48
|
-
jekyll-fuji_markdown (0.2.2)
|
49
|
-
fuji_markdown (~> 0.2.1)
|
50
|
-
jekyll-sass-converter (1.5.2)
|
51
|
-
sass (~> 3.4)
|
52
|
-
jekyll-watch (2.1.2)
|
53
|
-
listen (~> 3.0)
|
54
|
-
kakuyomu_client (0.2.0)
|
55
|
-
selenium-webdriver (~> 3.14)
|
56
|
-
kramdown (1.17.0)
|
57
|
-
liquid (4.0.1)
|
58
|
-
listen (3.1.5)
|
59
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
60
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
61
|
-
ruby_dep (~> 1.2)
|
62
|
-
meowcop (1.17.1)
|
63
|
-
rubocop (>= 0.57.0)
|
64
|
-
mercenary (0.3.6)
|
65
|
-
method_source (0.9.1)
|
66
|
-
parallel (1.12.1)
|
67
|
-
parser (2.5.3.0)
|
68
|
-
ast (~> 2.4.0)
|
69
|
-
pathutil (0.16.2)
|
70
|
-
forwardable-extended (~> 2.6)
|
71
|
-
powerpack (0.1.2)
|
72
|
-
pry (0.11.3)
|
73
|
-
coderay (~> 1.1.0)
|
74
|
-
method_source (~> 0.9.0)
|
75
|
-
public_suffix (3.0.3)
|
76
|
-
rainbow (3.0.0)
|
77
|
-
rake (10.5.0)
|
78
|
-
rb-fsevent (0.10.3)
|
79
|
-
rb-inotify (0.9.10)
|
80
|
-
ffi (>= 0.5.0, < 2)
|
81
|
-
rouge (3.3.0)
|
82
|
-
rspec (3.8.0)
|
83
|
-
rspec-core (~> 3.8.0)
|
84
|
-
rspec-expectations (~> 3.8.0)
|
85
|
-
rspec-mocks (~> 3.8.0)
|
86
|
-
rspec-core (3.8.0)
|
87
|
-
rspec-support (~> 3.8.0)
|
88
|
-
rspec-expectations (3.8.2)
|
89
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
90
|
-
rspec-support (~> 3.8.0)
|
91
|
-
rspec-mocks (3.8.0)
|
92
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
93
|
-
rspec-support (~> 3.8.0)
|
94
|
-
rspec-support (3.8.0)
|
95
|
-
rubocop (0.60.0)
|
96
|
-
jaro_winkler (~> 1.5.1)
|
97
|
-
parallel (~> 1.10)
|
98
|
-
parser (>= 2.5, != 2.5.1.1)
|
99
|
-
powerpack (~> 0.1)
|
100
|
-
rainbow (>= 2.2.2, < 4.0)
|
101
|
-
ruby-progressbar (~> 1.7)
|
102
|
-
unicode-display_width (~> 1.4.0)
|
103
|
-
ruby-enum (0.7.2)
|
104
|
-
i18n
|
105
|
-
ruby-progressbar (1.10.0)
|
106
|
-
ruby_dep (1.5.0)
|
107
|
-
rubyzip (1.2.2)
|
108
|
-
safe_yaml (1.0.4)
|
109
|
-
sass (3.6.0)
|
110
|
-
sass-listen (~> 4.0.0)
|
111
|
-
sass-listen (4.0.0)
|
112
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
113
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
114
|
-
selenium-webdriver (3.141.0)
|
115
|
-
childprocess (~> 0.5)
|
116
|
-
rubyzip (~> 1.2, >= 1.2.2)
|
117
|
-
unicode-display_width (1.4.0)
|
118
|
-
|
119
|
-
PLATFORMS
|
120
|
-
ruby
|
121
|
-
|
122
|
-
DEPENDENCIES
|
123
|
-
bundler (~> 1.17)
|
124
|
-
jekyll-deploy-shosetsu!
|
125
|
-
meowcop
|
126
|
-
pry
|
127
|
-
rake (~> 10.0)
|
128
|
-
rspec (~> 3.0)
|
129
|
-
|
130
|
-
BUNDLED WITH
|
131
|
-
1.17.1
|