kakuyomu_agent 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env.sample +4 -0
- data/.gitignore +55 -0
- data/.rspec +3 -0
- data/.rubocop.yml +6 -0
- data/.travis.yml +23 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +60 -0
- data/Rakefile +6 -0
- data/bin/console +10 -0
- data/bin/setup +8 -0
- data/kakuyomu_agent.gemspec +33 -0
- data/lib/kakuyomu_agent.rb +122 -0
- data/lib/kakuyomu_agent/url_utils.rb +13 -0
- data/lib/kakuyomu_agent/version.rb +3 -0
- metadata +158 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 15e9b3078d627199445d9d6591c88114143d245740ac7448c06dfe03b75bf668
|
4
|
+
data.tar.gz: fee06253f5b28622efb18277c15a6b232a5cc413d81e09e4f02d59c4f5f3f983
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 779b6da5f1ded127de3e618e2957c791c00601848bdc1315dd93a5ca1a4a64aea7997e39372660b58162867e2c69275f9a518489f9c429c4937697709711c8e7
|
7
|
+
data.tar.gz: dcd128af4875b98da9f58adf24a968ecc4998f026498126285434170afb5b8d101432ddd4e5cb9661997dd0c0e91b6269fb832a181bc8064fa92e21f63ff610c
|
data/.env.sample
ADDED
data/.gitignore
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
### https://raw.github.com/github/gitignore/9da1b5d8ce4e009ff627c4fe49a4488b2a3f60d4/Ruby.gitignore
|
2
|
+
|
3
|
+
*.gem
|
4
|
+
*.rbc
|
5
|
+
/.config
|
6
|
+
/coverage/
|
7
|
+
/InstalledFiles
|
8
|
+
/pkg/
|
9
|
+
/spec/reports/
|
10
|
+
/spec/examples.txt
|
11
|
+
/test/tmp/
|
12
|
+
/test/version_tmp/
|
13
|
+
/tmp/
|
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
|
+
|
54
|
+
# rspec failure tracking
|
55
|
+
.rspec_status
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
sudo: required
|
2
|
+
language: ruby
|
3
|
+
rvm:
|
4
|
+
- 2.5
|
5
|
+
addons:
|
6
|
+
chrome: stable
|
7
|
+
env:
|
8
|
+
global:
|
9
|
+
- WORK_ID=1177354054887416186
|
10
|
+
- EPISODE_ID=1177354054887416236
|
11
|
+
- secure: xiEpWd8ZpsPHUaR/pkaW4+X/WgrIwk6KFlqWJeKdcWVYgpZNa3T0AkR959AE5kCtm3KsHkl0TH6DgmGm2QKJaG7QdnTThHUF1j5MGuZG0IDMIfj4JybPC1OfAxF50y66DjrDViJilb/XuAU8AE+XOYf8LJTQ2zLHz7qvV7ZFm6v94cYreKio90HrNvLGoLFtlC5PUkrJ7nsdEVIvvLArlTsPmMUWc5ZN8eOpTPM1tFTr2sXbf6Sa7/6NzWKHNpuDJ2fZnwR5qHTojXXhxI64CXj4D846wPAz13LiIhQcdtCvt+B+YGHQMmjn3q+thjo+IBCvTeUw7uuoIc9Cfkl7hEauj5r3GUQ0Q00TNs6JLR2ZJ7EM/WPQ6FpvqN5hwmnq1+Rk3p3OCfEGqT1wPDcr0jvQFtTpFQAs2JdLQpNArXFcuLspCWtBjFcU5zgBMoLSWLfaUxtRH3MAP4ei0v6TNB+wPa/c3D//YWqyOBbru8vxFjCz63db7tfofQEQMBIwlEG3OYJpocz7o571IAqxzpPXtvXIYYRKI0ter6aGkUIoeGYNzvoWtDG7QkqRizVZw6hzq57ZqAnkzplML1yW5g7uZWTUfuqyFEptW05e1kRzloIKiCdWvG2q0ZVVYt4TZW2iuQGaaCE8x7GU06dgOWKnJ/WHkhGex9nKdIRzrsg=
|
12
|
+
cache: bundler
|
13
|
+
before_install:
|
14
|
+
- gem install bundler -v 1.17.1
|
15
|
+
install:
|
16
|
+
- bundle install --jobs=3 --retry=3
|
17
|
+
# https://github.com/SeleniumHQ/selenium/blob/master/scripts/travis/install.sh#L4-L6
|
18
|
+
- export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
|
19
|
+
- curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
|
20
|
+
- unzip chromedriver_linux64.zip && chmod +x chromedriver && sudo mv chromedriver /usr/local/bin
|
21
|
+
branches:
|
22
|
+
only:
|
23
|
+
- master
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at fujinakahara2032@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Fuji Nakahara
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# KakuyomuAgent
|
2
|
+
|
3
|
+
Selenium script for [Kakuyomu](https://kakuyomu.jp/) episode management.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'kakuyomu_agent'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install kakuyomu_agent
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'kakuyomu_agent'
|
25
|
+
|
26
|
+
agent = KakuyomuAgent.new
|
27
|
+
|
28
|
+
# ログイン
|
29
|
+
agent.login!(email: YOUR_EMAIL, password: YOUR_PASSWORD)
|
30
|
+
|
31
|
+
# 小説の URL から work_id を抽出
|
32
|
+
work_id = KakuyomuAgent::UrlUtils.extract_work_id('https://kakuyomu.jp/works/1234567890123456789') # => 1234567890123456789
|
33
|
+
|
34
|
+
# エピソードを執筆
|
35
|
+
episode_id = agent.create_episode(work_id: work_id, title: 'タイトル', body: '本文')
|
36
|
+
|
37
|
+
# エピソードを編集
|
38
|
+
agent.update_episode(work_id: work_id, episode_id: episode_id, title: '新しいタイトル', body: '新しい本文')
|
39
|
+
|
40
|
+
# エピソードを削除
|
41
|
+
agent.delete_episode(work_id: work_id, episode_id: episode_id)
|
42
|
+
```
|
43
|
+
|
44
|
+
## Development
|
45
|
+
|
46
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
47
|
+
|
48
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
49
|
+
|
50
|
+
## Contributing
|
51
|
+
|
52
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/fuji-nakahara/kakuyomu_agent. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
53
|
+
|
54
|
+
## License
|
55
|
+
|
56
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
57
|
+
|
58
|
+
## Code of Conduct
|
59
|
+
|
60
|
+
Everyone interacting in the KakuyomuAgent project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fuji-nakahara/kakuyomu_agent/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'kakuyomu_agent'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
require 'pry'
|
10
|
+
Pry.start
|
data/bin/setup
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'kakuyomu_agent/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'kakuyomu_agent'
|
8
|
+
spec.version = KakuyomuAgent::VERSION
|
9
|
+
spec.authors = ['Fuji Nakahara']
|
10
|
+
spec.email = ['fujinakahara2032@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = 'Selenium script for Kakuyomu episode management'
|
13
|
+
spec.homepage = 'https://github.com/fuji-nakahara/kakuyomu_agent'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
|
25
|
+
spec.add_dependency 'selenium-webdriver', '~> 3.14'
|
26
|
+
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.17'
|
28
|
+
spec.add_development_dependency 'dotenv', '~> 2.5'
|
29
|
+
spec.add_development_dependency 'meowcop'
|
30
|
+
spec.add_development_dependency 'pry'
|
31
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
33
|
+
end
|
@@ -0,0 +1,122 @@
|
|
1
|
+
require 'selenium-webdriver'
|
2
|
+
|
3
|
+
require_relative 'kakuyomu_agent/url_utils'
|
4
|
+
require_relative 'kakuyomu_agent/version'
|
5
|
+
|
6
|
+
class KakuyomuAgent
|
7
|
+
Error = Class.new(StandardError)
|
8
|
+
NotLoggedInError = Class.new(Error)
|
9
|
+
|
10
|
+
BASE_URL = 'https://kakuyomu.jp'
|
11
|
+
|
12
|
+
attr_reader :base_url, :driver
|
13
|
+
|
14
|
+
def initialize(base_url: BASE_URL, driver: Selenium::WebDriver.for(:chrome))
|
15
|
+
@base_url = base_url
|
16
|
+
@driver = driver
|
17
|
+
@logged_in = false
|
18
|
+
end
|
19
|
+
|
20
|
+
def logged_in?
|
21
|
+
@logged_in
|
22
|
+
end
|
23
|
+
|
24
|
+
def login!(email:, password:)
|
25
|
+
driver.navigate.to(login_url)
|
26
|
+
driver.find_element(name: 'email_address').send_keys(email)
|
27
|
+
driver.find_element(name: 'password').send_keys(password)
|
28
|
+
driver.find_element(xpath: '//button[text()="ログイン"]').click
|
29
|
+
|
30
|
+
Selenium::WebDriver::Wait.new.until do
|
31
|
+
driver.find_element(id: 'page-my')
|
32
|
+
end
|
33
|
+
|
34
|
+
@logged_in = true
|
35
|
+
rescue Selenium::WebDriver::Error::WebDriverError => e
|
36
|
+
raise Error, "Logging in failed: #{e.message}"
|
37
|
+
end
|
38
|
+
|
39
|
+
def create_episode(work_id:, title:, body:)
|
40
|
+
raise NotLoggedInError unless logged_in?
|
41
|
+
|
42
|
+
driver.navigate.to(new_episode_url(work_id))
|
43
|
+
|
44
|
+
title_input = driver.find_element(name: 'title')
|
45
|
+
title_input.clear
|
46
|
+
title_input.send_keys(title)
|
47
|
+
|
48
|
+
driver.find_element(name: 'body').send_keys(body)
|
49
|
+
|
50
|
+
driver.find_element(id: 'reserveButton').click
|
51
|
+
driver.find_element(id: 'reservationControl-footer').find_element(tag_name: 'button').click
|
52
|
+
|
53
|
+
Selenium::WebDriver::Wait.new.until do
|
54
|
+
driver.find_element(id: 'page-my-works-episodes-published')
|
55
|
+
end
|
56
|
+
|
57
|
+
episode_id = UrlUtils.extract_episode_id(driver.current_url)
|
58
|
+
episode_url(work_id, episode_id)
|
59
|
+
rescue Selenium::WebDriver::Error::WebDriverError => e
|
60
|
+
raise Error, "Creating episode failed: #{e.message}"
|
61
|
+
end
|
62
|
+
|
63
|
+
def update_episode(work_id:, episode_id:, title:, body:)
|
64
|
+
raise NotLoggedInError unless logged_in?
|
65
|
+
|
66
|
+
driver.navigate.to(edit_episode_url(work_id, episode_id))
|
67
|
+
|
68
|
+
title_input = driver.find_element(name: 'title')
|
69
|
+
title_input.clear
|
70
|
+
title_input.send_keys(title)
|
71
|
+
|
72
|
+
body_textarea = driver.find_element(name: 'body')
|
73
|
+
body_textarea.clear
|
74
|
+
body_textarea.send_keys(body)
|
75
|
+
|
76
|
+
driver.find_element(id: 'updateButton').click
|
77
|
+
|
78
|
+
Selenium::WebDriver::Wait.new.until do
|
79
|
+
driver.find_element(id: 'page-my-works-episodes-published')
|
80
|
+
end
|
81
|
+
|
82
|
+
episode_url(work_id, episode_id)
|
83
|
+
rescue Selenium::WebDriver::Error::WebDriverError => e
|
84
|
+
raise Error, "Updating episode failed: #{e.message}"
|
85
|
+
end
|
86
|
+
|
87
|
+
def delete_episode(work_id:, episode_id:)
|
88
|
+
raise NotLoggedInError unless logged_in?
|
89
|
+
|
90
|
+
driver.navigate.to(edit_episode_url(work_id, episode_id))
|
91
|
+
driver.find_element(id: 'contentMainHeader-toolButton').click
|
92
|
+
driver.find_element(id: 'contentAsideHeader').find_element(xpath: '//*[contains(text(), "ツール")]').click
|
93
|
+
driver.find_element(id: 'deleteEpisode').find_element(tag_name: 'button').click
|
94
|
+
driver.switch_to.alert.accept
|
95
|
+
|
96
|
+
Selenium::WebDriver::Wait.new.until do
|
97
|
+
driver.find_element(id: 'modelessMessage')
|
98
|
+
end
|
99
|
+
|
100
|
+
true
|
101
|
+
rescue Selenium::WebDriver::Error::WebDriverError => e
|
102
|
+
raise Error, "Deleting episode failed: #{e.message}"
|
103
|
+
end
|
104
|
+
|
105
|
+
private
|
106
|
+
|
107
|
+
def login_url
|
108
|
+
"#{base_url}/login"
|
109
|
+
end
|
110
|
+
|
111
|
+
def episode_url(work_id, episode_id)
|
112
|
+
"#{base_url}/works/#{work_id}/episodes/#{episode_id}"
|
113
|
+
end
|
114
|
+
|
115
|
+
def new_episode_url(work_id)
|
116
|
+
"#{base_url}/my/works/#{work_id}/episodes/new"
|
117
|
+
end
|
118
|
+
|
119
|
+
def edit_episode_url(work_id, episode_id)
|
120
|
+
"#{base_url}/my/works/#{work_id}/episodes/#{episode_id}"
|
121
|
+
end
|
122
|
+
end
|
metadata
ADDED
@@ -0,0 +1,158 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kakuyomu_agent
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Fuji Nakahara
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-11-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: selenium-webdriver
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.14'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.17'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.17'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dotenv
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: meowcop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- fujinakahara2032@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".env.sample"
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- ".rubocop.yml"
|
122
|
+
- ".travis.yml"
|
123
|
+
- CODE_OF_CONDUCT.md
|
124
|
+
- Gemfile
|
125
|
+
- LICENSE.txt
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- bin/console
|
129
|
+
- bin/setup
|
130
|
+
- kakuyomu_agent.gemspec
|
131
|
+
- lib/kakuyomu_agent.rb
|
132
|
+
- lib/kakuyomu_agent/url_utils.rb
|
133
|
+
- lib/kakuyomu_agent/version.rb
|
134
|
+
homepage: https://github.com/fuji-nakahara/kakuyomu_agent
|
135
|
+
licenses:
|
136
|
+
- MIT
|
137
|
+
metadata: {}
|
138
|
+
post_install_message:
|
139
|
+
rdoc_options: []
|
140
|
+
require_paths:
|
141
|
+
- lib
|
142
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
requirements: []
|
153
|
+
rubyforge_project:
|
154
|
+
rubygems_version: 2.7.6
|
155
|
+
signing_key:
|
156
|
+
specification_version: 4
|
157
|
+
summary: Selenium script for Kakuyomu episode management
|
158
|
+
test_files: []
|