Skip to content

Commit 672cb79

Browse files
committed
Fix character verification
This endpoint now requires a token and returns the result using the Pass key. Also adds the yard dev dependency which has been missing since forever.
1 parent 74580de commit 672cb79

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

Gemfile.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
xivapi (0.2.2)
4+
xivapi (0.2.3)
55
rest-client (~> 2.0.2)
66

77
GEM
@@ -23,6 +23,7 @@ GEM
2323
unf (0.1.4)
2424
unf_ext
2525
unf_ext (0.0.7.5)
26+
yard (0.9.19)
2627

2728
PLATFORMS
2829
ruby
@@ -31,6 +32,7 @@ DEPENDENCIES
3132
bundler (~> 1.16)
3233
rake (~> 10.0)
3334
xivapi!
35+
yard (~> 0.9.19)
3436

3537
BUNDLED WITH
3638
1.16.4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A Ruby library for [XIVAPI](https://www.xivapi.com/).
77
Add this line to your application's Gemfile:
88

99
```ruby
10-
gem 'xivapi', git: 'https://github.com/xivapi/xivapi-ruby.git', tag: 'v0.2.1'
10+
gem 'xivapi', git: 'https://github.com/xivapi/xivapi-ruby.git', tag: 'v0.2.3'
1111
```
1212

1313
And then run:

lib/xivapi/request.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ def character_update(id: nil)
122122
end
123123

124124
# @param id [Integer] Character ID
125+
# @param token [String] Verification token to check for
125126
# @return [true, false] Whether or not the character is verified
126-
def character_verified?(id: nil)
127-
request(self, "character/#{id}/verification").verification_token_pass
127+
def character_verified?(id: nil, token: nil)
128+
request(self, "character/#{id}/verification", { token: token }).pass
128129
end
129130

130131
# @param id [Integer] Free company ID

lib/xivapi/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module XIVAPI
22
# Gem version
3-
VERSION = "0.2.2"
3+
VERSION = "0.2.3"
44
end

xivapi.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ Gem::Specification.new do |spec|
2020

2121
spec.add_development_dependency "bundler", "~> 1.16"
2222
spec.add_development_dependency "rake", "~> 10.0"
23+
spec.add_development_dependency "yard", "~> 0.9.19"
2324
spec.add_dependency "rest-client", "~> 2.0.2"
2425
end

0 commit comments

Comments
 (0)