mangadex 5.3.3.4 → 5.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +7 -0
- data/docker-compose.yml +9 -0
- data/lib/mangadex/author.rb +2 -0
- data/lib/mangadex/chapter.rb +2 -9
- data/lib/mangadex/internal/definition.rb +5 -0
- data/lib/mangadex/manga.rb +3 -0
- data/lib/mangadex/scanlation_group.rb +3 -0
- data/lib/mangadex/version.rb +3 -3
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 498b3099b585f68a83983fd391d7b379ffa6b37ad41073d14c6b44d426691e5a
|
4
|
+
data.tar.gz: ba5b94653c90682241b2d98c9652fa3614ae7c1fc9b6a735919cea17aa7ab0b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8afe63e8dcd7612a0f85b86a5f9b393f12401c6fdbc21118e490739b6ae5a77790f34f323daa32b9ef4bd9b70be35f7882266b284c2ca7a02acb97992f31c262
|
7
|
+
data.tar.gz: 2cfa10681bad8af8a1968cc528e923d82d9808948d3f174111e65b1a8ffaf6792febc717d5c5cef311c83331c75c0508f9dfde2e6119621e94eb1a954d5aa836
|
data/Dockerfile
ADDED
data/docker-compose.yml
ADDED
data/lib/mangadex/author.rb
CHANGED
data/lib/mangadex/chapter.rb
CHANGED
@@ -10,9 +10,7 @@ module Mangadex
|
|
10
10
|
:volume,
|
11
11
|
:chapter,
|
12
12
|
:translated_language,
|
13
|
-
:
|
14
|
-
:data,
|
15
|
-
:data_saver,
|
13
|
+
:pages,
|
16
14
|
:last_chapter,
|
17
15
|
:uploader,
|
18
16
|
:external_url,
|
@@ -90,11 +88,6 @@ module Mangadex
|
|
90
88
|
locale&.english_name
|
91
89
|
end
|
92
90
|
|
93
|
-
sig { returns(Integer) }
|
94
|
-
def page_count
|
95
|
-
Array(data).count
|
96
|
-
end
|
97
|
-
|
98
91
|
sig { returns(T.nilable(String)) }
|
99
92
|
def preview_image_url
|
100
93
|
return if data_saver.empty?
|
@@ -110,7 +103,7 @@ module Mangadex
|
|
110
103
|
end
|
111
104
|
|
112
105
|
def self.attributes_to_inspect
|
113
|
-
[:id, :type, :title, :volume, :chapter, :
|
106
|
+
[:id, :type, :title, :volume, :chapter, :pages, :publish_at]
|
114
107
|
end
|
115
108
|
end
|
116
109
|
end
|
@@ -106,6 +106,11 @@ module Mangadex
|
|
106
106
|
{
|
107
107
|
limit: { accepts: Integer },
|
108
108
|
offset: { accepts: Integer },
|
109
|
+
ids: { accepts: [String] },
|
110
|
+
title: { accepts: String },
|
111
|
+
groups: { accepts: [String] },
|
112
|
+
uploader: { accepts: [String], converts: converts(:to_a) },
|
113
|
+
chapter: { accepts: [String], converts: converts(:to_a) },
|
109
114
|
translated_language: { accepts: String },
|
110
115
|
original_language: { accepts: [String] },
|
111
116
|
excluded_original_language: { accepts: [String] },
|
data/lib/mangadex/manga.rb
CHANGED
@@ -17,6 +17,7 @@ module Mangadex
|
|
17
17
|
:year,
|
18
18
|
:content_rating,
|
19
19
|
:tags,
|
20
|
+
:state,
|
20
21
|
:version,
|
21
22
|
:created_at,
|
22
23
|
:updated_at
|
@@ -49,6 +50,8 @@ module Mangadex
|
|
49
50
|
updated_at_since: { accepts: %r{^\d{4}-[0-1]\d-([0-2]\d|3[0-1])T([0-1]\d|2[0-3]):[0-5]\d:[0-5]\d$} },
|
50
51
|
order: { accepts: Hash },
|
51
52
|
includes: { accepts: Array, converts: to_a },
|
53
|
+
has_available_chapters: { accepts: ['0', '1', 'true', 'false'] },
|
54
|
+
group: { accepts: String },
|
52
55
|
}),
|
53
56
|
content_rating: true,
|
54
57
|
)
|
data/lib/mangadex/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangadex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinyele Cafe-Febrissy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: psych
|
@@ -163,6 +163,7 @@ files:
|
|
163
163
|
- ".ruby-version"
|
164
164
|
- ".travis.yml"
|
165
165
|
- CODE_OF_CONDUCT.md
|
166
|
+
- Dockerfile
|
166
167
|
- Gemfile
|
167
168
|
- Gemfile.lock
|
168
169
|
- LICENSE.txt
|
@@ -170,6 +171,7 @@ files:
|
|
170
171
|
- Rakefile
|
171
172
|
- bin/console
|
172
173
|
- bin/setup
|
174
|
+
- docker-compose.yml
|
173
175
|
- docs/authentication.md
|
174
176
|
- docs/context.md
|
175
177
|
- lib/config.rb
|
@@ -259,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
261
|
- !ruby/object:Gem::Version
|
260
262
|
version: '0'
|
261
263
|
requirements: []
|
262
|
-
rubygems_version: 3.2.
|
264
|
+
rubygems_version: 3.2.32
|
263
265
|
signing_key:
|
264
266
|
specification_version: 4
|
265
267
|
summary: Your next favourite Ruby gem for interacting with Mangadex.org
|