swr3-nowplaying 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +0 -147
- data/.ruby-version +1 -0
- data/.travis.yml +1 -6
- data/Gemfile +1 -0
- data/Guardfile +1 -0
- data/Rakefile +9 -16
- data/exe/swr3-nowplaying +1 -1
- data/lib/swr3_now_playing/artist.rb +1 -0
- data/lib/swr3_now_playing/cover.rb +1 -0
- data/lib/swr3_now_playing/loader.rb +1 -0
- data/lib/swr3_now_playing/mapper.rb +2 -1
- data/lib/swr3_now_playing/song.rb +1 -0
- data/lib/swr3_now_playing/version.rb +2 -1
- data/swr3-nowplaying.gemspec +13 -15
- data/test/helper.rb +1 -0
- data/test/integration/test_all.rb +1 -0
- data/test/unit/test_loader.rb +1 -0
- data/test/unit/test_mapper.rb +1 -0
- data/test/unit/test_song.rb +1 -0
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7d6c3fa39e7e76e6743f2a846c54c6a6fa564f1307e564a7452dca6424a4936a
|
4
|
+
data.tar.gz: 8793dec65b28567e8a2bc4a8a6ef9ceedc9abe7be1a7c5ea2f36f67ee0244e53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1b9bae0f1e758cbcd5c89ffb85961e7ed49b70e63cb54fb537b4eaa9c1f13dece653c6b39e83e2325fbcc367921e3f1b70a13b27fab9dbc21cb84856ec5500e
|
7
|
+
data.tar.gz: 1cdb5b50c5b338330ef6d4c15fba6c9330601f54e96d4b6d23d32a4b1cdfa50afa61ce2038a27c2127d66522342d1e62c4e95471b2472c70ef38692812c8a941
|
data/.rubocop.yml
CHANGED
@@ -16,155 +16,8 @@ AllCops:
|
|
16
16
|
DisplayStyleGuide:
|
17
17
|
Enabled: true
|
18
18
|
|
19
|
-
Lint/AmbiguousRegexpLiteral:
|
20
|
-
Enabled: false
|
21
|
-
|
22
|
-
Lint/HandleExceptions:
|
23
|
-
Enabled: true
|
24
|
-
|
25
|
-
Lint/UnusedBlockArgument:
|
26
|
-
Enabled: false
|
27
|
-
|
28
|
-
Lint/UnusedMethodArgument:
|
29
|
-
Enabled: false
|
30
|
-
|
31
|
-
Metrics/AbcSize:
|
32
|
-
Enabled: false
|
33
|
-
|
34
|
-
Metrics/ClassLength:
|
35
|
-
Enabled: false
|
36
|
-
|
37
|
-
Metrics/CyclomaticComplexity:
|
38
|
-
Max: 12
|
39
|
-
|
40
19
|
Metrics/LineLength:
|
41
20
|
Max: 180
|
42
21
|
|
43
22
|
Metrics/MethodLength:
|
44
23
|
Max: 60
|
45
|
-
|
46
|
-
Metrics/ModuleLength:
|
47
|
-
Enabled: false
|
48
|
-
|
49
|
-
Metrics/ParameterLists:
|
50
|
-
Enabled: false
|
51
|
-
|
52
|
-
Metrics/PerceivedComplexity:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
Performance/Casecmp:
|
56
|
-
Enabled: false
|
57
|
-
|
58
|
-
Performance/Sample:
|
59
|
-
Enabled: false
|
60
|
-
|
61
|
-
Style/Alias:
|
62
|
-
EnforcedStyle: prefer_alias_method
|
63
|
-
|
64
|
-
Style/AlignParameters:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
Style/AsciiComments:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
Style/BlockDelimiters:
|
71
|
-
Enabled: false
|
72
|
-
|
73
|
-
Style/BracesAroundHashParameters:
|
74
|
-
Enabled: false
|
75
|
-
|
76
|
-
Style/ClassAndModuleChildren:
|
77
|
-
Enabled: false
|
78
|
-
|
79
|
-
Style/ClosingParenthesisIndentation:
|
80
|
-
Enabled: false
|
81
|
-
|
82
|
-
Style/Documentation:
|
83
|
-
Enabled: false
|
84
|
-
|
85
|
-
Style/DotPosition:
|
86
|
-
EnforcedStyle: trailing
|
87
|
-
|
88
|
-
Style/DoubleNegation:
|
89
|
-
Enabled: false
|
90
|
-
|
91
|
-
Style/EachWithObject:
|
92
|
-
Enabled: false
|
93
|
-
|
94
|
-
Style/FormatString:
|
95
|
-
EnforcedStyle: sprintf
|
96
|
-
|
97
|
-
Style/GuardClause:
|
98
|
-
Enabled: false
|
99
|
-
|
100
|
-
Style/IfUnlessModifier:
|
101
|
-
Enabled: false
|
102
|
-
|
103
|
-
Style/IndentArray:
|
104
|
-
EnforcedStyle: consistent
|
105
|
-
|
106
|
-
Style/IndentHash:
|
107
|
-
Enabled: false
|
108
|
-
|
109
|
-
Style/Lambda:
|
110
|
-
Enabled: false
|
111
|
-
|
112
|
-
Style/MultilineBlockChain:
|
113
|
-
Enabled: false
|
114
|
-
|
115
|
-
Style/MultilineBlockLayout:
|
116
|
-
Enabled: false
|
117
|
-
|
118
|
-
Style/MultilineOperationIndentation:
|
119
|
-
Enabled: false
|
120
|
-
|
121
|
-
Style/NegatedIf:
|
122
|
-
Enabled: false
|
123
|
-
|
124
|
-
Style/Next:
|
125
|
-
Enabled: false
|
126
|
-
|
127
|
-
Style/NumericLiterals:
|
128
|
-
Enabled: false
|
129
|
-
|
130
|
-
Style/PredicateName:
|
131
|
-
Enabled: false
|
132
|
-
|
133
|
-
Style/RaiseArgs:
|
134
|
-
EnforcedStyle: compact
|
135
|
-
|
136
|
-
Style/RedundantSelf:
|
137
|
-
Enabled: false
|
138
|
-
|
139
|
-
Style/RescueModifier:
|
140
|
-
Enabled: false
|
141
|
-
|
142
|
-
Style/SignalException:
|
143
|
-
Enabled: false
|
144
|
-
|
145
|
-
Style/SingleLineBlockParams:
|
146
|
-
Enabled: false
|
147
|
-
|
148
|
-
Style/SpaceAroundEqualsInParameterDefault:
|
149
|
-
EnforcedStyle: no_space
|
150
|
-
|
151
|
-
Style/StructInheritance:
|
152
|
-
Enabled: false
|
153
|
-
|
154
|
-
Style/TrailingCommaInArguments:
|
155
|
-
Enabled: false
|
156
|
-
|
157
|
-
Style/TrailingCommaInLiteral:
|
158
|
-
Enabled: false
|
159
|
-
|
160
|
-
Style/TrailingUnderscoreVariable:
|
161
|
-
Enabled: false
|
162
|
-
|
163
|
-
Style/TrivialAccessors:
|
164
|
-
Enabled: false
|
165
|
-
|
166
|
-
Style/WordArray:
|
167
|
-
Enabled: false
|
168
|
-
|
169
|
-
Style/ZeroLengthPredicate:
|
170
|
-
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.6.3
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Guardfile
CHANGED
data/Rakefile
CHANGED
@@ -1,28 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require 'bundler/gem_tasks'
|
3
4
|
require 'rubocop/rake_task'
|
4
5
|
require 'rake/testtask'
|
5
6
|
|
6
7
|
namespace :test do
|
7
|
-
desc 'Run all
|
8
|
+
desc 'Run all tests'
|
8
9
|
task all: ['rubocop:auto_correct', :unit, :integration, :system]
|
9
10
|
|
10
|
-
desc 'Run
|
11
|
-
task ci: [
|
12
|
-
|
13
|
-
Rake::TestTask.new('unit') do |test|
|
14
|
-
test.libs << 'lib' << 'test' << 'test/unit'
|
15
|
-
test.pattern = 'test/unit/test_*.rb'
|
16
|
-
end
|
17
|
-
|
18
|
-
Rake::TestTask.new('integration') do |test|
|
19
|
-
test.libs << 'lib' << 'test'
|
20
|
-
test.pattern = 'test/integration/test_*.rb'
|
21
|
-
end
|
11
|
+
desc 'Run CI tests'
|
12
|
+
task ci: %i[rubocop unit integration system]
|
22
13
|
|
23
|
-
|
24
|
-
|
25
|
-
|
14
|
+
%w[unit integration system].each do |type|
|
15
|
+
Rake::TestTask.new(type) do |test|
|
16
|
+
test.libs << 'lib' << 'test'
|
17
|
+
test.pattern = "test/#{type}/test_*.rb"
|
18
|
+
end
|
26
19
|
end
|
27
20
|
end
|
28
21
|
|
data/exe/swr3-nowplaying
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require 'json'
|
3
4
|
require 'cgi'
|
4
5
|
require 'swr3_now_playing/song'
|
@@ -19,7 +20,7 @@ module SWR3
|
|
19
20
|
class << self
|
20
21
|
def map(json)
|
21
22
|
Cover.new.tap do |cover|
|
22
|
-
%w
|
23
|
+
%w[small thumbnail detail zoom].each do |size|
|
23
24
|
cover[size] = json[size]['src']
|
24
25
|
end
|
25
26
|
end
|
data/swr3-nowplaying.gemspec
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
# frozen_string_literal: true
|
3
|
-
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require 'English'
|
6
6
|
require 'swr3_now_playing/version'
|
7
|
-
|
8
|
-
# rubocop:disable Metrics/BlockLength
|
9
7
|
Gem::Specification.new do |gem|
|
10
8
|
gem.name = 'swr3-nowplaying'
|
11
9
|
gem.version = SWR3::NowPlaying::VERSION
|
@@ -21,20 +19,20 @@ Gem::Specification.new do |gem|
|
|
21
19
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
22
20
|
gem.require_paths = ['lib']
|
23
21
|
|
24
|
-
gem.add_development_dependency 'rake'
|
25
|
-
gem.add_development_dependency 'minitest'
|
26
|
-
gem.add_development_dependency 'webmock'
|
27
|
-
gem.add_development_dependency 'vcr'
|
28
|
-
gem.add_development_dependency 'rubocop'
|
29
22
|
gem.add_development_dependency 'guard'
|
30
|
-
gem.add_development_dependency 'guard-minitest'
|
31
23
|
gem.add_development_dependency 'guard-bundler'
|
32
|
-
gem.add_development_dependency '
|
33
|
-
gem.add_development_dependency 'terminal-notifier-guard'
|
34
|
-
gem.add_development_dependency 'rb-inotify'
|
24
|
+
gem.add_development_dependency 'guard-minitest'
|
35
25
|
gem.add_development_dependency 'libnotify'
|
36
|
-
gem.add_development_dependency '
|
26
|
+
gem.add_development_dependency 'minitest'
|
37
27
|
gem.add_development_dependency 'pry'
|
38
|
-
gem.add_development_dependency 'rb-readline'
|
39
28
|
gem.add_development_dependency 'pry-byebug'
|
29
|
+
gem.add_development_dependency 'rake'
|
30
|
+
gem.add_development_dependency 'rb-fsevent'
|
31
|
+
gem.add_development_dependency 'rb-inotify'
|
32
|
+
gem.add_development_dependency 'rb-readline'
|
33
|
+
gem.add_development_dependency 'rubocop'
|
34
|
+
gem.add_development_dependency 'terminal-notifier'
|
35
|
+
gem.add_development_dependency 'terminal-notifier-guard'
|
36
|
+
gem.add_development_dependency 'vcr'
|
37
|
+
gem.add_development_dependency 'webmock'
|
40
38
|
end
|
data/test/helper.rb
CHANGED
data/test/unit/test_loader.rb
CHANGED
data/test/unit/test_mapper.rb
CHANGED
data/test/unit/test_song.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swr3-nowplaying
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas E. Rabenau
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: guard
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: guard-bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: guard-minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: libnotify
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: pry
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: pry-byebug
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rb-fsevent
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rb-inotify
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name: rb-
|
154
|
+
name: rb-readline
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
@@ -165,7 +165,7 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: rubocop
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
@@ -179,7 +179,7 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: terminal-notifier
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - ">="
|
@@ -193,7 +193,7 @@ dependencies:
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
196
|
+
name: terminal-notifier-guard
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
@@ -207,7 +207,7 @@ dependencies:
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
210
|
+
name: vcr
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - ">="
|
@@ -221,7 +221,7 @@ dependencies:
|
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
224
|
+
name: webmock
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - ">="
|
@@ -245,6 +245,7 @@ extra_rdoc_files: []
|
|
245
245
|
files:
|
246
246
|
- ".gitignore"
|
247
247
|
- ".rubocop.yml"
|
248
|
+
- ".ruby-version"
|
248
249
|
- ".travis.yml"
|
249
250
|
- Gemfile
|
250
251
|
- Guardfile
|
@@ -288,8 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
289
|
- !ruby/object:Gem::Version
|
289
290
|
version: '0'
|
290
291
|
requirements: []
|
291
|
-
|
292
|
-
rubygems_version: 2.6.11
|
292
|
+
rubygems_version: 3.0.3
|
293
293
|
signing_key:
|
294
294
|
specification_version: 4
|
295
295
|
summary: Provides the track that is currently playing in SWR3
|