discogs-wrapper 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/lib/discogs.rb +3 -3
  3. data/lib/wrapper/wrapper.rb +1 -1
  4. metadata +42 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 91031cf38db39dcbff5554e7640a13be2e4d5e63
4
- data.tar.gz: 21a92fbc0118bbac04c4dbf101dc0e2763d1ec94
2
+ SHA256:
3
+ metadata.gz: 452ba1fcbd498273e0b9f108f6e5b7aee3a702ae0a319ccfec159e9970209bcb
4
+ data.tar.gz: 552d70e54152bafd4c09e08d8552c99efe718bea936e634b8fbaefc7df55b20b
5
5
  SHA512:
6
- metadata.gz: 27b9662b5746ec7f045adaf9d669b9dd948dd3d1c18eed9ef7e78e9e9dbecd0c9b5bed58df5f1706ab9974b31b551c1f073f20b74f275d12e867c6971d32641e
7
- data.tar.gz: 73b068fbff4032a6543e1031aa3e2c000281de36548c9dc6e976dd2475c540f8738b09ed9f537390ae2039a0e8c2accf289c8ab7e91131992e77e74cb8e9b633
6
+ metadata.gz: 0e0449729d5e7b79b6e7f067fa4cbe3cbc0b9fa9f8f7cdfc3a3b384b14f7f0e6614b2fb66efd56cddc5a1505d1b542e02952d7a0b176e48cb5496bbd1266bf99
7
+ data.tar.gz: 95b4ebf0d2bc534520b18d7a0b4babb04e444f99ec2eda73ba258a926225018f385af94c876d3f1d6b1da81f89e8ecc03991eb0e5957b901fb36889a0e19e365
@@ -12,9 +12,9 @@
12
12
  module Discogs; end
13
13
 
14
14
  # Custom exceptions.
15
- class Discogs::UnknownResource < Exception; end
16
- class Discogs::InternalServerError < Exception; end
17
- class Discogs::AuthenticationError < Exception; end
15
+ class Discogs::UnknownResource < StandardError; end
16
+ class Discogs::InternalServerError < StandardError; end
17
+ class Discogs::AuthenticationError < StandardError; end
18
18
 
19
19
  # Loading sequence.
20
20
  require File.dirname(__FILE__) + "/wrapper/wrapper"
@@ -629,7 +629,7 @@ class Discogs::Wrapper
629
629
  # @return [Hash] messages for order
630
630
  def list_order_messages(order_id, pagination={})
631
631
  authenticated? do
632
- query_and_build "marketplace/orders#{order_id}/messages", pagination
632
+ query_and_build "marketplace/orders/#{order_id}/messages", pagination
633
633
  end
634
634
  end
635
635
 
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: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Buntine
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-16 00:00:00.000000000 Z
12
+ date: 2019-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry
@@ -176,56 +176,56 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.6.12
179
+ rubygems_version: 2.7.9
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Discogs::Wrapper is a full wrapper for the http://www.discogs.com API V2
183
183
  test_files:
184
+ - spec/samples/valid_user_inventory.json
185
+ - spec/samples/valid_user_folders.json
186
+ - spec/samples/valid_artist_releases.json
187
+ - spec/samples/valid_order.json
188
+ - spec/samples/valid_order_messages.json
189
+ - spec/samples/valid_orders.json
190
+ - spec/samples/valid_fields.json
191
+ - spec/samples/valid_master_release_versions.json
192
+ - spec/samples/valid_artist.json
193
+ - spec/samples/valid_user_folder.json
194
+ - spec/samples/valid_identity.json
195
+ - spec/samples/valid_release.json
196
+ - spec/samples/valid_user_profile.json
197
+ - spec/samples/valid_user.json
198
+ - spec/samples/valid_listing.json
199
+ - spec/samples/valid_label.json
200
+ - spec/samples/valid_label_releases.json
201
+ - spec/samples/valid_user_wantlist.json
202
+ - spec/samples/valid_folder.json
203
+ - spec/samples/valid_wantlist_release.json
204
+ - spec/samples/valid_price_suggestions.json
205
+ - spec/samples/valid_user_collection.json
206
+ - spec/samples/valid_master_release.json
207
+ - spec/samples/valid_search_results.json
184
208
  - spec/spec_helper.rb
185
- - spec/wrapper_methods/get_identity_spec.rb
209
+ - spec/wrapper_methods/get_label_releases_spec.rb
210
+ - spec/wrapper_methods/get_order_spec.rb
211
+ - spec/wrapper_methods/get_listing_spec.rb
212
+ - spec/wrapper_methods/get_user_collection_spec.rb
213
+ - spec/wrapper_methods/get_artist_spec.rb
214
+ - spec/wrapper_methods/get_price_suggestions_spec.rb
215
+ - spec/wrapper_methods/get_user_inventory_spec.rb
186
216
  - spec/wrapper_methods/get_master_release_versions_spec.rb
217
+ - spec/wrapper_methods/get_release_spec.rb
187
218
  - spec/wrapper_methods/search_spec.rb
188
- - spec/wrapper_methods/get_user_folders_spec.rb
189
- - spec/wrapper_methods/get_user_inventory_spec.rb
190
- - spec/wrapper_methods/get_listing_spec.rb
219
+ - spec/wrapper_methods/get_identity_spec.rb
220
+ - spec/wrapper_methods/get_label_spec.rb
191
221
  - spec/wrapper_methods/get_user_folder_spec.rb
192
- - spec/wrapper_methods/get_artist_spec.rb
193
- - spec/wrapper_methods/get_user_spec.rb
222
+ - spec/wrapper_methods/get_order_messages_spec.rb
194
223
  - spec/wrapper_methods/edit_user_spec.rb
224
+ - spec/wrapper_methods/get_artist_releases_spec.rb
225
+ - spec/wrapper_methods/add_release_to_user_wantlist_spec.rb
195
226
  - spec/wrapper_methods/get_master_release_spec.rb
227
+ - spec/wrapper_methods/get_user_spec.rb
196
228
  - spec/wrapper_methods/edit_release_in_user_wantlist_spec.rb
197
- - spec/wrapper_methods/get_artist_releases_spec.rb
198
- - spec/wrapper_methods/get_order_spec.rb
199
- - spec/wrapper_methods/get_label_spec.rb
200
229
  - spec/wrapper_methods/get_user_wantlist_spec.rb
201
- - spec/wrapper_methods/get_label_releases_spec.rb
202
- - spec/wrapper_methods/add_release_to_user_wantlist_spec.rb
203
- - spec/wrapper_methods/get_release_spec.rb
204
- - spec/wrapper_methods/get_order_messages_spec.rb
205
- - spec/wrapper_methods/get_user_collection_spec.rb
206
- - spec/wrapper_methods/get_price_suggestions_spec.rb
207
- - spec/samples/valid_user_profile.json
208
- - spec/samples/valid_user_wantlist.json
209
- - spec/samples/valid_master_release.json
210
- - spec/samples/valid_artist_releases.json
211
- - spec/samples/valid_artist.json
212
- - spec/samples/valid_label.json
213
- - spec/samples/valid_user_folder.json
214
- - spec/samples/valid_user_collection.json
215
- - spec/samples/valid_wantlist_release.json
216
- - spec/samples/valid_fields.json
217
- - spec/samples/valid_order_messages.json
218
- - spec/samples/valid_user_inventory.json
219
- - spec/samples/valid_orders.json
220
- - spec/samples/valid_listing.json
221
- - spec/samples/valid_release.json
222
- - spec/samples/valid_user_folders.json
223
- - spec/samples/valid_master_release_versions.json
224
- - spec/samples/valid_price_suggestions.json
225
- - spec/samples/valid_order.json
226
- - spec/samples/valid_user.json
227
- - spec/samples/valid_search_results.json
228
- - spec/samples/valid_folder.json
229
- - spec/samples/valid_identity.json
230
- - spec/samples/valid_label_releases.json
230
+ - spec/wrapper_methods/get_user_folders_spec.rb
231
231
  - spec/wrapper_spec.rb