mangadex 5.3.3.4 → 5.4.9

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: 903ed335a6c351b7b953d9324fc5b49f4e0a1a83668e7f35b9c32a20051a1e4b
4
- data.tar.gz: 404efdef00911d0fccffdc5e17425be7d7bed641207f3c5e2fb400cc03d0a7e4
3
+ metadata.gz: 498b3099b585f68a83983fd391d7b379ffa6b37ad41073d14c6b44d426691e5a
4
+ data.tar.gz: ba5b94653c90682241b2d98c9652fa3614ae7c1fc9b6a735919cea17aa7ab0b4
5
5
  SHA512:
6
- metadata.gz: 3a16a37051b34693c278657d40b071444344247bab1deac3c9ba568e028fcbe80c04dacc20a85a5a4cc4593a88a6d46fc0b7d31f4b8aa4dcf7116f1a715be0b4
7
- data.tar.gz: 5d12be35cfb8241170c19992e4e87d7df2b1496bcbbe6f072bbb61878233013441c1f6c8cc42c94caaf12ce1bb9eb66a3640101258822731ede84ebca79d10d3
6
+ metadata.gz: 8afe63e8dcd7612a0f85b86a5f9b393f12401c6fdbc21118e490739b6ae5a77790f34f323daa32b9ef4bd9b70be35f7882266b284c2ca7a02acb97992f31c262
7
+ data.tar.gz: 2cfa10681bad8af8a1968cc528e923d82d9808948d3f174111e65b1a8ffaf6792febc717d5c5cef311c83331c75c0508f9dfde2e6119621e94eb1a954d5aa836
data/Dockerfile ADDED
@@ -0,0 +1,7 @@
1
+ FROM ruby:3.0.3
2
+ RUN gem install bundler:2.2.19 -N
3
+ RUN mkdir /app
4
+ WORKDIR /app
5
+ COPY . /app
6
+
7
+ RUN bundle install --jobs 4 --retry 5 --quiet
@@ -0,0 +1,9 @@
1
+ version: "3"
2
+ services:
3
+ gem:
4
+ build: .
5
+ command: bash
6
+ stdin_open: true
7
+ tty: true
8
+ volumes:
9
+ - .:/app
@@ -18,6 +18,8 @@ module Mangadex
18
18
  :fantia,
19
19
  :tumblr,
20
20
  :youtube,
21
+ :weibo,
22
+ :naver,
21
23
  :website,
22
24
  :version,
23
25
  :created_at,
@@ -10,9 +10,7 @@ module Mangadex
10
10
  :volume,
11
11
  :chapter,
12
12
  :translated_language,
13
- :hash,
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, :page_count, :publish_at]
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] },
@@ -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
  )
@@ -10,10 +10,13 @@ module Mangadex
10
10
  :discord,
11
11
  :contact_email,
12
12
  :description,
13
+ :twitter,
13
14
  :locked,
14
15
  :official,
15
16
  :verified,
16
17
  :focused_language,
18
+ :publish_delay,
19
+ :inactive,
17
20
  :version,
18
21
  :created_at,
19
22
  :updated_at
@@ -2,9 +2,9 @@
2
2
  module Mangadex
3
3
  module Version
4
4
  MAJOR = "5"
5
- MINOR = "3"
6
- TINY = "3"
7
- PATCH = "4"
5
+ MINOR = "4"
6
+ TINY = "9"
7
+ PATCH = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
10
10
  FULL = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
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.3.3.4
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: 2021-10-09 00:00:00.000000000 Z
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.15
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