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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afc335b6a9726ff30f27942868b19513b02aea353144fcd8f283bc8da3fe1159
4
- data.tar.gz: 41852476ae434f3718e68d2c60d8fc7b868425288efeae519024d766e7d06b94
3
+ metadata.gz: 34a7a071486c1b8ca66fd02b03fe53c05e8c4ac70b77a340e70f4e0539d2e3fd
4
+ data.tar.gz: c73e668fda26b54cb15a8d118b27219891e24cccd2880e6658fab3d63e2c00d3
5
5
  SHA512:
6
- metadata.gz: 8be48ecc1b8681d7749775473b9b3af13aa469aa3098a2896ffbb026056b696d3135924b19d1ff4ff79c9e6e50a6c05cb9f270372874b52c2df48401d504d72e
7
- data.tar.gz: 639fab8c48fe128066118ebcf79e72baf3aa6ef5d104540b03bbc30d51b3f77163d9cd348fa52cc6c2b23e75027cd224d77d42ba80f7efe288d067c112628781
6
+ metadata.gz: a3f2a44eac15f31ffb700eadef35327c1990dcf90e5007fce6561b7474748cda2d99227385bf516800f63ca2e84be55e128ff2e959797f3739edcf732697c541
7
+ data.tar.gz: 1bd13fbcb3b333acb179404624ae79ea1d159d290cc6e423dc04f77aa9d3e33a33226750acb1a7aade1f4ae2b95b87f4725eb411bc0677b7de28e9d0ae6a510b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.2.1
2
+ ----------
3
+
4
+ - Fixed bug with non-readable client default opts
5
+
1
6
  0.2.0
2
7
  ----------
3
8
 
data/README.md CHANGED
@@ -89,8 +89,8 @@ client.random_track
89
89
  # }
90
90
  #
91
91
  # NOTES:
92
- # - `created_at` - always nil here (API limitations), available via `#track` if needed
93
- # - `created_by` - `id` of user who uploaded this track
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 per for specific decade in advance:
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 Jan or last day of
265
- # December, with a strange hour offset around midnight, so it looks like the
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 // install deps
355
- bin/console // interactive prompt to play around
356
- rake spec // test!
357
- rake rubocop // lint!
358
- sudo rm -rf / // just kidding ^^
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: nil,
16
- read_timeout: nil,
17
- write_timeout: nil,
18
- proxy_url: nil,
19
- max_retries: nil,
20
- debug_output: nil
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Radio5
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.0
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-01-11 00:00:00.000000000 Z
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.4.10
58
+ rubygems_version: 3.5.3
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: Adapter for Radiooooo private API