pokeapi_client 1.0.0 → 1.1.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 +4 -4
- data/Gemfile.lock +9 -9
- data/README.md +5 -5
- data/lib/pokeapi_client/api/ability_api.rb +1 -1
- data/lib/pokeapi_client/api/berry_api.rb +1 -1
- data/lib/pokeapi_client/api/berry_firmness_api.rb +1 -1
- data/lib/pokeapi_client/api/berry_flavor_api.rb +1 -1
- data/lib/pokeapi_client/api/characteristic_api.rb +1 -1
- data/lib/pokeapi_client/api/contest_effect_api.rb +1 -1
- data/lib/pokeapi_client/api/contest_type_api.rb +1 -1
- data/lib/pokeapi_client/api/egg_group_api.rb +1 -1
- data/lib/pokeapi_client/api/encounter_condition_api.rb +1 -1
- data/lib/pokeapi_client/api/encounter_condition_value_api.rb +1 -1
- data/lib/pokeapi_client/api/encounter_method_api.rb +1 -1
- data/lib/pokeapi_client/api/evolution_chain_api.rb +1 -1
- data/lib/pokeapi_client/api/evolution_trigger_api.rb +1 -1
- data/lib/pokeapi_client/api/gender_api.rb +1 -1
- data/lib/pokeapi_client/api/generation_api.rb +1 -1
- data/lib/pokeapi_client/api/growth_rate_api.rb +1 -1
- data/lib/pokeapi_client/api/item_api.rb +1 -1
- data/lib/pokeapi_client/api/item_attribute_api.rb +1 -1
- data/lib/pokeapi_client/api/item_category_api.rb +1 -1
- data/lib/pokeapi_client/api/item_fling_effect_api.rb +1 -1
- data/lib/pokeapi_client/api/item_pocket_api.rb +1 -1
- data/lib/pokeapi_client/api/language_api.rb +1 -1
- data/lib/pokeapi_client/api/location_api.rb +1 -1
- data/lib/pokeapi_client/api/location_area_api.rb +1 -1
- data/lib/pokeapi_client/api/machine_api.rb +1 -1
- data/lib/pokeapi_client/api/move_ailment_api.rb +1 -1
- data/lib/pokeapi_client/api/move_api.rb +1 -1
- data/lib/pokeapi_client/api/move_battle_style_api.rb +1 -1
- data/lib/pokeapi_client/api/move_category_api.rb +1 -1
- data/lib/pokeapi_client/api/move_damage_class_api.rb +1 -1
- data/lib/pokeapi_client/api/move_learn_method_api.rb +1 -1
- data/lib/pokeapi_client/api/move_target_api.rb +1 -1
- data/lib/pokeapi_client/api/nature_api.rb +1 -1
- data/lib/pokeapi_client/api/pal_park_area_api.rb +1 -1
- data/lib/pokeapi_client/api/pokeathlon_stat_api.rb +1 -1
- data/lib/pokeapi_client/api/pokedex_api.rb +1 -1
- data/lib/pokeapi_client/api/pokemon_api.rb +1 -1
- data/lib/pokeapi_client/api/pokemon_color_api.rb +1 -1
- data/lib/pokeapi_client/api/pokemon_form_api.rb +1 -1
- data/lib/pokeapi_client/api/pokemon_habitat_api.rb +1 -1
- data/lib/pokeapi_client/api/pokemon_shape_api.rb +1 -1
- data/lib/pokeapi_client/api/pokemon_species_api.rb +1 -1
- data/lib/pokeapi_client/api/region_api.rb +1 -1
- data/lib/pokeapi_client/api/stat_api.rb +1 -1
- data/lib/pokeapi_client/api/super_contest_effect_api.rb +1 -1
- data/lib/pokeapi_client/api/type_api.rb +1 -1
- data/lib/pokeapi_client/api/version_api.rb +1 -1
- data/lib/pokeapi_client/api/version_group_api.rb +1 -1
- data/lib/pokeapi_client/api_client.rb +3 -3
- data/lib/pokeapi_client/api_error.rb +1 -1
- data/lib/pokeapi_client/configuration.rb +1 -1
- data/lib/pokeapi_client/version.rb +2 -2
- data/lib/pokeapi_client.rb +1 -1
- data/pokeapi_client.gemspec +1 -1
- data/spec/api/ability_api_spec.rb +1 -1
- data/spec/api/berry_api_spec.rb +1 -1
- data/spec/api/berry_firmness_api_spec.rb +1 -1
- data/spec/api/berry_flavor_api_spec.rb +1 -1
- data/spec/api/characteristic_api_spec.rb +1 -1
- data/spec/api/contest_effect_api_spec.rb +1 -1
- data/spec/api/contest_type_api_spec.rb +1 -1
- data/spec/api/egg_group_api_spec.rb +1 -1
- data/spec/api/encounter_condition_api_spec.rb +1 -1
- data/spec/api/encounter_condition_value_api_spec.rb +1 -1
- data/spec/api/encounter_method_api_spec.rb +1 -1
- data/spec/api/evolution_chain_api_spec.rb +1 -1
- data/spec/api/evolution_trigger_api_spec.rb +1 -1
- data/spec/api/gender_api_spec.rb +1 -1
- data/spec/api/generation_api_spec.rb +1 -1
- data/spec/api/growth_rate_api_spec.rb +1 -1
- data/spec/api/item_api_spec.rb +1 -1
- data/spec/api/item_attribute_api_spec.rb +1 -1
- data/spec/api/item_category_api_spec.rb +1 -1
- data/spec/api/item_fling_effect_api_spec.rb +1 -1
- data/spec/api/item_pocket_api_spec.rb +1 -1
- data/spec/api/language_api_spec.rb +1 -1
- data/spec/api/location_api_spec.rb +1 -1
- data/spec/api/location_area_api_spec.rb +1 -1
- data/spec/api/machine_api_spec.rb +1 -1
- data/spec/api/move_ailment_api_spec.rb +1 -1
- data/spec/api/move_api_spec.rb +1 -1
- data/spec/api/move_battle_style_api_spec.rb +1 -1
- data/spec/api/move_category_api_spec.rb +1 -1
- data/spec/api/move_damage_class_api_spec.rb +1 -1
- data/spec/api/move_learn_method_api_spec.rb +1 -1
- data/spec/api/move_target_api_spec.rb +1 -1
- data/spec/api/nature_api_spec.rb +1 -1
- data/spec/api/pal_park_area_api_spec.rb +1 -1
- data/spec/api/pokeathlon_stat_api_spec.rb +1 -1
- data/spec/api/pokedex_api_spec.rb +1 -1
- data/spec/api/pokemon_api_spec.rb +1 -1
- data/spec/api/pokemon_color_api_spec.rb +1 -1
- data/spec/api/pokemon_form_api_spec.rb +1 -1
- data/spec/api/pokemon_habitat_api_spec.rb +1 -1
- data/spec/api/pokemon_shape_api_spec.rb +1 -1
- data/spec/api/pokemon_species_api_spec.rb +1 -1
- data/spec/api/region_api_spec.rb +1 -1
- data/spec/api/stat_api_spec.rb +1 -1
- data/spec/api/super_contest_effect_api_spec.rb +1 -1
- data/spec/api/type_api_spec.rb +1 -1
- data/spec/api/version_api_spec.rb +1 -1
- data/spec/api/version_group_api_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +41 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c8b125c0efac57e5c1c35b77f427c2df98445a8205e11003846689dad877583
|
4
|
+
data.tar.gz: 40bd83be3f152e84cf3ae3068d8b45fd4762df12f1bdaa723135727e41f3529e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeeeabd3e1c2cdeb2f284433943cb797b03be372ca718b6acb9d101180e5b3225ec2b9ec65a1b76e4daf12a93e0ee7a2a4b39d670723b2275b0502c5c610407d
|
7
|
+
data.tar.gz: 1141d58858d8eb7976b5e5888c104e62600c4628371b3a15f87483f67025da2102e207d759c3337cc5660f134cbd71e784ff9af1b4fbdf953919a2749167bb80
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pokeapi_client (1.
|
4
|
+
pokeapi_client (1.1.0)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -13,11 +13,11 @@ GEM
|
|
13
13
|
diff-lcs (1.5.1)
|
14
14
|
ethon (0.16.0)
|
15
15
|
ffi (>= 1.15.0)
|
16
|
-
ffi (1.
|
16
|
+
ffi (1.17.0)
|
17
17
|
jaro_winkler (1.5.6)
|
18
|
-
method_source (1.
|
19
|
-
parallel (1.
|
20
|
-
parser (3.3.0
|
18
|
+
method_source (1.1.0)
|
19
|
+
parallel (1.25.1)
|
20
|
+
parser (3.3.3.0)
|
21
21
|
ast (~> 2.4.1)
|
22
22
|
racc
|
23
23
|
pry (0.14.2)
|
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
pry (>= 0.13, < 0.15)
|
29
29
|
psych (5.1.2)
|
30
30
|
stringio
|
31
|
-
racc (1.
|
31
|
+
racc (1.8.0)
|
32
32
|
rainbow (3.1.1)
|
33
33
|
rake (13.0.6)
|
34
34
|
rspec (3.13.0)
|
@@ -37,10 +37,10 @@ GEM
|
|
37
37
|
rspec-mocks (~> 3.13.0)
|
38
38
|
rspec-core (3.13.0)
|
39
39
|
rspec-support (~> 3.13.0)
|
40
|
-
rspec-expectations (3.13.
|
40
|
+
rspec-expectations (3.13.1)
|
41
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
42
|
rspec-support (~> 3.13.0)
|
43
|
-
rspec-mocks (3.13.
|
43
|
+
rspec-mocks (3.13.1)
|
44
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
45
|
rspec-support (~> 3.13.0)
|
46
46
|
rspec-support (3.13.1)
|
@@ -53,7 +53,7 @@ GEM
|
|
53
53
|
ruby-progressbar (~> 1.7)
|
54
54
|
unicode-display_width (>= 1.4.0, < 1.6)
|
55
55
|
ruby-progressbar (1.13.0)
|
56
|
-
stringio (3.1.
|
56
|
+
stringio (3.1.1)
|
57
57
|
typhoeus (1.4.1)
|
58
58
|
ethon (>= 0.9.0)
|
59
59
|
unicode-display_width (1.5.0)
|
data/README.md
CHANGED
@@ -7,8 +7,8 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 20220523
|
10
|
-
- Package version: 1.
|
11
|
-
- Generator version: 7.
|
10
|
+
- Package version: 1.1.0
|
11
|
+
- Generator version: 7.6.0
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [https://github.com/oapicf/pokeapi-clients](https://github.com/oapicf/pokeapi-clients)
|
14
14
|
|
@@ -25,16 +25,16 @@ gem build pokeapi_client.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./pokeapi_client-1.
|
28
|
+
gem install ./pokeapi_client-1.1.0.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./pokeapi_client-1.
|
31
|
+
(for development, run `gem install --dev ./pokeapi_client-1.1.0.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'pokeapi_client', '~> 1.
|
37
|
+
gem 'pokeapi_client', '~> 1.1.0'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 20220523
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -211,7 +211,7 @@ module PokeApiClient
|
|
211
211
|
# @param [String] mime MIME
|
212
212
|
# @return [Boolean] True if the MIME is application/json
|
213
213
|
def json_mime?(mime)
|
214
|
-
(mime == '*/*') || !(mime =~
|
214
|
+
(mime == '*/*') || !(mime =~ /^Application\/.*json(?!p)(;.*)?/i).nil?
|
215
215
|
end
|
216
216
|
|
217
217
|
# Deserialize the response to the given return type.
|
@@ -290,7 +290,7 @@ module PokeApiClient
|
|
290
290
|
# @param [String] filename the filename to be sanitized
|
291
291
|
# @return [String] the sanitized filename
|
292
292
|
def sanitize_filename(filename)
|
293
|
-
filename.
|
293
|
+
filename.split(/[\/\\]/).last
|
294
294
|
end
|
295
295
|
|
296
296
|
def build_request_url(path, opts = {})
|
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: 20220523
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PokeApiClient
|
14
|
-
VERSION = '1.
|
14
|
+
VERSION = '1.1.0'
|
15
15
|
end
|