Releases: julianfssen/coingecko_ruby
Releases · julianfssen/coingecko_ruby
Fixed keyword and position arguments for Ruby 3.0
Fixes
- Fixed
get
method calls throwingArgumentError
in Ruby 3.0 due to the separation of positional and keyword arguments. This gem should not work on Ruby 3.0 and older Ruby versions.
v0.4.1
[Changed]
Modules
- Removed 'get' prefix and unnecessary keyword arguments from method calls to make usage more Ruby-like.
In previous versions, getting data from CoinGecko is invoked with a method like:
client.get_price(id: 'bitcoin')
Now, it's invoked in a more Ruby-like manner by excluding unnecessary keyword arguments and absorbing additional arguments via an options
hash:
client.price('bitcoin', currency: 'usd', option_2: 'option', option_3: ...)
- Deprecated methods that were replaced by the change above. These deprecated methods can still be used but they will be removed in future versions.
Docs
- Updated docs to reflect method names and keyword arguments changes
Tests
- Updated tests to use the new methods.
v0.3.1
0.3.1 - 18-05-2021
[Added]
Modules
- Added
Derivatives
module to fetch crypto derivatives data. - Added
Indexes
module to fetch crypto indexes data. - Added
Finance
module to fetch crypto finance data. - Added
Infos
module to fetch global crypto data. - Added
Events
module to fetch event data.
Tests
- Added basic unit tests for
Derivatives
,Indexes
,Finance
,Infos
, andEvents
modules.
Docs
- Added
YARD
documentation (params, return values, usage, and response objects) forDerivatives
,Indexes
,Finance
,Infos
, andEvents
modules.
v0.2.0
v0.2.0 - 16-05-2021
[Added]
Modules
- Added
Exchanges
module to fetch exchange data.
Tests
- Added
vcr
andwebmock
gems for testing. - Added basic unit tests for every client module.
- Added setting for
vcr
episodes to use:new_episodes
as the default:record
mode.
Docs
- Added
YARD
documentation (params, return values, usage, and response objects) for every method in client modules.
[Changes]
- Changed
get
method inconnection.rb
to build querystrings from theoptions
object.
Changed method definitions to accept anoptions
parameter to define options when making requests.