pokeapi_client 1.0.0 → 1.2.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 +94 -25
- data/README.md +5 -5
- data/bin/byebug +1 -12
- data/bin/coderay +1 -12
- data/bin/htmldiff +1 -12
- data/bin/ldiff +1 -12
- data/bin/pry +1 -12
- data/bin/racc +1 -12
- data/bin/rake +1 -12
- data/bin/rspec +1 -12
- data/bin/rubocop +1 -12
- data/bin/ruby-parse +1 -12
- data/bin/ruby-rewrite +1 -12
- data/lib/pokeapi_client/api/ability_api.rb +3 -3
- data/lib/pokeapi_client/api/berry_api.rb +3 -3
- data/lib/pokeapi_client/api/berry_firmness_api.rb +3 -3
- data/lib/pokeapi_client/api/berry_flavor_api.rb +3 -3
- data/lib/pokeapi_client/api/characteristic_api.rb +3 -3
- data/lib/pokeapi_client/api/contest_effect_api.rb +3 -3
- data/lib/pokeapi_client/api/contest_type_api.rb +3 -3
- data/lib/pokeapi_client/api/egg_group_api.rb +3 -3
- data/lib/pokeapi_client/api/encounter_condition_api.rb +3 -3
- data/lib/pokeapi_client/api/encounter_condition_value_api.rb +3 -3
- data/lib/pokeapi_client/api/encounter_method_api.rb +3 -3
- data/lib/pokeapi_client/api/evolution_chain_api.rb +3 -3
- data/lib/pokeapi_client/api/evolution_trigger_api.rb +3 -3
- data/lib/pokeapi_client/api/gender_api.rb +3 -3
- data/lib/pokeapi_client/api/generation_api.rb +3 -3
- data/lib/pokeapi_client/api/growth_rate_api.rb +3 -3
- data/lib/pokeapi_client/api/item_api.rb +3 -3
- data/lib/pokeapi_client/api/item_attribute_api.rb +3 -3
- data/lib/pokeapi_client/api/item_category_api.rb +3 -3
- data/lib/pokeapi_client/api/item_fling_effect_api.rb +3 -3
- data/lib/pokeapi_client/api/item_pocket_api.rb +3 -3
- data/lib/pokeapi_client/api/language_api.rb +3 -3
- data/lib/pokeapi_client/api/location_api.rb +3 -3
- data/lib/pokeapi_client/api/location_area_api.rb +3 -3
- data/lib/pokeapi_client/api/machine_api.rb +3 -3
- data/lib/pokeapi_client/api/move_ailment_api.rb +3 -3
- data/lib/pokeapi_client/api/move_api.rb +3 -3
- data/lib/pokeapi_client/api/move_battle_style_api.rb +3 -3
- data/lib/pokeapi_client/api/move_category_api.rb +3 -3
- data/lib/pokeapi_client/api/move_damage_class_api.rb +3 -3
- data/lib/pokeapi_client/api/move_learn_method_api.rb +3 -3
- data/lib/pokeapi_client/api/move_target_api.rb +3 -3
- data/lib/pokeapi_client/api/nature_api.rb +3 -3
- data/lib/pokeapi_client/api/pal_park_area_api.rb +3 -3
- data/lib/pokeapi_client/api/pokeathlon_stat_api.rb +3 -3
- data/lib/pokeapi_client/api/pokedex_api.rb +3 -3
- data/lib/pokeapi_client/api/pokemon_api.rb +3 -3
- data/lib/pokeapi_client/api/pokemon_color_api.rb +3 -3
- data/lib/pokeapi_client/api/pokemon_form_api.rb +3 -3
- data/lib/pokeapi_client/api/pokemon_habitat_api.rb +3 -3
- data/lib/pokeapi_client/api/pokemon_shape_api.rb +3 -3
- data/lib/pokeapi_client/api/pokemon_species_api.rb +3 -3
- data/lib/pokeapi_client/api/region_api.rb +3 -3
- data/lib/pokeapi_client/api/stat_api.rb +3 -3
- data/lib/pokeapi_client/api/super_contest_effect_api.rb +3 -3
- data/lib/pokeapi_client/api/type_api.rb +3 -3
- data/lib/pokeapi_client/api/version_api.rb +3 -3
- data/lib/pokeapi_client/api/version_group_api.rb +3 -3
- data/lib/pokeapi_client/api_client.rb +16 -13
- data/lib/pokeapi_client/api_error.rb +1 -1
- data/lib/pokeapi_client/api_model_base.rb +88 -0
- data/lib/pokeapi_client/configuration.rb +11 -1
- data/lib/pokeapi_client/version.rb +2 -2
- data/lib/pokeapi_client.rb +2 -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 +42 -42
- data/bin/bundle +0 -109
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pokeapi_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI Clients Factory
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -61,7 +61,6 @@ files:
|
|
|
61
61
|
- Gemfile.lock
|
|
62
62
|
- README.md
|
|
63
63
|
- Rakefile
|
|
64
|
-
- bin/bundle
|
|
65
64
|
- bin/byebug
|
|
66
65
|
- bin/coderay
|
|
67
66
|
- bin/htmldiff
|
|
@@ -173,6 +172,7 @@ files:
|
|
|
173
172
|
- lib/pokeapi_client/api/version_group_api.rb
|
|
174
173
|
- lib/pokeapi_client/api_client.rb
|
|
175
174
|
- lib/pokeapi_client/api_error.rb
|
|
175
|
+
- lib/pokeapi_client/api_model_base.rb
|
|
176
176
|
- lib/pokeapi_client/configuration.rb
|
|
177
177
|
- lib/pokeapi_client/version.rb
|
|
178
178
|
- pokeapi_client.gemspec
|
|
@@ -229,7 +229,7 @@ homepage: https://github.com/oapicf/pokeapi-clients
|
|
|
229
229
|
licenses:
|
|
230
230
|
- MIT
|
|
231
231
|
metadata: {}
|
|
232
|
-
post_install_message:
|
|
232
|
+
post_install_message:
|
|
233
233
|
rdoc_options: []
|
|
234
234
|
require_paths:
|
|
235
235
|
- lib
|
|
@@ -244,57 +244,57 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
244
244
|
- !ruby/object:Gem::Version
|
|
245
245
|
version: '0'
|
|
246
246
|
requirements: []
|
|
247
|
-
rubygems_version: 3.
|
|
248
|
-
signing_key:
|
|
247
|
+
rubygems_version: 3.4.20
|
|
248
|
+
signing_key:
|
|
249
249
|
specification_version: 4
|
|
250
250
|
summary: Ruby Gem
|
|
251
251
|
test_files:
|
|
252
|
-
- spec/api/
|
|
253
|
-
- spec/api/
|
|
252
|
+
- spec/api/move_learn_method_api_spec.rb
|
|
253
|
+
- spec/api/nature_api_spec.rb
|
|
254
|
+
- spec/api/move_battle_style_api_spec.rb
|
|
255
|
+
- spec/api/item_pocket_api_spec.rb
|
|
256
|
+
- spec/api/super_contest_effect_api_spec.rb
|
|
257
|
+
- spec/api/encounter_condition_api_spec.rb
|
|
254
258
|
- spec/api/pokemon_habitat_api_spec.rb
|
|
255
|
-
- spec/api/
|
|
256
|
-
- spec/api/
|
|
259
|
+
- spec/api/contest_effect_api_spec.rb
|
|
260
|
+
- spec/api/move_damage_class_api_spec.rb
|
|
261
|
+
- spec/api/move_api_spec.rb
|
|
262
|
+
- spec/api/language_api_spec.rb
|
|
263
|
+
- spec/api/type_api_spec.rb
|
|
257
264
|
- spec/api/ability_api_spec.rb
|
|
258
|
-
- spec/api/
|
|
265
|
+
- spec/api/evolution_trigger_api_spec.rb
|
|
266
|
+
- spec/api/pokedex_api_spec.rb
|
|
267
|
+
- spec/api/item_api_spec.rb
|
|
268
|
+
- spec/api/item_attribute_api_spec.rb
|
|
269
|
+
- spec/api/pal_park_area_api_spec.rb
|
|
259
270
|
- spec/api/evolution_chain_api_spec.rb
|
|
260
|
-
- spec/api/version_group_api_spec.rb
|
|
261
271
|
- spec/api/stat_api_spec.rb
|
|
262
|
-
- spec/api/
|
|
263
|
-
- spec/api/
|
|
272
|
+
- spec/api/egg_group_api_spec.rb
|
|
273
|
+
- spec/api/pokemon_color_api_spec.rb
|
|
274
|
+
- spec/api/machine_api_spec.rb
|
|
275
|
+
- spec/api/item_fling_effect_api_spec.rb
|
|
264
276
|
- spec/api/pokemon_species_api_spec.rb
|
|
265
|
-
- spec/api/
|
|
266
|
-
- spec/api/
|
|
267
|
-
- spec/api/move_learn_method_api_spec.rb
|
|
277
|
+
- spec/api/pokemon_api_spec.rb
|
|
278
|
+
- spec/api/move_target_api_spec.rb
|
|
268
279
|
- spec/api/characteristic_api_spec.rb
|
|
269
|
-
- spec/api/
|
|
270
|
-
- spec/api/
|
|
271
|
-
- spec/api/
|
|
272
|
-
- spec/api/contest_effect_api_spec.rb
|
|
280
|
+
- spec/api/encounter_condition_value_api_spec.rb
|
|
281
|
+
- spec/api/contest_type_api_spec.rb
|
|
282
|
+
- spec/api/pokeathlon_stat_api_spec.rb
|
|
273
283
|
- spec/api/item_category_api_spec.rb
|
|
274
|
-
- spec/api/
|
|
284
|
+
- spec/api/location_api_spec.rb
|
|
285
|
+
- spec/api/encounter_method_api_spec.rb
|
|
275
286
|
- spec/api/region_api_spec.rb
|
|
287
|
+
- spec/api/gender_api_spec.rb
|
|
288
|
+
- spec/api/version_group_api_spec.rb
|
|
289
|
+
- spec/api/move_category_api_spec.rb
|
|
290
|
+
- spec/api/version_api_spec.rb
|
|
291
|
+
- spec/api/pokemon_form_api_spec.rb
|
|
292
|
+
- spec/api/generation_api_spec.rb
|
|
276
293
|
- spec/api/move_ailment_api_spec.rb
|
|
277
|
-
- spec/api/move_damage_class_api_spec.rb
|
|
278
294
|
- spec/api/pokemon_shape_api_spec.rb
|
|
279
|
-
- spec/api/
|
|
280
|
-
- spec/api/type_api_spec.rb
|
|
281
|
-
- spec/api/berry_firmness_api_spec.rb
|
|
282
|
-
- spec/api/encounter_method_api_spec.rb
|
|
283
|
-
- spec/api/move_target_api_spec.rb
|
|
284
|
-
- spec/api/contest_type_api_spec.rb
|
|
285
|
-
- spec/api/super_contest_effect_api_spec.rb
|
|
295
|
+
- spec/api/berry_flavor_api_spec.rb
|
|
286
296
|
- spec/api/location_area_api_spec.rb
|
|
287
|
-
- spec/api/pokemon_api_spec.rb
|
|
288
|
-
- spec/api/gender_api_spec.rb
|
|
289
|
-
- spec/api/item_api_spec.rb
|
|
290
|
-
- spec/api/nature_api_spec.rb
|
|
291
|
-
- spec/api/pokeathlon_stat_api_spec.rb
|
|
292
|
-
- spec/api/machine_api_spec.rb
|
|
293
|
-
- spec/api/move_battle_style_api_spec.rb
|
|
294
297
|
- spec/api/growth_rate_api_spec.rb
|
|
295
|
-
- spec/api/
|
|
296
|
-
- spec/api/item_pocket_api_spec.rb
|
|
297
|
-
- spec/api/version_api_spec.rb
|
|
298
|
-
- spec/api/egg_group_api_spec.rb
|
|
298
|
+
- spec/api/berry_firmness_api_spec.rb
|
|
299
299
|
- spec/api/berry_api_spec.rb
|
|
300
300
|
- spec/spec_helper.rb
|
data/bin/bundle
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby2.7
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
# This file was generated by Bundler.
|
|
6
|
-
#
|
|
7
|
-
# The application 'bundle' is installed as part of a gem, and
|
|
8
|
-
# this file is here to facilitate running it.
|
|
9
|
-
#
|
|
10
|
-
|
|
11
|
-
require "rubygems"
|
|
12
|
-
|
|
13
|
-
m = Module.new do
|
|
14
|
-
module_function
|
|
15
|
-
|
|
16
|
-
def invoked_as_script?
|
|
17
|
-
File.expand_path($0) == File.expand_path(__FILE__)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
def env_var_version
|
|
21
|
-
ENV["BUNDLER_VERSION"]
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
def cli_arg_version
|
|
25
|
-
return unless invoked_as_script? # don't want to hijack other binstubs
|
|
26
|
-
return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
|
|
27
|
-
bundler_version = nil
|
|
28
|
-
update_index = nil
|
|
29
|
-
ARGV.each_with_index do |a, i|
|
|
30
|
-
if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
|
|
31
|
-
bundler_version = a
|
|
32
|
-
end
|
|
33
|
-
next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
|
|
34
|
-
bundler_version = $1
|
|
35
|
-
update_index = i
|
|
36
|
-
end
|
|
37
|
-
bundler_version
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def gemfile
|
|
41
|
-
gemfile = ENV["BUNDLE_GEMFILE"]
|
|
42
|
-
return gemfile if gemfile && !gemfile.empty?
|
|
43
|
-
|
|
44
|
-
File.expand_path("../Gemfile", __dir__)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
def lockfile
|
|
48
|
-
lockfile =
|
|
49
|
-
case File.basename(gemfile)
|
|
50
|
-
when "gems.rb" then gemfile.sub(/\.rb$/, ".locked")
|
|
51
|
-
else "#{gemfile}.lock"
|
|
52
|
-
end
|
|
53
|
-
File.expand_path(lockfile)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def lockfile_version
|
|
57
|
-
return unless File.file?(lockfile)
|
|
58
|
-
lockfile_contents = File.read(lockfile)
|
|
59
|
-
return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
|
|
60
|
-
Regexp.last_match(1)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
def bundler_requirement
|
|
64
|
-
@bundler_requirement ||=
|
|
65
|
-
env_var_version ||
|
|
66
|
-
cli_arg_version ||
|
|
67
|
-
bundler_requirement_for(lockfile_version)
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
def bundler_requirement_for(version)
|
|
71
|
-
return "#{Gem::Requirement.default}.a" unless version
|
|
72
|
-
|
|
73
|
-
bundler_gem_version = Gem::Version.new(version)
|
|
74
|
-
|
|
75
|
-
bundler_gem_version.approximate_recommendation
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
def load_bundler!
|
|
79
|
-
ENV["BUNDLE_GEMFILE"] ||= gemfile
|
|
80
|
-
|
|
81
|
-
activate_bundler
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
def activate_bundler
|
|
85
|
-
gem_error = activation_error_handling do
|
|
86
|
-
gem "bundler", bundler_requirement
|
|
87
|
-
end
|
|
88
|
-
return if gem_error.nil?
|
|
89
|
-
require_error = activation_error_handling do
|
|
90
|
-
require "bundler/version"
|
|
91
|
-
end
|
|
92
|
-
return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
|
|
93
|
-
warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
|
|
94
|
-
exit 42
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
def activation_error_handling
|
|
98
|
-
yield
|
|
99
|
-
nil
|
|
100
|
-
rescue StandardError, LoadError => e
|
|
101
|
-
e
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
m.load_bundler!
|
|
106
|
-
|
|
107
|
-
if m.invoked_as_script?
|
|
108
|
-
load Gem.bin_path("bundler", "bundle")
|
|
109
|
-
end
|