mangadex 5.4.16 → 5.5.6

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: 218bf0139f5a11b6445ad29f382ad9f9257414088727ab4afc9c87d153f31518
4
- data.tar.gz: 03ce56cb2634505f7f1e94a0ed522aa7d2579d2039605302ab3fb43e64a9d3a2
3
+ metadata.gz: 9af83b63f2dd0e3b6a23a1536fbf726979ba352a28d9625f8056366709520c19
4
+ data.tar.gz: 92587895df8db92ef0910f2e3ee6adb6b0a92891f77e358a90a49f08a24b8eb2
5
5
  SHA512:
6
- metadata.gz: 3641d66ea546c28dbb34c7a2ee4fdd696883d27c195d17c6da31cfb7520a945921cf0dfbbde2ad81831c7f2fbc49810f945f9a317aa90b1514a78e83bc2ebba5
7
- data.tar.gz: fb15e12d3a7c3bffa5b234c5ca6e3ca5a6f4238e7588e05f8ede946b9357391bc6cd29152d8f6178b1325fa6d1b03ce81a785664679cd68f7684ef622573f4b3
6
+ metadata.gz: a236969d31689030cc2695cbb2f5faaba6a449e950c651a8bf008967580e1ca81989b997c33d9d69b594d5f81406c4797300388dc01d6446c010506ab4e81b67
7
+ data.tar.gz: 9bc990f30a1a2962f40cce8b3bff9b95903a17b46840708f1016ee0b4dffe5e990a4a2ecb0d24c461a160d0947b0ada7034840f281de0c620ad7e55ad9b86959
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mangadex (5.4.15)
4
+ mangadex (5.5.6)
5
5
  psych (~> 4.0.1)
6
6
  rest-client (~> 2.1)
7
7
  sorbet-runtime
@@ -81,7 +81,7 @@ GEM
81
81
  smart_properties (1.17.0)
82
82
  sorbet (0.5.9619)
83
83
  sorbet-static (= 0.5.9619)
84
- sorbet-runtime (0.5.9619)
84
+ sorbet-runtime (0.5.9724)
85
85
  sorbet-static (0.5.9619-x86_64-linux)
86
86
  stringio (3.0.1)
87
87
  tilt (2.0.10)
data/lib/extensions.rb CHANGED
@@ -69,6 +69,10 @@ class Object
69
69
  def to_param
70
70
  to_s
71
71
  end
72
+
73
+ def to_query(key)
74
+ "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}"
75
+ end
72
76
  end
73
77
 
74
78
  class NilClass
@@ -20,6 +20,7 @@ module Mangadex
20
20
  :state,
21
21
  :version,
22
22
  :chapter_numbers_reset_on_new_volume,
23
+ :available_translated_languages,
23
24
  :created_at,
24
25
  :updated_at
25
26
 
@@ -117,6 +118,7 @@ module Mangadex
117
118
  '/manga/random',
118
119
  Mangadex::Internal::Definition.validate(args, {
119
120
  includes: { accepts: Array },
121
+ content_rating: { accepts: %w(safe suggestive erotica pornographic), converts: to_a },
120
122
  })
121
123
  )
122
124
  end
@@ -2,8 +2,8 @@
2
2
  module Mangadex
3
3
  module Version
4
4
  MAJOR = "5"
5
- MINOR = "4"
6
- TINY = "16"
5
+ MINOR = "5"
6
+ TINY = "6"
7
7
  PATCH = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY].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.4.16
4
+ version: 5.5.6
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: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2022-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: psych