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.
@@ -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
- ]).should == {
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
- ]).should == {
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
- lambda {
34
+ expect {
35
35
  subject.build_options(
36
36
  [],
37
37
  [:foo],
38
38
  [[:bar, 'xxx'], [:baz, nil]
39
39
  ])
40
- }.should raise_error('foo is required')
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
- ]).should == {
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
- ]).should == {
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
- lambda {
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
- }.should raise_error('foo is required')
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.3
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: 2019-03-13 00:00:00.000000000 Z
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: 2.8.0
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: 2.8.0
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: '11.0'
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: '11.0'
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.5.1
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