lastfm 1.27.3 → 1.27.4
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/.rspec +2 -2
- data/lastfm.gemspec +3 -3
- data/spec/lastfm_spec.rb +34 -34
- data/spec/method_category_spec.rb +1 -1
- data/spec/method_specs/album_spec.rb +92 -92
- data/spec/method_specs/artist_spec.rb +73 -73
- data/spec/method_specs/chart_spec.rb +13 -13
- data/spec/method_specs/event_spec.rb +3 -3
- data/spec/method_specs/geo_spec.rb +13 -13
- data/spec/method_specs/group_spec.rb +4 -4
- data/spec/method_specs/library_spec.rb +7 -7
- data/spec/method_specs/radio_spec.rb +10 -10
- data/spec/method_specs/tag_spec.rb +28 -28
- data/spec/method_specs/tasteometer_spec.rb +4 -4
- data/spec/method_specs/track_spec.rb +76 -76
- data/spec/method_specs/user_spec.rb +101 -101
- data/spec/response_spec.rb +6 -6
- data/spec/util_spec.rb +16 -16
- metadata +7 -7
data/spec/util_spec.rb
CHANGED
@@ -8,42 +8,42 @@ describe Lastfm::Util do
|
|
8
8
|
describe '.build_options' do
|
9
9
|
describe 'with array' do
|
10
10
|
it 'should build options' do
|
11
|
-
subject.build_options(
|
11
|
+
expect(subject.build_options(
|
12
12
|
['foo', nil],
|
13
13
|
[:foo],
|
14
14
|
[[:bar, 'xxx'], [:baz, nil]
|
15
|
-
]).
|
15
|
+
])).to eq({
|
16
16
|
:foo => 'foo',
|
17
17
|
:bar => 'xxx',
|
18
18
|
:baz => nil,
|
19
|
-
}
|
19
|
+
})
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'should use proc object to set optional value' do
|
23
|
-
subject.build_options(
|
23
|
+
expect(subject.build_options(
|
24
24
|
['foo', nil],
|
25
25
|
[:foo],
|
26
26
|
[[:bar, Proc.new { 'xxx' }]
|
27
|
-
]).
|
27
|
+
])).to eq({
|
28
28
|
:foo => 'foo',
|
29
29
|
:bar => 'xxx',
|
30
|
-
}
|
30
|
+
})
|
31
31
|
end
|
32
32
|
|
33
33
|
it 'should raise error if required option is not passed' do
|
34
|
-
|
34
|
+
expect {
|
35
35
|
subject.build_options(
|
36
36
|
[],
|
37
37
|
[:foo],
|
38
38
|
[[:bar, 'xxx'], [:baz, nil]
|
39
39
|
])
|
40
|
-
}.
|
40
|
+
}.to raise_error('foo is required')
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
44
|
describe 'with hash' do
|
45
45
|
it 'should build options' do
|
46
|
-
subject.build_options(
|
46
|
+
expect(subject.build_options(
|
47
47
|
[
|
48
48
|
{
|
49
49
|
:foo => 'foo',
|
@@ -55,15 +55,15 @@ describe Lastfm::Util do
|
|
55
55
|
[
|
56
56
|
[:bar, 'xxx'],
|
57
57
|
[:baz, nil]
|
58
|
-
]).
|
58
|
+
])).to eq({
|
59
59
|
:foo => 'foo',
|
60
60
|
:bar => 'xxx',
|
61
61
|
:baz => 'baz',
|
62
|
-
}
|
62
|
+
})
|
63
63
|
end
|
64
64
|
|
65
65
|
it 'should use proc object to set optional value' do
|
66
|
-
subject.build_options(
|
66
|
+
expect(subject.build_options(
|
67
67
|
[
|
68
68
|
{
|
69
69
|
:foo => 'foo',
|
@@ -72,14 +72,14 @@ describe Lastfm::Util do
|
|
72
72
|
],
|
73
73
|
[:foo],
|
74
74
|
[[:bar, Proc.new { 'xxx' }]
|
75
|
-
]).
|
75
|
+
])).to eq({
|
76
76
|
:foo => 'foo',
|
77
77
|
:bar => 'xxx',
|
78
|
-
}
|
78
|
+
})
|
79
79
|
end
|
80
80
|
|
81
81
|
it 'should raise error if required option is not passed' do
|
82
|
-
|
82
|
+
expect {
|
83
83
|
subject.build_options(
|
84
84
|
[
|
85
85
|
{
|
@@ -92,7 +92,7 @@ describe Lastfm::Util do
|
|
92
92
|
[:bar, 'xxx'],
|
93
93
|
[:baz, nil]
|
94
94
|
])
|
95
|
-
}.
|
95
|
+
}.to raise_error('foo is required')
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lastfm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.27.
|
4
|
+
version: 1.27.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- youpy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 3.4.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 3.4.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "<"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 12.3.3
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "<"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 12.3.3
|
69
69
|
description: A ruby interface for Last.fm web services version 2.0
|
70
70
|
email:
|
71
71
|
- youpy@buycheapviagraonlinenow.com
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
213
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.
|
214
|
+
rubygems_version: 2.6.8
|
215
215
|
signing_key:
|
216
216
|
specification_version: 4
|
217
217
|
summary: A ruby interface for Last.fm web services version 2.0
|