mrmanga 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24a8a4a2ab87c761a9e115382e1e116d97f4fdad2cf21ea241c89d5303e937c4
4
- data.tar.gz: 7e739e2e6e74b4c291e0c71ef3a805e70d27938997a269bb453caa2690acb3ea
3
+ metadata.gz: d4429dd0d7ae37297daaade5e0d82531e44db02316f502473a775cf6e0ca249c
4
+ data.tar.gz: a6c3ed9c79e404138b03c471ec7b1a76cf362f3237e9fb91bdf0fe3e609eb364
5
5
  SHA512:
6
- metadata.gz: 16c0e1e07f17f1a933d9116a6859d84e0153852048efc5d9243422d6ce6a004e4dabc7ef8c713c0f788ea9762c15009e2cfe03f7ecb96171f46b63b2eef7ef75
7
- data.tar.gz: 820cf9c620bd56a7db1969fcbeab02bc5204c3d1efe0ce3119f550338119d628fa34bede8ff09e321831c2d0fc24c5a42b6032f8f3aa8fceca4e9464887ca954
6
+ metadata.gz: d3d86f8c96e405efa05a2c6914f070c1ae0346c15d983a934384710a994369a92ab05af879c7257b59f75a24b22282a2b70eb6e1acb99c85fb4e51145a695996
7
+ data.tar.gz: 9813ad16e432a92eea01931de2e35b750f8cfdce347f8ed6e121070214a75424d735eb5e9b0a433770fed0f83f8356331026a78d470ba378097d435da6df5fa4
data/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  [![Gem](https://img.shields.io/gem/dt/mrmanga.svg)]()
5
5
  [![Gemnasium](https://img.shields.io/gemnasium/4ndv/mrmanga.svg)]()
6
6
 
7
+
7
8
  #### Aka mintmanga/readmanga downloader
8
9
 
9
10
  ---------
@@ -24,6 +25,22 @@
24
25
 
25
26
  Требуется Ruby 2.3+, ImageMagick (или GraphicsMagick), libxml2 (для nokogiri)
26
27
 
28
+ ### Дополнительные действия для установки под MacOS Mojave(10.14+)
29
+
30
+ Для успешной сборки, в системе должен быть установлен Xcode (целиком или command line tools) и пакет с заголовками.
31
+
32
+ Ставим Xcode:
33
+
34
+ ```
35
+ $ sudo xcode-select --install
36
+ ```
37
+
38
+ После установки Xcode ставим заголовки:
39
+
40
+ ```
41
+ $ open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
42
+ ```
43
+
27
44
  ## Установка на Windows
28
45
 
29
46
  Скачайте и установите Ruby 2.4 отсюда: [https://rubyinstaller.org/downloads/](https://rubyinstaller.org/downloads/)
@@ -19,9 +19,9 @@ module Mrmanga
19
19
 
20
20
  say 'It will create folders into CURRENT PATH!!'
21
21
 
22
- regex = /http(s?):\/\/(readmanga.me|mintmanga.com)\/([\w]+)(\/?)/
22
+ regex = /http(s?):\/\/(readmanga.me|mintmanga.com|mintmanga.live)\/([\w]+)(\/?)/
23
23
 
24
- link = ask 'Tell me the link of the manga you want to download (example: http://readmanga.me/your_name)? ' do |q|
24
+ link = ask 'Tell me the link of the manga you want to download (example: https://readmanga.me/your_name)? ' do |q|
25
25
  q.validate = regex
26
26
  end
27
27
 
@@ -17,9 +17,11 @@ module Mrmanga
17
17
 
18
18
  some_chapter_link = noko.css('.chapters-link a').attr('href').value
19
19
 
20
- some_chapter_link.sub!(/\?mature=.?/, '')
20
+ some_chapter_link.sub!(/\?mtr=.?/, '')
21
21
 
22
- noko_first = Nokogiri::HTML(Faraday.get("http://#{parsed[:site]}#{some_chapter_link}?mature=1").body)
22
+ some_chapter_resp = Faraday.get("https://#{parsed[:site]}#{some_chapter_link}?mtr=1")
23
+
24
+ noko_first = Nokogiri::HTML(some_chapter_resp.body)
23
25
 
24
26
  volch_with_orig = noko_first.css('#chapterSelectorSelect > option').map { |el| [el.attr('value'), el.text] }
25
27
 
@@ -61,7 +63,7 @@ module Mrmanga
61
63
  def get_chapter_pages(manga, volume, chapter)
62
64
  regex = /rm_h.init\( (.*), 0, false\);/
63
65
 
64
- link = "http://#{manga.info[:info][:site]}/#{manga.info[:info][:name]}/vol#{volume}/#{chapter}?mature=1"
66
+ link = "https://#{manga.info[:info][:site]}/#{manga.info[:info][:name]}/vol#{volume}/#{chapter}?mtr=1"
65
67
 
66
68
  body = Faraday.get(link).body.tr("'", '"')
67
69
 
@@ -81,7 +83,7 @@ module Mrmanga
81
83
  private
82
84
 
83
85
  def parse_link(link)
84
- regex = /http(s?):\/\/(readmanga.me|mintmanga.com)\/([\w]+)(\/?)/
86
+ regex = /http(s?):\/\/(readmanga.me|mintmanga.com|mintmanga.live)\/([\w]+)(\/?)/
85
87
 
86
88
  match = regex.match(link)
87
89
 
@@ -1,3 +1,3 @@
1
1
  module Mrmanga
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.12.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mrmanga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Viktorov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-30 00:00:00.000000000 Z
11
+ date: 2019-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -195,8 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
197
  requirements: []
198
- rubyforge_project:
199
- rubygems_version: 2.7.3
198
+ rubygems_version: 3.0.3
200
199
  signing_key:
201
200
  specification_version: 4
202
201
  summary: Downloader for mintmanga/readmanga