discogs-wrapper 1.1.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/LICENSE +9 -0
  2. data/README.markdown +123 -43
  3. data/lib/discogs-wrapper.rb +1 -0
  4. data/lib/discogs.rb +1 -0
  5. data/lib/wrapper/authentication.rb +56 -0
  6. data/lib/wrapper/wrapper.rb +732 -43
  7. data/spec/samples/valid_artist.json +1 -0
  8. data/spec/samples/valid_artist_releases.json +1 -0
  9. data/spec/samples/valid_fields.json +48 -0
  10. data/spec/samples/valid_folder.json +6 -0
  11. data/spec/samples/valid_identity.json +6 -0
  12. data/spec/samples/valid_label.json +1 -0
  13. data/spec/samples/valid_label_releases.json +1 -0
  14. data/spec/samples/valid_listing.json +1 -0
  15. data/spec/samples/valid_master_release.json +1 -0
  16. data/spec/samples/valid_master_release_versions.json +1 -0
  17. data/spec/samples/valid_order.json +57 -0
  18. data/spec/samples/valid_order_messages.json +102 -0
  19. data/spec/samples/valid_orders.json +68 -0
  20. data/spec/samples/valid_price_suggestions.json +34 -0
  21. data/spec/samples/valid_release.json +1 -0
  22. data/spec/samples/valid_search_results.json +1 -0
  23. data/spec/samples/valid_user.json +1 -0
  24. data/spec/samples/valid_user_collection.json +1 -0
  25. data/spec/samples/valid_user_folder.json +6 -0
  26. data/spec/samples/valid_user_folders.json +16 -0
  27. data/spec/samples/valid_user_inventory.json +41 -0
  28. data/spec/samples/valid_user_profile.json +25 -0
  29. data/spec/samples/valid_user_wantlist.json +1 -0
  30. data/spec/samples/valid_wantlist_release.json +41 -0
  31. data/spec/spec_helper.rb +4 -18
  32. data/spec/wrapper_methods/add_release_to_user_wantlist_spec.rb +42 -0
  33. data/spec/wrapper_methods/edit_release_in_user_wantlist_spec.rb +38 -0
  34. data/spec/wrapper_methods/edit_user_spec.rb +36 -0
  35. data/spec/wrapper_methods/get_artist_releases_spec.rb +49 -0
  36. data/spec/wrapper_methods/get_artist_spec.rb +15 -75
  37. data/spec/wrapper_methods/get_identity_spec.rb +35 -0
  38. data/spec/wrapper_methods/get_label_releases_spec.rb +49 -0
  39. data/spec/wrapper_methods/get_label_spec.rb +15 -28
  40. data/spec/wrapper_methods/get_listing_spec.rb +40 -0
  41. data/spec/wrapper_methods/get_master_release_spec.rb +16 -42
  42. data/spec/wrapper_methods/get_master_release_versions_spec.rb +49 -0
  43. data/spec/wrapper_methods/get_order_messages_spec.rb +36 -0
  44. data/spec/wrapper_methods/get_order_spec.rb +36 -0
  45. data/spec/wrapper_methods/get_price_suggestions_spec.rb +36 -0
  46. data/spec/wrapper_methods/get_release_spec.rb +26 -52
  47. data/spec/wrapper_methods/get_user_collection_spec.rb +41 -0
  48. data/spec/wrapper_methods/get_user_folder_spec.rb +46 -0
  49. data/spec/wrapper_methods/get_user_folders_spec.rb +42 -0
  50. data/spec/wrapper_methods/get_user_inventory_spec.rb +45 -0
  51. data/spec/wrapper_methods/get_user_spec.rb +45 -0
  52. data/spec/wrapper_methods/get_user_wantlist_spec.rb +49 -0
  53. data/spec/wrapper_methods/search_spec.rb +22 -293
  54. data/spec/wrapper_spec.rb +124 -45
  55. metadata +162 -67
  56. data/Rakefile +0 -26
  57. data/discogs.gemspec +0 -22
  58. data/lib/wrapper/resource.rb +0 -80
  59. data/lib/wrapper/resource_mappings.rb +0 -80
  60. data/lib/wrapper/resources/artist.rb +0 -40
  61. data/lib/wrapper/resources/artist_release.rb +0 -28
  62. data/lib/wrapper/resources/format.rb +0 -11
  63. data/lib/wrapper/resources/generic_list.rb +0 -29
  64. data/lib/wrapper/resources/image.rb +0 -11
  65. data/lib/wrapper/resources/label.rb +0 -16
  66. data/lib/wrapper/resources/label_release.rb +0 -17
  67. data/lib/wrapper/resources/master_release.rb +0 -19
  68. data/lib/wrapper/resources/master_release_version.rb +0 -17
  69. data/lib/wrapper/resources/release.rb +0 -25
  70. data/lib/wrapper/resources/release_artist.rb +0 -21
  71. data/lib/wrapper/resources/release_label.rb +0 -10
  72. data/lib/wrapper/resources/search.rb +0 -61
  73. data/lib/wrapper/resources/search_result.rb +0 -17
  74. data/lib/wrapper/resources/track.rb +0 -19
  75. data/lib/wrapper/resources/user.rb +0 -11
  76. data/lib/wrapper/resources/video.rb +0 -11
  77. data/spec/resource_spec.rb +0 -27
  78. data/spec/resources/artist_release_spec.rb +0 -59
  79. data/spec/resources/artist_spec.rb +0 -15
  80. data/spec/resources/format_spec.rb +0 -41
  81. data/spec/resources/generic_list_spec.rb +0 -66
  82. data/spec/resources/image_spec.rb +0 -43
  83. data/spec/resources/label_release_spec.rb +0 -55
  84. data/spec/resources/label_spec.rb +0 -15
  85. data/spec/resources/master_release_spec.rb +0 -15
  86. data/spec/resources/master_release_version_spec.rb +0 -55
  87. data/spec/resources/release_artist_spec.rb +0 -43
  88. data/spec/resources/release_label_spec.rb +0 -31
  89. data/spec/resources/release_spec.rb +0 -15
  90. data/spec/resources/search_result_spec.rb +0 -47
  91. data/spec/resources/search_spec.rb +0 -15
  92. data/spec/resources/track_spec.rb +0 -56
  93. data/spec/resources/video_spec.rb +0 -43
data/spec/wrapper_spec.rb CHANGED
@@ -25,10 +25,12 @@ describe Discogs::Wrapper do
25
25
  before do
26
26
  @app_name = "some_app"
27
27
  @wrapper = Discogs::Wrapper.new(@app_name)
28
- @release_id = "666666"
29
- @artist_name = "Dark"
30
- @label_name = "Monitor"
28
+ @release_id = "1"
29
+ @artist_id = 313929
30
+ @master_id = 5331
31
+ @label_id = 1000
31
32
  @search_term = "barry"
33
+ @username = "abuntine"
32
34
  end
33
35
 
34
36
  it "should have an user agent" do
@@ -41,66 +43,139 @@ describe Discogs::Wrapper do
41
43
  end
42
44
 
43
45
  it "should generate the correct release URL to parse" do
44
- mock_http_with_response "200", valid_release_xml
45
- URI.should_receive(:parse).with("http://api.discogs.com/release/666666?f=xml").and_return(@uri)
46
+ mock_http_with_response "200", read_sample("release")
47
+ URI.should_receive(:parse).with("http://api.discogs.com/releases/1?f=json").and_return(@uri)
46
48
 
47
49
  @wrapper.get_release(@release_id)
48
50
  end
49
51
 
50
52
  it "should generate the correct artist URL to parse" do
51
- mock_http_with_response "200", valid_artist_xml
52
- URI.should_receive(:parse).with("http://api.discogs.com/artist/Dark?f=xml&releases=1").and_return(@uri)
53
+ mock_http_with_response "200", read_sample("artist")
54
+ URI.should_receive(:parse).with("http://api.discogs.com/artists/313929?f=json").and_return(@uri)
53
55
 
54
- @wrapper.get_artist(@artist_name)
56
+ @wrapper.get_artist(@artist_id)
55
57
  end
56
58
 
59
+ it "should generate the correct paginated artist releases URL to parse" do
60
+ mock_http_with_response "200", read_sample("artist_releases")
61
+ URI.should_receive(:parse).with("http://api.discogs.com/artists/313929/releases?f=json&page=2&per_page=100").and_return(@uri)
62
+
63
+ @wrapper.get_artist_releases(@artist_id, :page => 2, :per_page => 100)
64
+ end
65
+
57
66
  it "should generate the correct label URL to parse" do
58
- mock_http_with_response "200", valid_label_xml
59
- URI.should_receive(:parse).with("http://api.discogs.com/label/Monitor?f=xml&releases=1").and_return(@uri)
67
+ mock_http_with_response "200", read_sample("label")
68
+ URI.should_receive(:parse).with("http://api.discogs.com/labels/1000?f=json").and_return(@uri)
69
+
70
+ @wrapper.get_label(@label_id)
71
+ end
72
+
73
+ it "should generate the correct paginated label releases URL to parse" do
74
+ mock_http_with_response "200", read_sample("label_releases")
75
+ URI.should_receive(:parse).with("http://api.discogs.com/labels/1000/releases?f=json&page=2&per_page=100").and_return(@uri)
60
76
 
61
- @wrapper.get_label(@label_name)
77
+ @wrapper.get_label_releases(@label_id, :page => 2, :per_page => 100)
62
78
  end
63
79
 
64
80
  it "should generate the correct default search URL to parse" do
65
- mock_http_with_response "200", valid_search_xml
66
- URI.should_receive(:parse).with("http://api.discogs.com/search?f=xml&page=1&q=barry&type=all").and_return(@uri)
81
+ mock_http_with_response "200", read_sample("search_results")
82
+ URI.should_receive(:parse).with("http://api.discogs.com/database/search?f=json&q=barry").and_return(@uri)
67
83
 
68
84
  @wrapper.search(@search_term)
69
85
  end
70
86
 
71
- it "should generate the correct second-page search URL to parse" do
72
- mock_http_with_response "200", valid_search_xml
73
- URI.should_receive(:parse).with("http://api.discogs.com/search?f=xml&page=2&q=barry&type=all").and_return(@uri)
87
+ it "should generate the correct paginated search URL to parse" do
88
+ mock_http_with_response "200", read_sample("search_results")
89
+ URI.should_receive(:parse).with("http://api.discogs.com/database/search?f=json&page=2&per_page=100&q=barry").and_return(@uri)
74
90
 
75
- @wrapper.search(@search_term, :page => 2)
91
+ @wrapper.search(@search_term, :page => 2, :per_page => 100)
76
92
  end
77
93
 
78
- it "should generate the correct second-page artist search URL to parse" do
79
- mock_http_with_response "200", valid_search_xml
80
- URI.should_receive(:parse).with("http://api.discogs.com/search?f=xml&page=2&q=barry&type=artist").and_return(@uri)
94
+ it "should generate another correct paginated search URL to parse" do
95
+ mock_http_with_response "200", read_sample("search_results")
96
+ URI.should_receive(:parse).with("http://api.discogs.com/database/search?f=json&page=2&q=barry").and_return(@uri)
81
97
 
82
- @wrapper.search(@search_term, :page => 2, :type => :artist)
98
+ @wrapper.search(@search_term, :page => 2)
83
99
  end
84
100
 
85
101
  it "should sanitize the path correctly" do
86
- mock_http_with_response "200", valid_artist_xml
87
- URI.should_receive(:parse).with("http://api.discogs.com/artist/A+very+long+band+name?f=xml&releases=1").and_return(@uri)
102
+ mock_http_with_response "200", read_sample("search_results")
103
+ URI.should_receive(:parse).with("http://api.discogs.com/database/search?f=json&q=Two+Words").and_return(@uri)
88
104
 
89
- @wrapper.get_artist("A very long band name")
90
- end
105
+ @wrapper.search("Two Words")
106
+ end
107
+
108
+ it "should generate the correct default user inventory URL to parse" do
109
+ mock_http_with_response "200", read_sample("user_inventory")
110
+ URI.should_receive(:parse).with("http://api.discogs.com/users/abuntine/inventory?f=json").and_return(@uri)
111
+
112
+ @wrapper.get_user_inventory(@username)
113
+ end
114
+
115
+ it "should generate the correct paginated user inventory URL to parse" do
116
+ mock_http_with_response "200", read_sample("user_inventory")
117
+ URI.should_receive(:parse).with("http://api.discogs.com/users/abuntine/inventory?f=json&page=2&status=For+Sale").and_return(@uri)
118
+
119
+ @wrapper.get_user_inventory(@username, :page => 2, :status => "For Sale")
120
+ end
121
+
122
+ it "should generate the correct sorted and paginated user inventory URL to parse" do
123
+ mock_http_with_response "200", read_sample("user_inventory")
124
+ URI.should_receive(:parse).with("http://api.discogs.com/users/abuntine/inventory?f=json&page=2&sort=price&sort_order=asc&status=For+Sale").and_return(@uri)
125
+
126
+ @wrapper.get_user_inventory(@username, :page => 2, :status => "For Sale", :sort => :price, :sort_order => :asc)
127
+ end
128
+
129
+ it "should generate the correct URL to parse when given raw URL" do
130
+ @search_uri = mock("uri", :host => "api.discogs.com", :query => "q=Sombre+Records&per_page=50&type=release&page=11", :path => "database/search")
131
+
132
+ mock_http_with_response "200", read_sample("search_results")
133
+ URI.should_receive(:parse).with("http://api.discogs.com/database/search?q=Sombre+Records&per_page=50&type=release&page=11").and_return(@search_uri)
134
+ URI.should_receive(:parse).with("http://api.discogs.com/database/search?f=json&page=11&per_page=50&q=Sombre+Records&type=release").and_return(@uri)
135
+
136
+ @wrapper.raw("http://api.discogs.com/database/search?q=Sombre+Records&per_page=50&type=release&page=11")
137
+ end
138
+
139
+ it "should generate the correct URL to parse when given raw URL with no query" do
140
+ @artist_uri = mock("uri", :host => "api.discogs.com", :query => "", :path => "artists/1000")
141
+
142
+ mock_http_with_response "200", read_sample("artist")
143
+ URI.should_receive(:parse).with("http://api.discogs.com/artists/1000").and_return(@artist_uri)
144
+ URI.should_receive(:parse).with("http://api.discogs.com/artists/1000?f=json").and_return(@uri)
145
+
146
+ @wrapper.raw("http://api.discogs.com/artists/1000")
147
+ end
91
148
 
92
149
  end
93
150
 
94
151
  ## NOTE: See ./spec/wrapper_methods/*.rb for indepth tests on valid API requests.
95
152
 
96
- describe "when requesting a release" do
153
+ describe "when requesting authentication identity" do
97
154
 
98
- it "should successfully return a Discogs::Release object" do
99
- mock_http_with_response "200", valid_release_xml
100
-
101
- @wrapper.get_release(@release_id).should be_instance_of(Discogs::Release)
155
+ it "should raise an exception if the session is not authenticated" do
156
+ lambda { @wrapper.get_identity }.should raise_error(Discogs::AuthenticationError)
157
+ end
158
+
159
+ end
160
+
161
+ describe "when editing a user" do
162
+
163
+ it "should raise an exception if the session is not authenticated" do
164
+ lambda { @wrapper.edit_user("abuntine") }.should raise_error(Discogs::AuthenticationError)
102
165
  end
103
166
 
167
+ end
168
+
169
+ describe "when removing a release from a wantlist" do
170
+
171
+ it "should raise an exception if the session is not authenticated" do
172
+ lambda { @wrapper.delete_release_from_user_wantlist("abuntine", 12341234) }.should raise_error(Discogs::AuthenticationError)
173
+ end
174
+
175
+ end
176
+
177
+ describe "when requesting a release" do
178
+
104
179
  it "should raise an exception if the release does not exist" do
105
180
  mock_http_with_response "404"
106
181
 
@@ -117,44 +192,48 @@ describe Discogs::Wrapper do
117
192
 
118
193
  describe "when requesting an artist" do
119
194
 
120
- it "should successfully return a Discogs::Artist object" do
121
- mock_http_with_response "200", valid_artist_xml
122
-
123
- @wrapper.get_artist(@artist_name).should be_instance_of(Discogs::Artist)
124
- end
125
-
126
195
  it "should raise an exception if the artist does not exist" do
127
196
  mock_http_with_response "404"
128
197
 
129
- lambda { @wrapper.get_artist(@artist_name) }.should raise_error(Discogs::UnknownResource)
198
+ lambda { @wrapper.get_artist(@artist_id) }.should raise_error(Discogs::UnknownResource)
130
199
  end
131
200
 
132
201
  it "should raise an exception if the server dies a horrible death" do
133
202
  mock_http_with_response "500"
134
203
 
135
- lambda { @wrapper.get_artist(@artist_name) }.should raise_error(Discogs::InternalServerError)
204
+ lambda { @wrapper.get_artist(@artist_id) }.should raise_error(Discogs::InternalServerError)
136
205
  end
137
206
 
138
207
  end
139
208
 
140
209
  describe "when requesting a label" do
141
210
 
142
- it "should successfully return a Discogs::Label object" do
143
- mock_http_with_response "200", valid_label_xml
144
-
145
- @wrapper.get_label(@label_name).should be_instance_of(Discogs::Label)
211
+ it "should raise an exception if the label does not exist" do
212
+ mock_http_with_response "404"
213
+
214
+ lambda { @wrapper.get_label(@label_id) }.should raise_error(Discogs::UnknownResource)
146
215
  end
147
216
 
148
- it "should raise an exception if the label does not exist" do
217
+ it "should raise an exception if the server dies a horrible death" do
218
+ mock_http_with_response "500"
219
+
220
+ lambda { @wrapper.get_label(@label_id) }.should raise_error(Discogs::InternalServerError)
221
+ end
222
+
223
+ end
224
+
225
+ describe "when requesting a master" do
226
+
227
+ it "should raise an exception if the master does not exist" do
149
228
  mock_http_with_response "404"
150
229
 
151
- lambda { @wrapper.get_label(@label_name) }.should raise_error(Discogs::UnknownResource)
230
+ lambda { @wrapper.get_master(@master_id) }.should raise_error(Discogs::UnknownResource)
152
231
  end
153
232
 
154
233
  it "should raise an exception if the server dies a horrible death" do
155
234
  mock_http_with_response "500"
156
235
 
157
- lambda { @wrapper.get_label(@label_name) }.should raise_error(Discogs::InternalServerError)
236
+ lambda { @wrapper.get_master(@master_id) }.should raise_error(Discogs::InternalServerError)
158
237
  end
159
238
 
160
239
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discogs-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,8 +10,40 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-13 00:00:00.000000000 Z
13
+ date: 2014-06-01 00:00:00.000000000 Z
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: pry
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: pry-nav
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ type: :development
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
15
47
  - !ruby/object:Gem::Dependency
16
48
  name: rspec
17
49
  requirement: !ruby/object:Gem::Requirement
@@ -44,61 +76,99 @@ dependencies:
44
76
  - - '='
45
77
  - !ruby/object:Gem::Version
46
78
  version: 0.7.1
79
+ - !ruby/object:Gem::Dependency
80
+ name: hashie
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ~>
85
+ - !ruby/object:Gem::Version
86
+ version: '2.1'
87
+ type: :runtime
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: '2.1'
95
+ - !ruby/object:Gem::Dependency
96
+ name: oauth
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ~>
101
+ - !ruby/object:Gem::Version
102
+ version: 0.4.7
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 0.4.7
47
111
  description: Discogs::Wrapper is a full wrapper for the http://www.discogs.com API
48
- V2
112
+ V2. Supports authentication, pagination, JSON.
49
113
  email: info@andrewbuntine.com
50
114
  executables: []
51
115
  extensions: []
52
116
  extra_rdoc_files: []
53
117
  files:
54
- - lib/wrapper/resource_mappings.rb
55
- - lib/wrapper/wrapper.rb
56
- - lib/wrapper/resource.rb
57
- - lib/wrapper/resources/format.rb
58
- - lib/wrapper/resources/search.rb
59
- - lib/wrapper/resources/label_release.rb
60
- - lib/wrapper/resources/artist.rb
61
- - lib/wrapper/resources/release_artist.rb
62
- - lib/wrapper/resources/artist_release.rb
63
- - lib/wrapper/resources/release_label.rb
64
- - lib/wrapper/resources/generic_list.rb
65
- - lib/wrapper/resources/search_result.rb
66
- - lib/wrapper/resources/label.rb
67
- - lib/wrapper/resources/image.rb
68
- - lib/wrapper/resources/track.rb
69
- - lib/wrapper/resources/release.rb
70
- - lib/wrapper/resources/master_release.rb
71
- - lib/wrapper/resources/master_release_version.rb
72
- - lib/wrapper/resources/video.rb
73
- - ./lib/wrapper/resources/user.rb
74
118
  - lib/discogs.rb
75
- - Rakefile
119
+ - lib/discogs-wrapper.rb
120
+ - lib/wrapper/wrapper.rb
121
+ - lib/wrapper/authentication.rb
122
+ - LICENSE
76
123
  - README.markdown
77
- - discogs.gemspec
124
+ - spec/spec_helper.rb
125
+ - spec/samples/valid_search_results.json
126
+ - spec/samples/valid_master_release.json
127
+ - spec/samples/valid_user_folder.json
128
+ - spec/samples/valid_orders.json
129
+ - spec/samples/valid_folder.json
130
+ - spec/samples/valid_user_folders.json
131
+ - spec/samples/valid_wantlist_release.json
132
+ - spec/samples/valid_master_release_versions.json
133
+ - spec/samples/valid_order_messages.json
134
+ - spec/samples/valid_order.json
135
+ - spec/samples/valid_price_suggestions.json
136
+ - spec/samples/valid_fields.json
137
+ - spec/samples/valid_identity.json
138
+ - spec/samples/valid_listing.json
139
+ - spec/samples/valid_artist.json
140
+ - spec/samples/valid_user_collection.json
141
+ - spec/samples/valid_user.json
142
+ - spec/samples/valid_artist_releases.json
143
+ - spec/samples/valid_release.json
144
+ - spec/samples/valid_label.json
145
+ - spec/samples/valid_user_inventory.json
146
+ - spec/samples/valid_user_profile.json
147
+ - spec/samples/valid_label_releases.json
148
+ - spec/samples/valid_user_wantlist.json
149
+ - spec/wrapper_spec.rb
78
150
  - spec/wrapper_methods/get_release_spec.rb
79
- - spec/wrapper_methods/get_master_release_spec.rb
80
- - spec/wrapper_methods/search_spec.rb
151
+ - spec/wrapper_methods/edit_release_in_user_wantlist_spec.rb
152
+ - spec/wrapper_methods/get_order_messages_spec.rb
81
153
  - spec/wrapper_methods/get_artist_spec.rb
154
+ - spec/wrapper_methods/get_master_release_versions_spec.rb
155
+ - spec/wrapper_methods/get_user_spec.rb
156
+ - spec/wrapper_methods/get_order_spec.rb
157
+ - spec/wrapper_methods/get_user_wantlist_spec.rb
158
+ - spec/wrapper_methods/get_user_folders_spec.rb
159
+ - spec/wrapper_methods/edit_user_spec.rb
160
+ - spec/wrapper_methods/get_user_inventory_spec.rb
161
+ - spec/wrapper_methods/get_listing_spec.rb
162
+ - spec/wrapper_methods/get_label_releases_spec.rb
163
+ - spec/wrapper_methods/get_user_collection_spec.rb
164
+ - spec/wrapper_methods/add_release_to_user_wantlist_spec.rb
82
165
  - spec/wrapper_methods/get_label_spec.rb
83
- - spec/resource_spec.rb
84
- - spec/resources/label_spec.rb
85
- - spec/resources/generic_list_spec.rb
86
- - spec/resources/artist_release_spec.rb
87
- - spec/resources/artist_spec.rb
88
- - spec/resources/release_artist_spec.rb
89
- - spec/resources/search_spec.rb
90
- - spec/resources/label_release_spec.rb
91
- - spec/resources/release_label_spec.rb
92
- - spec/resources/release_spec.rb
93
- - spec/resources/master_release_spec.rb
94
- - spec/resources/master_release_version_spec.rb
95
- - spec/resources/video_spec.rb
96
- - spec/resources/search_result_spec.rb
97
- - spec/resources/image_spec.rb
98
- - spec/resources/track_spec.rb
99
- - spec/resources/format_spec.rb
100
- - spec/wrapper_spec.rb
101
- - spec/spec_helper.rb
166
+ - spec/wrapper_methods/get_price_suggestions_spec.rb
167
+ - spec/wrapper_methods/get_user_folder_spec.rb
168
+ - spec/wrapper_methods/get_master_release_spec.rb
169
+ - spec/wrapper_methods/get_identity_spec.rb
170
+ - spec/wrapper_methods/get_artist_releases_spec.rb
171
+ - spec/wrapper_methods/search_spec.rb
102
172
  homepage: http://www.github.com/buntine/discogs
103
173
  licenses: []
104
174
  post_install_message:
@@ -124,27 +194,52 @@ signing_key:
124
194
  specification_version: 3
125
195
  summary: Discogs::Wrapper is a full wrapper for the http://www.discogs.com API V2
126
196
  test_files:
197
+ - spec/spec_helper.rb
198
+ - spec/samples/valid_search_results.json
199
+ - spec/samples/valid_master_release.json
200
+ - spec/samples/valid_user_folder.json
201
+ - spec/samples/valid_orders.json
202
+ - spec/samples/valid_folder.json
203
+ - spec/samples/valid_user_folders.json
204
+ - spec/samples/valid_wantlist_release.json
205
+ - spec/samples/valid_master_release_versions.json
206
+ - spec/samples/valid_order_messages.json
207
+ - spec/samples/valid_order.json
208
+ - spec/samples/valid_price_suggestions.json
209
+ - spec/samples/valid_fields.json
210
+ - spec/samples/valid_identity.json
211
+ - spec/samples/valid_listing.json
212
+ - spec/samples/valid_artist.json
213
+ - spec/samples/valid_user_collection.json
214
+ - spec/samples/valid_user.json
215
+ - spec/samples/valid_artist_releases.json
216
+ - spec/samples/valid_release.json
217
+ - spec/samples/valid_label.json
218
+ - spec/samples/valid_user_inventory.json
219
+ - spec/samples/valid_user_profile.json
220
+ - spec/samples/valid_label_releases.json
221
+ - spec/samples/valid_user_wantlist.json
222
+ - spec/wrapper_spec.rb
127
223
  - spec/wrapper_methods/get_release_spec.rb
128
- - spec/wrapper_methods/get_master_release_spec.rb
129
- - spec/wrapper_methods/search_spec.rb
224
+ - spec/wrapper_methods/edit_release_in_user_wantlist_spec.rb
225
+ - spec/wrapper_methods/get_order_messages_spec.rb
130
226
  - spec/wrapper_methods/get_artist_spec.rb
227
+ - spec/wrapper_methods/get_master_release_versions_spec.rb
228
+ - spec/wrapper_methods/get_user_spec.rb
229
+ - spec/wrapper_methods/get_order_spec.rb
230
+ - spec/wrapper_methods/get_user_wantlist_spec.rb
231
+ - spec/wrapper_methods/get_user_folders_spec.rb
232
+ - spec/wrapper_methods/edit_user_spec.rb
233
+ - spec/wrapper_methods/get_user_inventory_spec.rb
234
+ - spec/wrapper_methods/get_listing_spec.rb
235
+ - spec/wrapper_methods/get_label_releases_spec.rb
236
+ - spec/wrapper_methods/get_user_collection_spec.rb
237
+ - spec/wrapper_methods/add_release_to_user_wantlist_spec.rb
131
238
  - spec/wrapper_methods/get_label_spec.rb
132
- - spec/resource_spec.rb
133
- - spec/resources/label_spec.rb
134
- - spec/resources/generic_list_spec.rb
135
- - spec/resources/artist_release_spec.rb
136
- - spec/resources/artist_spec.rb
137
- - spec/resources/release_artist_spec.rb
138
- - spec/resources/search_spec.rb
139
- - spec/resources/label_release_spec.rb
140
- - spec/resources/release_label_spec.rb
141
- - spec/resources/release_spec.rb
142
- - spec/resources/master_release_spec.rb
143
- - spec/resources/master_release_version_spec.rb
144
- - spec/resources/video_spec.rb
145
- - spec/resources/search_result_spec.rb
146
- - spec/resources/image_spec.rb
147
- - spec/resources/track_spec.rb
148
- - spec/resources/format_spec.rb
149
- - spec/wrapper_spec.rb
150
- - spec/spec_helper.rb
239
+ - spec/wrapper_methods/get_price_suggestions_spec.rb
240
+ - spec/wrapper_methods/get_user_folder_spec.rb
241
+ - spec/wrapper_methods/get_master_release_spec.rb
242
+ - spec/wrapper_methods/get_identity_spec.rb
243
+ - spec/wrapper_methods/get_artist_releases_spec.rb
244
+ - spec/wrapper_methods/search_spec.rb
245
+ has_rdoc: