mrmanga 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/.gitignore +10 -0
- data/.rubocop.yml +39 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +28 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/mrmanga +5 -0
- data/lib/mrmanga.rb +10 -0
- data/lib/mrmanga/cli.rb +38 -0
- data/lib/mrmanga/downloader.rb +50 -0
- data/lib/mrmanga/manga.rb +25 -0
- data/lib/mrmanga/parser.rb +85 -0
- data/lib/mrmanga/pdf_renderer.rb +37 -0
- data/lib/mrmanga/version.rb +3 -0
- data/mrmanga.gemspec +34 -0
- metadata +189 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a649067cedb13d4434206c2cce4fff6319d01000
|
4
|
+
data.tar.gz: 422e94b47b1f0a7dbe559017535d494e6f44f1fa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b43d7dee10ee95e07b7d220e40a904d151662e9fe7eb5b8851420e23afd17758d6c0d24c4217a004221013d4a6b2fb794d02e65ee735d221965eaf417662c75d
|
7
|
+
data.tar.gz: d8f725bfaba31d2919ca54ee308ec5bfcc82d0db14ffee6b13a8138ca100dc106a93259a24dd66a83b0ca505abf55c7c45aed953ad017382a2a810b48e511deb
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.3
|
3
|
+
Exclude:
|
4
|
+
- 'db/**/*'
|
5
|
+
- 'spec/**/*'
|
6
|
+
- 'test/**/*'
|
7
|
+
- 'bin/**/*'
|
8
|
+
- 'spec_tmp/**/*'
|
9
|
+
|
10
|
+
Style/AsciiComments:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/SymbolArray:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Style/WordArray:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Style/RedundantSelf:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Style/RegexpLiteral:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Style/FrozenStringLiteralComment:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Metrics/MethodLength:
|
29
|
+
Enabled: true
|
30
|
+
Max: 50
|
31
|
+
|
32
|
+
Metrics/LineLength:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
Metrics/BlockLength:
|
36
|
+
Max: 50
|
37
|
+
|
38
|
+
Documentation:
|
39
|
+
Enabled: false
|
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 andreyviktorov@outlook.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) 2017 Andrey
|
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,28 @@
|
|
1
|
+
# mrmanga
|
2
|
+
|
3
|
+
#### Aka mintmanga/readmanga downloader
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
$ gem install mrmanga
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
$ mrmanga
|
12
|
+
|
13
|
+
And follow the instructions
|
14
|
+
|
15
|
+
## Development
|
16
|
+
|
17
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
18
|
+
|
19
|
+
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).
|
20
|
+
|
21
|
+
## Contributing
|
22
|
+
|
23
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mrmanga. 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.
|
24
|
+
|
25
|
+
|
26
|
+
## License
|
27
|
+
|
28
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "mrmanga"
|
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
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/exe/mrmanga
ADDED
data/lib/mrmanga.rb
ADDED
data/lib/mrmanga/cli.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
module Mrmanga
|
2
|
+
class CLI
|
3
|
+
def interactive_shell
|
4
|
+
require 'highline/import'
|
5
|
+
|
6
|
+
say "Welcome to mrmanga #{Mrmanga::VERSION}!"
|
7
|
+
|
8
|
+
say 'It will create folders into CURRENT PATH!!'
|
9
|
+
|
10
|
+
regex = /http(s?):\/\/(readmanga.me|mintmanga.com)\/([\w]+)(\/?)/
|
11
|
+
|
12
|
+
link = ask 'Tell me the link of the manga you want to download (example: http://readmanga.me/your_name)? ' do |q|
|
13
|
+
q.validate = regex
|
14
|
+
end
|
15
|
+
|
16
|
+
create_pdfs = agree 'Create pdfs for volumes? (Y/n)'
|
17
|
+
|
18
|
+
say 'Parsing manga info'
|
19
|
+
|
20
|
+
manga = Mrmanga::Parser.new.get_manga(link)
|
21
|
+
|
22
|
+
say 'Parsed, downloading'
|
23
|
+
|
24
|
+
dl = Mrmanga::Downloader.new(manga)
|
25
|
+
|
26
|
+
manga.volumes.each do |vol, _|
|
27
|
+
puts "Downloading volume #{vol}"
|
28
|
+
|
29
|
+
volume = dl.download_volume(vol)
|
30
|
+
|
31
|
+
if create_pdfs
|
32
|
+
puts "Rendering pdf of Vol.#{volume[:volume]}"
|
33
|
+
Mrmanga::PdfRenderer.new(manga, volume[:volume], volume[:pages])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'down'
|
2
|
+
require 'fileutils'
|
3
|
+
require 'parallel'
|
4
|
+
|
5
|
+
module Mrmanga
|
6
|
+
class Downloader
|
7
|
+
def initialize(manga)
|
8
|
+
@manga = manga
|
9
|
+
|
10
|
+
@name = @manga.info[:info][:name]
|
11
|
+
|
12
|
+
raise "Folder '#{@name}' already exists" if File.directory?(@name)
|
13
|
+
end
|
14
|
+
|
15
|
+
def download_volume(volume)
|
16
|
+
prefix = "#{@name}/vol#{volume}"
|
17
|
+
|
18
|
+
parser = Mrmanga::Parser.new
|
19
|
+
|
20
|
+
FileUtils.mkdir_p(prefix)
|
21
|
+
|
22
|
+
downloaded = {}
|
23
|
+
|
24
|
+
@manga.volumes[volume].each do |volch|
|
25
|
+
puts "Downloading vol.#{volch[0]} ch.#{volch[1]}"
|
26
|
+
pages = parser.get_chapter_pages(@manga, volch[0], volch[1])
|
27
|
+
|
28
|
+
Parallel.each_with_index(pages, in_threads: 6) do |page, index|
|
29
|
+
puts "Downloading page #{index + 1}"
|
30
|
+
|
31
|
+
temp = Down.download(page[:link], open_timeout: 20, read_timeout: 20)
|
32
|
+
ext = File.extname(temp.path)
|
33
|
+
|
34
|
+
new_path = File.join(prefix, "#{volch[0]} - #{volch[1]} - #{index + 1}#{ext}")
|
35
|
+
|
36
|
+
FileUtils.mv temp.path, new_path
|
37
|
+
|
38
|
+
page[:file] = new_path
|
39
|
+
end
|
40
|
+
|
41
|
+
downloaded[volch[1]] = pages
|
42
|
+
end
|
43
|
+
|
44
|
+
{
|
45
|
+
volume: volume,
|
46
|
+
pages: downloaded
|
47
|
+
}
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Mrmanga
|
2
|
+
class Manga
|
3
|
+
attr_accessor :info
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@info = {}
|
7
|
+
end
|
8
|
+
|
9
|
+
def add_info(info)
|
10
|
+
@info[:info] = info
|
11
|
+
end
|
12
|
+
|
13
|
+
def add_metadata(metadata)
|
14
|
+
@info[:metadata] = metadata
|
15
|
+
end
|
16
|
+
|
17
|
+
def volumes
|
18
|
+
@info[:volch].group_by(&:first)
|
19
|
+
end
|
20
|
+
|
21
|
+
def add_volumes_and_chapters(volch)
|
22
|
+
@info[:volch] = volch
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
require 'nokogiri'
|
2
|
+
require 'faraday'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
module Mrmanga
|
6
|
+
class Parser
|
7
|
+
def get_manga(link)
|
8
|
+
parsed = parse_link(link)
|
9
|
+
|
10
|
+
noko = Nokogiri::HTML(Faraday.get(link).body)
|
11
|
+
|
12
|
+
metadata = {
|
13
|
+
Title: noko.css('h1.names > .name').first.text,
|
14
|
+
Author: noko.css('.elem_author > a.person-link').map(&:text).join(', '),
|
15
|
+
Keywords: noko.css('.elem_genre > a.element-link').map(&:text).join(', ')
|
16
|
+
}
|
17
|
+
|
18
|
+
first_link = noko.css('.read-first > a').attr('href').value
|
19
|
+
|
20
|
+
first_link.sub!(/\?mature=.?/, '')
|
21
|
+
|
22
|
+
noko_first = Nokogiri::HTML(Faraday.get("http://#{parsed[:site]}#{first_link}?mature=1").body)
|
23
|
+
|
24
|
+
volch = noko_first.css('#chapterSelectorSelect > option').map { |el| el.attr('value') }
|
25
|
+
|
26
|
+
regex_volch = /^\/[\w]+\/vol(\d+)\/(\d+).*$/
|
27
|
+
|
28
|
+
volch.map! do |vl|
|
29
|
+
match = regex_volch.match vl
|
30
|
+
|
31
|
+
raise "Wrong url: #{vl}" unless match
|
32
|
+
|
33
|
+
match.to_a.drop(1)
|
34
|
+
end
|
35
|
+
|
36
|
+
volch.reverse!
|
37
|
+
|
38
|
+
manga = Mrmanga::Manga.new
|
39
|
+
|
40
|
+
manga.add_info(
|
41
|
+
site: parsed[:site],
|
42
|
+
name: parsed[:name]
|
43
|
+
)
|
44
|
+
manga.add_metadata(metadata)
|
45
|
+
manga.add_volumes_and_chapters(volch)
|
46
|
+
|
47
|
+
manga
|
48
|
+
end
|
49
|
+
|
50
|
+
def get_chapter_pages(manga, volume, chapter)
|
51
|
+
regex = /rm_h.init\( (.*), 0, false\);/
|
52
|
+
|
53
|
+
link = "http://#{manga.info[:info][:site]}/#{manga.info[:info][:name]}/vol#{volume}/#{chapter}?mature=1"
|
54
|
+
|
55
|
+
body = Faraday.get(link).body.tr("'", '"')
|
56
|
+
|
57
|
+
match = regex.match body
|
58
|
+
|
59
|
+
raise "Unmatchable link: #{link}" unless match
|
60
|
+
|
61
|
+
JSON.parse(match[1]).map do |item|
|
62
|
+
{
|
63
|
+
link: item[1].to_s + item[0].to_s + item[2].to_s,
|
64
|
+
width: item[3],
|
65
|
+
height: item[4]
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
private
|
71
|
+
|
72
|
+
def parse_link(link)
|
73
|
+
regex = /http(s?):\/\/(readmanga.me|mintmanga.com)\/([\w]+)(\/?)/
|
74
|
+
|
75
|
+
match = regex.match(link)
|
76
|
+
|
77
|
+
raise 'Incorrect link' unless match
|
78
|
+
|
79
|
+
{
|
80
|
+
site: match[2],
|
81
|
+
name: match[3]
|
82
|
+
}
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'prawn'
|
2
|
+
require 'mini_magick'
|
3
|
+
|
4
|
+
module Mrmanga
|
5
|
+
class PdfRenderer
|
6
|
+
def initialize(manga, volume, chapters)
|
7
|
+
info = manga.info[:metadata].clone
|
8
|
+
|
9
|
+
info[:Title] = "#{info[:Title]} Vol.#{volume}"
|
10
|
+
|
11
|
+
doc = Prawn::Document.new(skip_page_creation: true, info: info)
|
12
|
+
|
13
|
+
chapters.each do |ch, pages|
|
14
|
+
puts "Chapter #{ch}"
|
15
|
+
|
16
|
+
pages.each do |page|
|
17
|
+
doc.start_new_page(margin: 0, size: [page[:width], page[:height]], layout: :portrait)
|
18
|
+
|
19
|
+
begin
|
20
|
+
doc.image(page[:file])
|
21
|
+
rescue Prawn::Errors::UnsupportedImageType
|
22
|
+
# Some pdfs may fail, so we convert them to jpg
|
23
|
+
puts "Error in image #{page[:file]}, force converting to jpg and writing jpg version"
|
24
|
+
conv = MiniMagick::Image.open(page[:file])
|
25
|
+
|
26
|
+
conv.format 'jpg'
|
27
|
+
conv.quality 100
|
28
|
+
|
29
|
+
doc.image(conv.path)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
doc.render_file "#{manga.info[:info][:name]}/vol#{volume}.pdf"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/mrmanga.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'mrmanga/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'mrmanga'
|
9
|
+
spec.version = Mrmanga::VERSION
|
10
|
+
spec.authors = ['Andrey Viktorov']
|
11
|
+
spec.email = ['andv@outlook.com']
|
12
|
+
|
13
|
+
spec.summary = 'Downloader for mintmanga/readmanga'
|
14
|
+
spec.homepage = 'https://github.com/4ndv/mrmanga'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = 'exe'
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
|
24
|
+
spec.add_dependency 'highline', '~> 1.7'
|
25
|
+
spec.add_dependency 'nokogiri', '~> 1.8'
|
26
|
+
spec.add_dependency 'faraday', '~> 0.12'
|
27
|
+
spec.add_dependency 'prawn', '~> 2.2'
|
28
|
+
spec.add_dependency 'down', '~> 4.0'
|
29
|
+
spec.add_dependency 'parallel', '~> 1.11'
|
30
|
+
spec.add_dependency 'mini_magick', '~> 4.8'
|
31
|
+
|
32
|
+
spec.add_development_dependency 'bundler', '~> 1.15'
|
33
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,189 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mrmanga
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrey Viktorov
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-07-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: highline
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.8'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.12'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.12'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: prawn
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.2'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: down
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: parallel
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.11'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.11'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: mini_magick
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.8'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '4.8'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: bundler
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.15'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.15'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rake
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '10.0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '10.0'
|
139
|
+
description:
|
140
|
+
email:
|
141
|
+
- andv@outlook.com
|
142
|
+
executables:
|
143
|
+
- mrmanga
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".gitignore"
|
148
|
+
- ".rubocop.yml"
|
149
|
+
- CODE_OF_CONDUCT.md
|
150
|
+
- Gemfile
|
151
|
+
- LICENSE.txt
|
152
|
+
- README.md
|
153
|
+
- Rakefile
|
154
|
+
- bin/console
|
155
|
+
- bin/setup
|
156
|
+
- exe/mrmanga
|
157
|
+
- lib/mrmanga.rb
|
158
|
+
- lib/mrmanga/cli.rb
|
159
|
+
- lib/mrmanga/downloader.rb
|
160
|
+
- lib/mrmanga/manga.rb
|
161
|
+
- lib/mrmanga/parser.rb
|
162
|
+
- lib/mrmanga/pdf_renderer.rb
|
163
|
+
- lib/mrmanga/version.rb
|
164
|
+
- mrmanga.gemspec
|
165
|
+
homepage: https://github.com/4ndv/mrmanga
|
166
|
+
licenses:
|
167
|
+
- MIT
|
168
|
+
metadata: {}
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '0'
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
requirements: []
|
184
|
+
rubyforge_project:
|
185
|
+
rubygems_version: 2.6.11
|
186
|
+
signing_key:
|
187
|
+
specification_version: 4
|
188
|
+
summary: Downloader for mintmanga/readmanga
|
189
|
+
test_files: []
|