mangadex 5.3.1.2 → 5.3.1.3
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 +4 -4
- data/.github/workflows/ruby.yml +36 -0
- data/Gemfile.lock +35 -4
- data/README.md +3 -1
- data/lib/mangadex/api/response.rb +4 -4
- data/lib/mangadex/internal/request.rb +1 -1
- data/lib/mangadex/version.rb +1 -1
- data/mangadex.gemspec +2 -1
- metadata +19 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05fed5e49341d3e084b2c87611bcb3441058a230f7ccd4485c52959a39eef561
|
|
4
|
+
data.tar.gz: e094c5d36cf370bb77636c4d181b48f1be2a57346d366ff2e836fef19e159708
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbd96e94db2956aa5222e84949b58de78aa5880a91fe737001d249d3c357a812335f09ddda3451f46164c9195ae980c36808c1a74b2ceceece7408d8c9359e05
|
|
7
|
+
data.tar.gz: 1c8f6bf9a0fa198e1794988ff42534806700350cd21b7173e3e73a466ced2f8ccf247d2c96db0faebee2da7fdad1c12309d4d335e22df5d54a5e62cb2808d528
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
2
|
+
# They are provided by a third-party and are governed by
|
|
3
|
+
# separate terms of service, privacy policy, and support
|
|
4
|
+
# documentation.
|
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
|
7
|
+
|
|
8
|
+
name: Ruby
|
|
9
|
+
|
|
10
|
+
on:
|
|
11
|
+
push:
|
|
12
|
+
branches: [culture]
|
|
13
|
+
pull_request:
|
|
14
|
+
branches: [culture]
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
test:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
strategy:
|
|
20
|
+
matrix:
|
|
21
|
+
ruby-version: ["2.7", "3.0"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v2
|
|
25
|
+
- name: Set up Ruby
|
|
26
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
|
27
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
|
28
|
+
# uses: ruby/setup-ruby@v1
|
|
29
|
+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
|
30
|
+
with:
|
|
31
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
32
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
33
|
+
- name: Run tests
|
|
34
|
+
run: bundle exec rspec
|
|
35
|
+
- name: Run sorbet typecheck
|
|
36
|
+
run: bundle exec srb tc
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
mangadex (5.3.1.
|
|
4
|
+
mangadex (5.3.1.2)
|
|
5
5
|
activesupport (~> 6.1)
|
|
6
6
|
psych (~> 4.0.1)
|
|
7
7
|
rest-client (~> 2.1)
|
|
@@ -16,11 +16,16 @@ GEM
|
|
|
16
16
|
minitest (>= 5.1)
|
|
17
17
|
tzinfo (~> 2.0)
|
|
18
18
|
zeitwerk (~> 2.3)
|
|
19
|
+
addressable (2.8.0)
|
|
20
|
+
public_suffix (>= 2.0.2, < 5.0)
|
|
19
21
|
coderay (1.1.3)
|
|
20
22
|
concurrent-ruby (1.1.9)
|
|
23
|
+
crack (0.4.5)
|
|
24
|
+
rexml
|
|
21
25
|
diff-lcs (1.4.4)
|
|
22
26
|
domain_name (0.5.20190701)
|
|
23
27
|
unf (>= 0.0.5, < 1.0.0)
|
|
28
|
+
hashdiff (1.0.1)
|
|
24
29
|
http-accept (1.7.0)
|
|
25
30
|
http-cookie (1.0.4)
|
|
26
31
|
domain_name (~> 0.5)
|
|
@@ -31,17 +36,30 @@ GEM
|
|
|
31
36
|
mime-types-data (~> 3.2015)
|
|
32
37
|
mime-types-data (3.2021.0901)
|
|
33
38
|
minitest (5.14.4)
|
|
39
|
+
mustermann (1.1.1)
|
|
40
|
+
ruby2_keywords (~> 0.0.1)
|
|
34
41
|
netrc (0.11.0)
|
|
35
42
|
pry (0.14.1)
|
|
36
43
|
coderay (~> 1.1)
|
|
37
44
|
method_source (~> 1.0)
|
|
38
45
|
psych (4.0.1)
|
|
39
|
-
|
|
46
|
+
public_suffix (4.0.6)
|
|
47
|
+
rack (2.2.3)
|
|
48
|
+
rack-protection (2.1.0)
|
|
49
|
+
rack
|
|
50
|
+
rake (13.0.6)
|
|
51
|
+
request_interceptor (1.0.0)
|
|
52
|
+
activesupport (>= 4.0)
|
|
53
|
+
rack
|
|
54
|
+
sinatra
|
|
55
|
+
smart_properties (~> 1.0)
|
|
56
|
+
webmock (~> 3.0)
|
|
40
57
|
rest-client (2.1.0)
|
|
41
58
|
http-accept (>= 1.7.0, < 2.0)
|
|
42
59
|
http-cookie (>= 1.0.2, < 2.0)
|
|
43
60
|
mime-types (>= 1.16, < 4.0)
|
|
44
61
|
netrc (~> 0.8)
|
|
62
|
+
rexml (3.2.5)
|
|
45
63
|
rspec (3.10.0)
|
|
46
64
|
rspec-core (~> 3.10.0)
|
|
47
65
|
rspec-expectations (~> 3.10.0)
|
|
@@ -55,16 +73,28 @@ GEM
|
|
|
55
73
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
56
74
|
rspec-support (~> 3.10.0)
|
|
57
75
|
rspec-support (3.10.2)
|
|
76
|
+
ruby2_keywords (0.0.5)
|
|
77
|
+
sinatra (2.1.0)
|
|
78
|
+
mustermann (~> 1.0)
|
|
79
|
+
rack (~> 2.2)
|
|
80
|
+
rack-protection (= 2.1.0)
|
|
81
|
+
tilt (~> 2.0)
|
|
82
|
+
smart_properties (1.16.3)
|
|
58
83
|
sorbet (0.5.9152)
|
|
59
84
|
sorbet-static (= 0.5.9152)
|
|
60
|
-
sorbet-runtime (0.5.
|
|
85
|
+
sorbet-runtime (0.5.9155)
|
|
61
86
|
sorbet-static (0.5.9152-universal-darwin-20)
|
|
62
87
|
sorbet-static (0.5.9152-x86_64-linux)
|
|
88
|
+
tilt (2.0.10)
|
|
63
89
|
tzinfo (2.0.4)
|
|
64
90
|
concurrent-ruby (~> 1.0)
|
|
65
91
|
unf (0.1.4)
|
|
66
92
|
unf_ext
|
|
67
93
|
unf_ext (0.0.8)
|
|
94
|
+
webmock (3.14.0)
|
|
95
|
+
addressable (>= 2.8.0)
|
|
96
|
+
crack (>= 0.3.2)
|
|
97
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
|
68
98
|
zeitwerk (2.4.2)
|
|
69
99
|
|
|
70
100
|
PLATFORMS
|
|
@@ -75,7 +105,8 @@ DEPENDENCIES
|
|
|
75
105
|
bundler (~> 2.2.19)
|
|
76
106
|
mangadex!
|
|
77
107
|
pry
|
|
78
|
-
rake (~>
|
|
108
|
+
rake (~> 13.0)
|
|
109
|
+
request_interceptor (~> 1.0.0)
|
|
79
110
|
rspec (~> 3.0)
|
|
80
111
|
sorbet
|
|
81
112
|
|
data/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<a href="https://rubygems.org/gems/mangadex"><img src="https://badgen.net/rubygems/v/mangadex" /></a>
|
|
2
|
+
|
|
1
3
|
# Mangadex
|
|
2
4
|
|
|
3
5
|
Welcome to `mangadex`, your next favourite Ruby gem for interacting with [Mangadex](https://mangadex.org).
|
|
@@ -20,7 +22,7 @@ Or install it yourself as:
|
|
|
20
22
|
|
|
21
23
|
## Usage
|
|
22
24
|
|
|
23
|
-
Please note that I tried my best to follow Mangadex's naming conventions for [their documentation](https://api.mangadex.org).
|
|
25
|
+
Please note that I tried my best to follow Mangadex's naming conventions for [their documentation](https://api.mangadex.org). Track the progress [here in an issue](https://github.com/thedrummeraki/mangadex/issues/5).
|
|
24
26
|
To find out how to use the gem, you're welcome to [check this out](lib/mangadex).
|
|
25
27
|
|
|
26
28
|
## Development
|
|
@@ -40,6 +40,10 @@ module Mangadex
|
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
def errored?
|
|
44
|
+
Array(errors).any?
|
|
45
|
+
end
|
|
46
|
+
|
|
43
47
|
private
|
|
44
48
|
|
|
45
49
|
def self.coerce_errors(data)
|
|
@@ -95,10 +99,6 @@ module Mangadex
|
|
|
95
99
|
),
|
|
96
100
|
)
|
|
97
101
|
end
|
|
98
|
-
|
|
99
|
-
def errored?
|
|
100
|
-
Array(errors).any?
|
|
101
|
-
end
|
|
102
102
|
end
|
|
103
103
|
end
|
|
104
104
|
end
|
|
@@ -68,7 +68,7 @@ module Mangadex
|
|
|
68
68
|
end
|
|
69
69
|
rescue RestClient::Exception => error
|
|
70
70
|
if error.response.body
|
|
71
|
-
raw ? error.response.body : Mangadex::Api::Response.coerce(JSON.parse(error.response.body))
|
|
71
|
+
raw ? error.response.body : Mangadex::Api::Response.coerce(JSON.parse(error.response.body)) rescue raise error
|
|
72
72
|
else
|
|
73
73
|
raise error
|
|
74
74
|
end
|
data/lib/mangadex/version.rb
CHANGED
data/mangadex.gemspec
CHANGED
|
@@ -28,8 +28,9 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.add_dependency "sorbet-runtime"
|
|
29
29
|
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 2.2.19"
|
|
31
|
-
spec.add_development_dependency "rake", "~>
|
|
31
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
|
32
32
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
33
|
+
spec.add_development_dependency "request_interceptor", "~> 1.0.0"
|
|
33
34
|
spec.add_development_dependency "pry"
|
|
34
35
|
spec.add_development_dependency "sorbet"
|
|
35
36
|
end
|
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.1.
|
|
4
|
+
version: 5.3.1.3
|
|
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-09-
|
|
11
|
+
date: 2021-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: psych
|
|
@@ -86,14 +86,14 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '
|
|
89
|
+
version: '13.0'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '
|
|
96
|
+
version: '13.0'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: rspec
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -108,6 +108,20 @@ dependencies:
|
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '3.0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: request_interceptor
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - "~>"
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: 1.0.0
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - "~>"
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: 1.0.0
|
|
111
125
|
- !ruby/object:Gem::Dependency
|
|
112
126
|
name: pry
|
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -143,6 +157,7 @@ executables: []
|
|
|
143
157
|
extensions: []
|
|
144
158
|
extra_rdoc_files: []
|
|
145
159
|
files:
|
|
160
|
+
- ".github/workflows/ruby.yml"
|
|
146
161
|
- ".gitignore"
|
|
147
162
|
- ".rspec"
|
|
148
163
|
- ".ruby-version"
|