chess_api 0.1.0 → 0.1.1

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: 0df6140f4d7090e9b14a2c2475c7e44d72e6691f0f103dab539646e969b37f83
4
- data.tar.gz: 5efb7576c73f950267b4bf4dad1f123d2820dd14422cabdcedab767eeceafce7
3
+ metadata.gz: c78e242f2753aa2589aee04b883772c7882bc1236b46ec28162f89dc5aaed645
4
+ data.tar.gz: dfc8e49eacffee0287293523c52d505191d5f2aa9029ab8115820fe10fa09938
5
5
  SHA512:
6
- metadata.gz: 695b30a9d8c428b876ec0bbba0076551717738b78c10fbb41d7c105368aaf0c35feb9336d21e7add9218afa8863c85dc7b9a5aeb8a9ee42269a827626efd61ac
7
- data.tar.gz: 8ddfb5dc83fc08edf9ead35c675823dab755daa42c112fcd5d648949a8921be3f42075dff6c32b4719d14d53a50d4ab30433b03975b0a65a1cc7d61713045683
6
+ metadata.gz: 201a748355de83873a89f02f21de3212d6539d4f3180fba40c5959436a0b4a228ab8645be65fd37b11593268651569ab7bfd203e5c286e1885d7769324fe8081
7
+ data.tar.gz: 191a729f1631ac462f6b572423ff704899fb275c9aef66b48aed8c0bc7e971a46a92fd00bf359d70661e5d2b57b4b04955099e7fb1ccee21562a0fd6d28420f5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  ## [Unreleased]
2
2
 
3
+ - Fixed bug where #online_status returned `["online", "offline"]` for players who are online.
4
+
3
5
  ## [0.1.0] - 2021-08-29
4
6
 
5
7
  - Initial release
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # ChessApi
2
2
 
3
3
  `chess_api` is a gem that wraps [Chess.com's Published-Data API](https://www.chess.com/news/view/published-data-api).
4
+
5
+ [![Gem Version](https://badge.fury.io/rb/chess_api.svg)](https://badge.fury.io/rb/chess_api)
4
6
  ## Installation
5
7
 
6
8
  Add this line to your application's Gemfile:
@@ -70,10 +72,10 @@ irb(main):001:0> client.titled_player.with_title(title_abbreviation: "WGM")
70
72
  ### Fetching a player's online status on Chess.com
71
73
  ```ruby
72
74
  irb(main):001:0> client.player.online_status(username: "hikaru")
73
- => false
75
+ => "offline"
74
76
 
75
77
  irb(main):002:0> client.player.online_status(username: "ryanjcaldwell")
76
- => true
78
+ => "online"
77
79
  ```
78
80
 
79
81
  ### Fetching the clubs that a player belongs to on Chess.com
@@ -2,7 +2,7 @@ module ChessApi
2
2
  class PlayerResource < Resource
3
3
 
4
4
  module OnlineStatus
5
- ONLINE = "online",
5
+ ONLINE = "online"
6
6
  OFFLINE = "offline"
7
7
  end
8
8
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChessApi
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chess_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Caldwell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-04 00:00:00.000000000 Z
11
+ date: 2021-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday