radio5 0.2.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +13 -11
- data/lib/radio5/client.rb +6 -6
- data/lib/radio5/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 34a7a071486c1b8ca66fd02b03fe53c05e8c4ac70b77a340e70f4e0539d2e3fd
|
|
4
|
+
data.tar.gz: c73e668fda26b54cb15a8d118b27219891e24cccd2880e6658fab3d63e2c00d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3f2a44eac15f31ffb700eadef35327c1990dcf90e5007fce6561b7474748cda2d99227385bf516800f63ca2e84be55e128ff2e959797f3739edcf732697c541
|
|
7
|
+
data.tar.gz: 1bd13fbcb3b333acb179404624ae79ea1d159d290cc6e423dc04f77aa9d3e33a33226750acb1a7aade1f4ae2b95b87f4725eb411bc0677b7de28e9d0ae6a510b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -89,8 +89,8 @@ client.random_track
|
|
|
89
89
|
# }
|
|
90
90
|
#
|
|
91
91
|
# NOTES:
|
|
92
|
-
#
|
|
93
|
-
#
|
|
92
|
+
# - `created_at` - always nil here (API limitations), available via `#track` if needed
|
|
93
|
+
# - `created_by` - `id` of user who uploaded this track
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
To get random track using additional filters:
|
|
@@ -154,7 +154,7 @@ client.moods
|
|
|
154
154
|
# NOTE: all 3 moods are used in `#random_track` and `#island_track` by default
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
It's also possible to get all valid `country`/ `moods` combinations
|
|
157
|
+
It's also possible to get all valid `country`/ `moods` combinations for specific decade in advance:
|
|
158
158
|
|
|
159
159
|
```ruby
|
|
160
160
|
# grouped by country
|
|
@@ -261,9 +261,9 @@ client.user("5d3306de06fb03d8871fd138")
|
|
|
261
261
|
# NOTES:
|
|
262
262
|
# - `rank` - is not unique
|
|
263
263
|
# - `birthday`:
|
|
264
|
-
# - `time` - original time from API, it is always around first day of
|
|
265
|
-
# December, with a strange hour offset around midnight, so
|
|
266
|
-
# only real value here is the year
|
|
264
|
+
# - `time` - original time from API, it is always around the first day of January or
|
|
265
|
+
# the last day of December, with a strange hour offset around midnight, so
|
|
266
|
+
# it looks like the only real value here is the year
|
|
267
267
|
# - `year_normalized` - de-offset'ed year
|
|
268
268
|
```
|
|
269
269
|
|
|
@@ -351,11 +351,13 @@ Currently auth is in a WIP state.
|
|
|
351
351
|
## Development
|
|
352
352
|
|
|
353
353
|
```sh
|
|
354
|
-
bin/setup
|
|
355
|
-
bin/console
|
|
356
|
-
rake spec
|
|
357
|
-
rake
|
|
358
|
-
|
|
354
|
+
bin/setup # install deps
|
|
355
|
+
bin/console # interactive prompt to play around
|
|
356
|
+
rake spec # run tests!
|
|
357
|
+
rake spec:no_vcr # run tests with VCR cassettes disabled!
|
|
358
|
+
rake rubocop # lint code!
|
|
359
|
+
rake rubocop:md # lint docs!
|
|
360
|
+
sudo rm -rf / # just kidding ^^
|
|
359
361
|
```
|
|
360
362
|
|
|
361
363
|
## Contributing
|
data/lib/radio5/client.rb
CHANGED
|
@@ -12,12 +12,12 @@ module Radio5
|
|
|
12
12
|
attr_accessor :open_timeout, :read_timeout, :write_timeout, :proxy_url, :max_retries, :debug_output
|
|
13
13
|
|
|
14
14
|
def initialize(
|
|
15
|
-
open_timeout:
|
|
16
|
-
read_timeout:
|
|
17
|
-
write_timeout:
|
|
18
|
-
proxy_url:
|
|
19
|
-
max_retries:
|
|
20
|
-
debug_output:
|
|
15
|
+
open_timeout: Http::DEFAULT_OPEN_TIMEOUT,
|
|
16
|
+
read_timeout: Http::DEFAULT_READ_TIMEOUT,
|
|
17
|
+
write_timeout: Http::DEFAULT_WRITE_TIMEOUT,
|
|
18
|
+
proxy_url: Http::DEFAULT_PROXY_URL,
|
|
19
|
+
max_retries: Http::DEFAULT_MAX_RETRIES,
|
|
20
|
+
debug_output: Http::DEFAULT_DEBUG_OUTPUT
|
|
21
21
|
)
|
|
22
22
|
@open_timeout = open_timeout
|
|
23
23
|
@read_timeout = read_timeout
|
data/lib/radio5/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: radio5
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmytro Horoshko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Adapter for Radiooooo private API.
|
|
14
14
|
email:
|
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
56
|
version: '0'
|
|
57
57
|
requirements: []
|
|
58
|
-
rubygems_version: 3.
|
|
58
|
+
rubygems_version: 3.5.3
|
|
59
59
|
signing_key:
|
|
60
60
|
specification_version: 4
|
|
61
61
|
summary: Adapter for Radiooooo private API
|