mog 0.0.1 → 0.0.2
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.
- data/lib/mog/client.rb +16 -0
- data/lib/mog/version.rb +1 -1
- data/mog.gemspec +2 -2
- data/spec/fixtures/Mog_Client.yml +747 -375
- data/spec/mog_client_spec.rb +28 -0
- metadata +99 -108
data/spec/mog_client_spec.rb
CHANGED
@@ -7,6 +7,13 @@ describe Mog::Client do
|
|
7
7
|
|
8
8
|
use_vcr_cassette :record => :new_episodes, :match_requests_on => [:uri, :method]
|
9
9
|
|
10
|
+
describe '.album' do
|
11
|
+
it 'should return an album' do
|
12
|
+
album = @client.album('54705941')
|
13
|
+
album.album_name.should eq('Bon Iver')
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
10
17
|
describe '.albums' do
|
11
18
|
it 'should return an array of albums' do
|
12
19
|
albums = @client.albums
|
@@ -14,6 +21,13 @@ describe Mog::Client do
|
|
14
21
|
end
|
15
22
|
end
|
16
23
|
|
24
|
+
describe '.artist' do
|
25
|
+
it 'should return an artist' do
|
26
|
+
artist = @client.artist('420136')
|
27
|
+
artist.artist_name.should eq('Bon Iver')
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
17
31
|
describe '.artists' do
|
18
32
|
it 'should return an array of artists' do
|
19
33
|
albums = @client.artists
|
@@ -21,6 +35,13 @@ describe Mog::Client do
|
|
21
35
|
end
|
22
36
|
end
|
23
37
|
|
38
|
+
describe '.track' do
|
39
|
+
it 'should return an track' do
|
40
|
+
track = @client.track('54705943')
|
41
|
+
track.track_name.should eq('Perth')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
24
45
|
describe '.tracks' do
|
25
46
|
it 'should return an array of tracks' do
|
26
47
|
albums = @client.tracks
|
@@ -28,6 +49,13 @@ describe Mog::Client do
|
|
28
49
|
end
|
29
50
|
end
|
30
51
|
|
52
|
+
describe '.playlist' do
|
53
|
+
it 'should return a playlist' do
|
54
|
+
playlist = @client.playlist('819515')
|
55
|
+
playlist.name.should eq('An Exclusive Playlist by Haley Bonar')
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
31
59
|
describe '.playlists' do
|
32
60
|
it 'should return an array of playlists' do
|
33
61
|
albums = @client.playlists
|
metadata
CHANGED
@@ -1,160 +1,155 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mog
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Steve Agalloco
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-08-30 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: bundler
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2153059140 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
18
|
+
requirements:
|
22
19
|
- - ~>
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.0'
|
25
22
|
type: :development
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
23
|
prerelease: false
|
30
|
-
|
24
|
+
version_requirements: *2153059140
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &2153058640 !ruby/object:Gem::Requirement
|
31
28
|
none: false
|
32
|
-
requirements:
|
29
|
+
requirements:
|
33
30
|
- - ~>
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version:
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.9'
|
36
33
|
type: :development
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: rspec
|
40
34
|
prerelease: false
|
41
|
-
|
35
|
+
version_requirements: *2153058640
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &2153058180 !ruby/object:Gem::Requirement
|
42
39
|
none: false
|
43
|
-
requirements:
|
40
|
+
requirements:
|
44
41
|
- - ~>
|
45
|
-
- !ruby/object:Gem::Version
|
42
|
+
- !ruby/object:Gem::Version
|
46
43
|
version: 2.6.0
|
47
44
|
type: :development
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: yard
|
51
45
|
prerelease: false
|
52
|
-
|
46
|
+
version_requirements: *2153058180
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: yard
|
49
|
+
requirement: &2153057720 !ruby/object:Gem::Requirement
|
53
50
|
none: false
|
54
|
-
requirements:
|
51
|
+
requirements:
|
55
52
|
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version:
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.7'
|
58
55
|
type: :development
|
59
|
-
version_requirements: *id004
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: maruku
|
62
56
|
prerelease: false
|
63
|
-
|
57
|
+
version_requirements: *2153057720
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: maruku
|
60
|
+
requirement: &2153057260 !ruby/object:Gem::Requirement
|
64
61
|
none: false
|
65
|
-
requirements:
|
62
|
+
requirements:
|
66
63
|
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version:
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0.6'
|
69
66
|
type: :development
|
70
|
-
version_requirements: *id005
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: simplecov
|
73
67
|
prerelease: false
|
74
|
-
|
68
|
+
version_requirements: *2153057260
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: &2153056800 !ruby/object:Gem::Requirement
|
75
72
|
none: false
|
76
|
-
requirements:
|
73
|
+
requirements:
|
77
74
|
- - ~>
|
78
|
-
- !ruby/object:Gem::Version
|
75
|
+
- !ruby/object:Gem::Version
|
79
76
|
version: 0.4.2
|
80
77
|
type: :development
|
81
|
-
version_requirements: *id006
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
name: webmock
|
84
78
|
prerelease: false
|
85
|
-
|
79
|
+
version_requirements: *2153056800
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: webmock
|
82
|
+
requirement: &2153056340 !ruby/object:Gem::Requirement
|
86
83
|
none: false
|
87
|
-
requirements:
|
84
|
+
requirements:
|
88
85
|
- - ~>
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version:
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 1.7.5
|
91
88
|
type: :development
|
92
|
-
version_requirements: *id007
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: vcr
|
95
89
|
prerelease: false
|
96
|
-
|
90
|
+
version_requirements: *2153056340
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: vcr
|
93
|
+
requirement: &2153055880 !ruby/object:Gem::Requirement
|
97
94
|
none: false
|
98
|
-
requirements:
|
95
|
+
requirements:
|
99
96
|
- - ~>
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 1.
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 1.11.2
|
102
99
|
type: :development
|
103
|
-
version_requirements: *id008
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: hashie
|
106
100
|
prerelease: false
|
107
|
-
|
101
|
+
version_requirements: *2153055880
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: hashie
|
104
|
+
requirement: &2153055420 !ruby/object:Gem::Requirement
|
108
105
|
none: false
|
109
|
-
requirements:
|
106
|
+
requirements:
|
110
107
|
- - ~>
|
111
|
-
- !ruby/object:Gem::Version
|
108
|
+
- !ruby/object:Gem::Version
|
112
109
|
version: 1.0.0
|
113
110
|
type: :runtime
|
114
|
-
version_requirements: *id009
|
115
|
-
- !ruby/object:Gem::Dependency
|
116
|
-
name: rash
|
117
111
|
prerelease: false
|
118
|
-
|
112
|
+
version_requirements: *2153055420
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rash
|
115
|
+
requirement: &2153054960 !ruby/object:Gem::Requirement
|
119
116
|
none: false
|
120
|
-
requirements:
|
117
|
+
requirements:
|
121
118
|
- - ~>
|
122
|
-
- !ruby/object:Gem::Version
|
119
|
+
- !ruby/object:Gem::Version
|
123
120
|
version: 0.3.0
|
124
121
|
type: :runtime
|
125
|
-
version_requirements: *id010
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: faraday_middleware
|
128
122
|
prerelease: false
|
129
|
-
|
123
|
+
version_requirements: *2153054960
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: faraday_middleware
|
126
|
+
requirement: &2153054500 !ruby/object:Gem::Requirement
|
130
127
|
none: false
|
131
|
-
requirements:
|
128
|
+
requirements:
|
132
129
|
- - ~>
|
133
|
-
- !ruby/object:Gem::Version
|
130
|
+
- !ruby/object:Gem::Version
|
134
131
|
version: 0.7.0.rc1
|
135
132
|
type: :runtime
|
136
|
-
version_requirements: *id011
|
137
|
-
- !ruby/object:Gem::Dependency
|
138
|
-
name: multi_json
|
139
133
|
prerelease: false
|
140
|
-
|
134
|
+
version_requirements: *2153054500
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: multi_json
|
137
|
+
requirement: &2153054040 !ruby/object:Gem::Requirement
|
141
138
|
none: false
|
142
|
-
requirements:
|
139
|
+
requirements:
|
143
140
|
- - ~>
|
144
|
-
- !ruby/object:Gem::Version
|
141
|
+
- !ruby/object:Gem::Version
|
145
142
|
version: 1.0.3
|
146
143
|
type: :runtime
|
147
|
-
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *2153054040
|
148
146
|
description: A Ruby wrapper around the Unofficial Mog API.
|
149
|
-
email:
|
147
|
+
email:
|
150
148
|
- steve.agalloco@gmail.com
|
151
149
|
executables: []
|
152
|
-
|
153
150
|
extensions: []
|
154
|
-
|
155
151
|
extra_rdoc_files: []
|
156
|
-
|
157
|
-
files:
|
152
|
+
files:
|
158
153
|
- .gemtest
|
159
154
|
- .gitignore
|
160
155
|
- .rspec
|
@@ -171,35 +166,31 @@ files:
|
|
171
166
|
- spec/mog_client_spec.rb
|
172
167
|
- spec/mog_spec.rb
|
173
168
|
- spec/spec_helper.rb
|
174
|
-
has_rdoc: true
|
175
169
|
homepage: https://github.com/spagalloco/mog
|
176
170
|
licenses: []
|
177
|
-
|
178
171
|
post_install_message:
|
179
172
|
rdoc_options: []
|
180
|
-
|
181
|
-
require_paths:
|
173
|
+
require_paths:
|
182
174
|
- lib
|
183
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
176
|
none: false
|
185
|
-
requirements:
|
186
|
-
- -
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version:
|
189
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ! '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
182
|
none: false
|
191
|
-
requirements:
|
192
|
-
- -
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version:
|
183
|
+
requirements:
|
184
|
+
- - ! '>='
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
195
187
|
requirements: []
|
196
|
-
|
197
188
|
rubyforge_project: mog
|
198
|
-
rubygems_version: 1.6
|
189
|
+
rubygems_version: 1.8.6
|
199
190
|
signing_key:
|
200
191
|
specification_version: 3
|
201
192
|
summary: A Ruby wrapper around the Unofficial Mog API.
|
202
|
-
test_files:
|
193
|
+
test_files:
|
203
194
|
- spec/fixtures/Mog.yml
|
204
195
|
- spec/fixtures/Mog_Client.yml
|
205
196
|
- spec/mog_client_spec.rb
|