audio_addict 0.4.7 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa6aca6b2c17f49637c1047cec083c3734f15d6bcae20411d6d08ec948d76351
4
- data.tar.gz: 882d4f3693907f19d7575c49d22e02bcb5d9f3bdc162d565545621ce32b9fff0
3
+ metadata.gz: 91453f066ec4703611e4661a6d4a0c31aea11a287b6707e17ce901afbe52d8d8
4
+ data.tar.gz: 1230f8e7dc1de069d6fc3379ebcff09d0a339ec2f0a9a5ebf703a7f4e19f2f3b
5
5
  SHA512:
6
- metadata.gz: 2855e5450ee8968f8cfd2c078f8678632e470d4483dcc1e8a7c355bfb03e565d66d6808ba67e4eaaeb28c41475efb5cc01bc769804dce0d98cd4445d42238851
7
- data.tar.gz: 00bbaabd475d435f9e5cca1121a338c4f75bc734c1d5dc92c98b21d244353bb9732ccd334cbba38ac8e7705f4521d95e092530d3189e0e99ef379c39cd9a6edd
6
+ metadata.gz: 2067364585f243a622f2b7f3ffc040e49e26fbb1c7569c7f4ed8929b45ce7fd3563f07628a2252eacac2b6f134cbbcce702f0dc921c7f44c315da97a39f44d30
7
+ data.tar.gz: 66ae0609a8e6c4b846fd599e2376a81d517d757c2d6ace61d9cf2325e6a4732c3c1d436e6a8c5901b9cef49274b9d36ed6e0df2c76a8c07447e40834d8638946
@@ -1,4 +1,5 @@
1
1
  require 'httparty'
2
+ require 'json'
2
3
 
3
4
  module AudioAddict
4
5
  class API
@@ -2,7 +2,7 @@ module AudioAddict
2
2
  module AutoProperties
3
3
  attr_reader :properties
4
4
 
5
- def method_missing(method_sym, *args, &block)
5
+ def method_missing(method_sym, *args, &)
6
6
  respond_to?(method_sym) ? properties[method_sym.to_s] : super
7
7
  end
8
8
 
@@ -5,7 +5,7 @@ module AudioAddict
5
5
  class << self
6
6
  attr_writer :path
7
7
 
8
- def method_missing(name, *args, &_blk)
8
+ def method_missing(name, *args, &)
9
9
  if name.to_s.end_with? '='
10
10
  name = name[0..-2].to_sym
11
11
  properties[name] = args.first
@@ -37,7 +37,7 @@ module AudioAddict
37
37
  end
38
38
 
39
39
  def initialize(network)
40
- @network = network
40
+ @network = network.to_sym
41
41
  end
42
42
 
43
43
  def inspectable
@@ -45,15 +45,15 @@ module AudioAddict
45
45
  end
46
46
 
47
47
  def name
48
- NETWORKS[network.to_sym]
48
+ NETWORKS[network]
49
49
  end
50
50
 
51
51
  def domain
52
- DOMAINS[network.to_sym]
52
+ DOMAINS[network]
53
53
  end
54
54
 
55
55
  def url_template
56
- channel_path = network == 'zenradio' ? 'zr%{channel_key}_aac' : '%{channel_key}'
56
+ channel_path = network == :zenradio ? 'zr%{channel_key}' : '%{channel_key}'
57
57
  "http://prem2.#{domain}:80/#{channel_path}?%{listen_key}"
58
58
  end
59
59
 
@@ -1,3 +1,3 @@
1
1
  module AudioAddict
2
- VERSION = '0.4.7'
2
+ VERSION = '0.4.9'
3
3
  end
data/lib/audio_addict.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'requires'
2
- require 'byebug' if ENV['BYEBUG']
3
2
 
4
3
  requires 'audio_addict/exceptions'
5
4
  requires 'audio_addict/cache'
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audio_addict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
10
+ date: 2025-01-12 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: colsole
@@ -101,6 +100,9 @@ dependencies:
101
100
  - - ">="
102
101
  - !ruby/object:Gem::Version
103
102
  version: '0'
103
+ - - "<"
104
+ - !ruby/object:Gem::Version
105
+ version: '1'
104
106
  type: :runtime
105
107
  prerelease: false
106
108
  version_requirements: !ruby/object:Gem::Requirement
@@ -108,27 +110,99 @@ dependencies:
108
110
  - - ">="
109
111
  - !ruby/object:Gem::Version
110
112
  version: '0'
113
+ - - "<"
114
+ - !ruby/object:Gem::Version
115
+ version: '1'
111
116
  - !ruby/object:Gem::Dependency
112
117
  name: bigdecimal
113
118
  requirement: !ruby/object:Gem::Requirement
114
119
  requirements:
115
120
  - - ">="
116
121
  - !ruby/object:Gem::Version
117
- version: '0'
122
+ version: '2'
123
+ - - "<"
124
+ - !ruby/object:Gem::Version
125
+ version: '4'
118
126
  type: :runtime
119
127
  prerelease: false
120
128
  version_requirements: !ruby/object:Gem::Requirement
121
129
  requirements:
122
130
  - - ">="
123
131
  - !ruby/object:Gem::Version
124
- version: '0'
132
+ version: '2'
133
+ - - "<"
134
+ - !ruby/object:Gem::Version
135
+ version: '4'
125
136
  - !ruby/object:Gem::Dependency
126
137
  name: csv
138
+ requirement: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '2'
143
+ - - "<"
144
+ - !ruby/object:Gem::Version
145
+ version: '4'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '2'
153
+ - - "<"
154
+ - !ruby/object:Gem::Version
155
+ version: '4'
156
+ - !ruby/object:Gem::Dependency
157
+ name: json
158
+ requirement: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: '1'
163
+ - - "<"
164
+ - !ruby/object:Gem::Version
165
+ version: '4'
166
+ type: :runtime
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '1'
173
+ - - "<"
174
+ - !ruby/object:Gem::Version
175
+ version: '4'
176
+ - !ruby/object:Gem::Dependency
177
+ name: logger
178
+ requirement: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '1'
183
+ - - "<"
184
+ - !ruby/object:Gem::Version
185
+ version: '3'
186
+ type: :runtime
187
+ prerelease: false
188
+ version_requirements: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: '1'
193
+ - - "<"
194
+ - !ruby/object:Gem::Version
195
+ version: '3'
196
+ - !ruby/object:Gem::Dependency
197
+ name: ostruct
127
198
  requirement: !ruby/object:Gem::Requirement
128
199
  requirements:
129
200
  - - ">="
130
201
  - !ruby/object:Gem::Version
131
202
  version: '0'
203
+ - - "<"
204
+ - !ruby/object:Gem::Version
205
+ version: '2'
132
206
  type: :runtime
133
207
  prerelease: false
134
208
  version_requirements: !ruby/object:Gem::Requirement
@@ -136,6 +210,9 @@ dependencies:
136
210
  - - ">="
137
211
  - !ruby/object:Gem::Version
138
212
  version: '0'
213
+ - - "<"
214
+ - !ruby/object:Gem::Version
215
+ version: '2'
139
216
  description: Command line for playlist management and voting for AudioAddict radio
140
217
  networks
141
218
  email: db@dannyben.com
@@ -177,8 +254,10 @@ homepage: https://github.com/dannyben/audio_addict
177
254
  licenses:
178
255
  - MIT
179
256
  metadata:
257
+ bug_tracker_uri: https://github.com/DannyBen/audio_addict/issues
258
+ changelog_uri: https://github.com/DannyBen/audio_addict/blob/master/CHANGELOG.md
259
+ source_code_uri: https://github.com/DannyBen/audio_addict
180
260
  rubygems_mfa_required: 'true'
181
- post_install_message:
182
261
  rdoc_options: []
183
262
  require_paths:
184
263
  - lib
@@ -186,15 +265,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
265
  requirements:
187
266
  - - ">="
188
267
  - !ruby/object:Gem::Version
189
- version: 3.0.0
268
+ version: '3.1'
190
269
  required_rubygems_version: !ruby/object:Gem::Requirement
191
270
  requirements:
192
271
  - - ">="
193
272
  - !ruby/object:Gem::Version
194
273
  version: '0'
195
274
  requirements: []
196
- rubygems_version: 3.5.6
197
- signing_key:
275
+ rubygems_version: 3.6.2
198
276
  specification_version: 4
199
277
  summary: AudioAddict Command Line
200
278
  test_files: []