discogs-wrapper 2.1.4 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,12 +10,7 @@ describe Discogs::Wrapper do
10
10
  describe ".get_user_collection" do
11
11
 
12
12
  before do
13
- @http_request = mock(Net::HTTP)
14
- @http_response = mock(Net::HTTPResponse, :code => "200", :body => read_sample("user_collection"))
15
- @http_response_as_file = mock(StringIO, :read => read_sample("user_collection"))
16
- Zlib::GzipReader.should_receive(:new).and_return(@http_response_as_file)
17
- @http_request.should_receive(:start).and_return(@http_response)
18
- Net::HTTP.should_receive(:new).and_return(@http_request)
13
+ mock_httparty("user_collection")
19
14
 
20
15
  @user_collection = @wrapper.get_user_collection(@user_name)
21
16
  end
@@ -23,15 +18,15 @@ describe Discogs::Wrapper do
23
18
  describe "when calling simple collection attributes" do
24
19
 
25
20
  it "should have 5 releases per page" do
26
- @user_collection.releases.length.should == 5
21
+ expect(@user_collection.releases.length).to eq(5)
27
22
  end
28
23
 
29
24
  it "should have 309 releases total" do
30
- @user_collection.pagination.items.should == 309
25
+ expect(@user_collection.pagination.items).to eq(309)
31
26
  end
32
27
 
33
28
  it "should not have a bogus attribute" do
34
- @user_collection.bogus_attr.should be_nil
29
+ expect(@user_collection.bogus_attr).to be_nil
35
30
  end
36
31
 
37
32
  end
@@ -11,12 +11,7 @@ describe Discogs::Wrapper do
11
11
  describe ".get_user_folder" do
12
12
 
13
13
  before do
14
- @http_request = mock(Net::HTTP)
15
- @http_response = mock(Net::HTTPResponse, :code => "200", :body => read_sample("user_folder"))
16
- @http_response_as_file = mock(StringIO, :read => read_sample("user_folder"))
17
- Zlib::GzipReader.should_receive(:new).and_return(@http_response_as_file)
18
- @http_request.should_receive(:start).and_return(@http_response)
19
- Net::HTTP.should_receive(:new).and_return(@http_request)
14
+ mock_httparty("user_folder")
20
15
 
21
16
  @user_folder = @wrapper.get_user_folder(@user_name, @folder_id)
22
17
  end
@@ -24,19 +19,19 @@ describe Discogs::Wrapper do
24
19
  describe "when calling simple folder attributes" do
25
20
 
26
21
  it "should have a name" do
27
- @user_folder.name.should == "Uncategorized"
22
+ expect(@user_folder.name).to eq("Uncategorized")
28
23
  end
29
24
 
30
25
  it "should have a count" do
31
- @user_folder[:count].should == 20
26
+ expect(@user_folder[:count]).to eq(20)
32
27
  end
33
28
 
34
29
  it "should not have a bogus attribute" do
35
- @user_folder.bogus_attr.should be_nil
30
+ expect(@user_folder.bogus_attr).to be_nil
36
31
  end
37
32
 
38
33
  it "should raise error if attempting to list non-0 folder" do
39
- lambda { @wrapper.get_user_folder(@user_name, 1) }.should raise_error(Discogs::AuthenticationError)
34
+ expect(lambda { @wrapper.get_user_folder(@user_name, 1) }).to raise_error(Discogs::AuthenticationError)
40
35
  end
41
36
 
42
37
  end
@@ -10,12 +10,7 @@ describe Discogs::Wrapper do
10
10
  describe ".get_user_folders" do
11
11
 
12
12
  before do
13
- @http_request = mock(Net::HTTP)
14
- @http_response = mock(Net::HTTPResponse, :code => "200", :body => read_sample("user_folders"))
15
- @http_response_as_file = mock(StringIO, :read => read_sample("user_folders"))
16
- Zlib::GzipReader.should_receive(:new).and_return(@http_response_as_file)
17
- @http_request.should_receive(:start).and_return(@http_response)
18
- Net::HTTP.should_receive(:new).and_return(@http_request)
13
+ mock_httparty("user_folders")
19
14
 
20
15
  @user_folders = @wrapper.get_user_folders(@user_name)
21
16
  end
@@ -23,16 +18,16 @@ describe Discogs::Wrapper do
23
18
  describe "when calling simple folders attributes" do
24
19
 
25
20
  it "should have 2 folders" do
26
- @user_folders.folders.length.should == 2
21
+ expect(@user_folders.folders.length).to eq(2)
27
22
  end
28
23
 
29
24
  it "should have a name for each folder" do
30
- @user_folders.folders[0].name.should == "All"
31
- @user_folders.folders[1].name.should == "Uncategorized"
25
+ expect(@user_folders.folders[0].name).to eq("All")
26
+ expect(@user_folders.folders[1].name).to eq("Uncategorized")
32
27
  end
33
28
 
34
29
  it "should not have a bogus attribute" do
35
- @user_folders.bogus_attribute.should be_nil
30
+ expect(@user_folders.bogus_attribute).to be_nil
36
31
  end
37
32
 
38
33
  end
@@ -10,12 +10,7 @@ describe Discogs::Wrapper do
10
10
  describe ".get_user_inventory" do
11
11
 
12
12
  before do
13
- @http_request = mock(Net::HTTP)
14
- @http_response = mock(Net::HTTPResponse, :code => "200", :body => read_sample("user_inventory"))
15
- @http_response_as_file = mock(StringIO, :read => read_sample("user_inventory"))
16
- Zlib::GzipReader.should_receive(:new).and_return(@http_response_as_file)
17
- @http_request.should_receive(:start).and_return(@http_response)
18
- Net::HTTP.should_receive(:new).and_return(@http_request)
13
+ mock_httparty("user_inventory")
19
14
 
20
15
  @user_inventory = @wrapper.get_user_inventory(@user_name)
21
16
  end
@@ -23,19 +18,19 @@ describe Discogs::Wrapper do
23
18
  describe "when calling simple inventory attributes" do
24
19
 
25
20
  it "should have 1 listing in total" do
26
- @user_inventory.listings.length.should == 1
21
+ expect(@user_inventory.listings.length).to eq(1)
27
22
  end
28
23
 
29
24
  it "should have a For Sale listing" do
30
- @user_inventory.listings[0].status.should == "For Sale"
25
+ expect(@user_inventory.listings[0].status).to eq("For Sale")
31
26
  end
32
27
 
33
28
  it "should have a price for the first listing" do
34
- @user_inventory.listings[0].price.value.should == 23.0
29
+ expect(@user_inventory.listings[0].price.value).to eq(23.0)
35
30
  end
36
31
 
37
32
  it "should not have a bogus attribute" do
38
- @user_inventory.bogus_attr.should be_nil
33
+ expect(@user_inventory.bogus_attr).to be_nil
39
34
  end
40
35
 
41
36
  end
@@ -10,12 +10,7 @@ describe Discogs::Wrapper do
10
10
  describe ".get_user" do
11
11
 
12
12
  before do
13
- @http_request = mock(Net::HTTP)
14
- @http_response = mock(Net::HTTPResponse, :code => "200", :body => read_sample("user"))
15
- @http_response_as_file = mock(StringIO, :read => read_sample("user"))
16
- Zlib::GzipReader.should_receive(:new).and_return(@http_response_as_file)
17
- @http_request.should_receive(:start).and_return(@http_response)
18
- Net::HTTP.should_receive(:new).and_return(@http_request)
13
+ mock_httparty("user")
19
14
 
20
15
  @user = @wrapper.get_user(@user_name)
21
16
  end
@@ -23,19 +18,19 @@ describe Discogs::Wrapper do
23
18
  describe "when calling simple user attributes" do
24
19
 
25
20
  it "should have a rank" do
26
- @user.rank.should == 1.0
21
+ expect(@user.rank).to eq(1.0)
27
22
  end
28
23
 
29
24
  it "should have a username" do
30
- @user.username.should == "abuntine"
25
+ expect(@user.username).to eq("abuntine")
31
26
  end
32
27
 
33
28
  it "should have a uri" do
34
- @user.uri.should == "http://www.discogs.com/user/abuntine"
29
+ expect(@user.uri).to eq("http://www.discogs.com/user/abuntine")
35
30
  end
36
31
 
37
32
  it "should not have a bogus attribute" do
38
- @user.bogus_attribute.should be_nil
33
+ expect(@user.bogus_attribute).to be_nil
39
34
  end
40
35
 
41
36
  end
@@ -10,12 +10,7 @@ describe Discogs::Wrapper do
10
10
  describe ".get_user_wantlist" do
11
11
 
12
12
  before do
13
- @http_request = mock(Net::HTTP)
14
- @http_response = mock(Net::HTTPResponse, :code => "200", :body => read_sample("user_wantlist"))
15
- @http_response_as_file = mock(StringIO, :read => read_sample("user_wantlist"))
16
- Zlib::GzipReader.should_receive(:new).and_return(@http_response_as_file)
17
- @http_request.should_receive(:start).and_return(@http_response)
18
- Net::HTTP.should_receive(:new).and_return(@http_request)
13
+ mock_httparty("user_wantlist")
19
14
 
20
15
  @user_wantlist = @wrapper.get_user_wantlist(@user_name)
21
16
  end
@@ -23,23 +18,23 @@ describe Discogs::Wrapper do
23
18
  describe "when calling simple wantlist attributes" do
24
19
 
25
20
  it "should have 5 wants per page" do
26
- @user_wantlist.wants.length.should == 5
21
+ expect(@user_wantlist.wants.length).to eq(5)
27
22
  end
28
23
 
29
24
  it "should have 77 wants total" do
30
- @user_wantlist.pagination.items.should == 77
25
+ expect(@user_wantlist.pagination.items).to eq(77)
31
26
  end
32
27
 
33
28
  it "should have a want with a zero rating" do
34
- @user_wantlist.wants.first.rating.should == 0
29
+ expect(@user_wantlist.wants.first.rating).to eq(0)
35
30
  end
36
31
 
37
32
  it "should have a want with some basic information" do
38
- @user_wantlist.wants.first.basic_information.title.should == "18 Jahre Sein / Mach Keine Wellen"
33
+ expect(@user_wantlist.wants.first.basic_information.title).to eq("18 Jahre Sein / Mach Keine Wellen")
39
34
  end
40
35
 
41
36
  it "should not have a bogus attribute" do
42
- @user_wantlist.bogus_attr.should be_nil
37
+ expect(@user_wantlist.bogus_attr).to be_nil
43
38
  end
44
39
 
45
40
  end
@@ -8,39 +8,10 @@ describe Discogs::Wrapper do
8
8
  @search_type = "release"
9
9
  end
10
10
 
11
- describe "when handling an advanced search" do
12
-
13
- it "should properly encode the request URI" do
14
- encoded_uri = "/database/search?f=json&q=Release+Title+artist%3AArtist+Name&token=token&type=release"
15
- get = Net::HTTP::Get.new(encoded_uri)
16
- Net::HTTP::Get.should_receive(:new).with(encoded_uri).and_return(get)
17
-
18
- @wrapper.search("Release Title artist:Artist Name", :type => @search_type)
19
- end
20
-
21
- end
22
-
23
- describe "when handling a search including whitespace" do
24
-
25
- it "should properly encode spaces in the request URI" do
26
- encoded_uri = "/database/search?f=json&q=One+Two&token=token"
27
- get = Net::HTTP::Get.new(encoded_uri)
28
- Net::HTTP::Get.should_receive(:new).with(encoded_uri).and_return(get)
29
-
30
- @wrapper.search("One Two")
31
- end
32
-
33
- end
34
-
35
11
  describe "when asking for search result information" do
36
12
 
37
13
  before do
38
- @http_request = mock(Net::HTTP)
39
- @http_response = mock(Net::HTTPResponse, :code => "200", :body => read_sample("search_results"))
40
- @http_response_as_file = mock(StringIO, :read => read_sample("search_results"))
41
- Zlib::GzipReader.should_receive(:new).and_return(@http_response_as_file)
42
- @http_request.should_receive(:start).and_return(@http_response)
43
- Net::HTTP.should_receive(:new).and_return(@http_request)
14
+ mock_httparty("search_results")
44
15
 
45
16
  @search = @wrapper.search(@search_term, :type => @search_type)
46
17
  end
@@ -48,20 +19,20 @@ describe Discogs::Wrapper do
48
19
  describe "when handling exact results" do
49
20
 
50
21
  it "should have the results stored as an array" do
51
- @search.results.should be_instance_of(Array)
22
+ expect(@search.results).to be_instance_of(Hashie::Array)
52
23
  end
53
24
 
54
25
  it "should have a type for the first result" do
55
- @search.results[0].type.should == "release"
26
+ expect(@search.results[0].type).to eq("release")
56
27
  end
57
28
 
58
29
  it "should have a style array for the first result" do
59
- @search.results[0].style.should be_instance_of(Array)
60
- @search.results[0].style[0].should == "Black Metal"
30
+ expect(@search.results[0].style).to be_instance_of(Hashie::Array)
31
+ expect(@search.results[0].style[0]).to eq("Black Metal")
61
32
  end
62
33
 
63
34
  it "should have a type for the fourth result" do
64
- @search.results[3].type.should == "release"
35
+ expect(@search.results[3].type).to eq("release")
65
36
  end
66
37
 
67
38
  end
@@ -69,11 +40,11 @@ describe Discogs::Wrapper do
69
40
  describe "when handling search results" do
70
41
 
71
42
  it "should have number of results per page attribute" do
72
- @search.pagination.per_page.should == 50
43
+ expect(@search.pagination.per_page).to eq(50)
73
44
  end
74
45
 
75
46
  it "should have number of pages attribute" do
76
- @search.pagination.pages.should == 1
47
+ expect(@search.pagination.pages).to eq(1)
77
48
  end
78
49
 
79
50
  end
@@ -3,23 +3,12 @@ require 'spec_helper'
3
3
  describe Discogs::Wrapper do
4
4
 
5
5
  def mock_http_with_response(code="200", response=nil)
6
- @http_request = mock(Net::HTTP)
7
- @http_response = mock(Net::HTTPResponse, :code => code, :body => "")
6
+ @http_response = double(HTTParty::Response)
7
+ @http_request = class_double(HTTParty).as_stubbed_const
8
8
 
9
- unless response.nil?
10
- @http_response_as_file = mock(StringIO, :read => response)
11
- Zlib::GzipReader.should_receive(:new).and_return(@http_response_as_file)
12
- end
13
-
14
- # As of 04/09/2010 - The and_yield method is not working for me. I've removed
15
- # this from the specs for now, but it's a little troubling because it used to
16
- # work correctly... (replacement on line #21)
17
- #@http_session = mock("HTTP Session")
18
- #@http_session.should_receive(:request).and_return(@http_response)
19
- #@http_request.should_receive(:start).and_yield(@http_session)
9
+ allow(@http_response).to receive_messages(:code => code, :body => "")
20
10
 
21
- @http_request.should_receive(:start).and_return(@http_response)
22
- Net::HTTP.should_receive(:new).and_return(@http_request)
11
+ @http_request.should_receive(:get).and_return(@http_response)
23
12
  end
24
13
 
25
14
  before do
@@ -39,7 +28,9 @@ describe Discogs::Wrapper do
39
28
 
40
29
  describe "requested URIs" do
41
30
  before do
42
- @uri = mock("uri", :host => "", :query => "", :path => "", :port => "", :scheme => "")
31
+ @uri = double("uri")
32
+
33
+ allow(@uri).to receive_messages(:host => "", :query => "", :path => "", :port => "", :scheme => "")
43
34
  end
44
35
 
45
36
  it "should generate the correct release URL to parse" do
@@ -62,7 +53,7 @@ describe Discogs::Wrapper do
62
53
 
63
54
  @wrapper.get_artist_releases(@artist_id, :page => 2, :per_page => 100)
64
55
  end
65
-
56
+
66
57
  it "should generate the correct label URL to parse" do
67
58
  mock_http_with_response "200", read_sample("label")
68
59
  URI.should_receive(:parse).with("https://api.discogs.com/labels/1000?f=json").and_return(@uri)
@@ -77,32 +68,37 @@ describe Discogs::Wrapper do
77
68
  @wrapper.get_label_releases(@label_id, :page => 2, :per_page => 100)
78
69
  end
79
70
 
80
- it "should generate the correct default search URL to parse" do
81
- mock_http_with_response "200", read_sample("search_results")
82
- URI.should_receive(:parse).with("https://api.discogs.com/database/search?f=json&q=barry").and_return(@uri)
71
+ context "#search" do
72
+ before do
73
+ @wrapper = Discogs::Wrapper.new(@app_name, user_token: "fake_token")
74
+ end
83
75
 
84
- @wrapper.search(@search_term)
85
- end
76
+ it "should generate the correct default to URL to parse" do
77
+ mock_http_with_response "200", read_sample("search_results")
78
+ URI.should_receive(:parse).with("https://api.discogs.com/database/search?f=json&q=barry&token=fake_token").and_return(@uri)
86
79
 
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("https://api.discogs.com/database/search?f=json&page=2&per_page=100&q=barry").and_return(@uri)
80
+ @wrapper.search(@search_term)
81
+ end
90
82
 
91
- @wrapper.search(@search_term, :page => 2, :per_page => 100)
92
- end
83
+ it "should generate the correct paginated search URL to parse" do
84
+ mock_http_with_response "200", read_sample("search_results")
85
+ URI.should_receive(:parse).with("https://api.discogs.com/database/search?f=json&page=2&per_page=100&q=barry&token=fake_token").and_return(@uri)
93
86
 
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("https://api.discogs.com/database/search?f=json&page=2&q=barry").and_return(@uri)
87
+ @wrapper.search(@search_term, :page => 2, :per_page => 100)
88
+ end
97
89
 
98
- @wrapper.search(@search_term, :page => 2)
99
- end
90
+ it "should generate another correct paginated search URL to parse" do
91
+ mock_http_with_response "200", read_sample("search_results")
92
+ URI.should_receive(:parse).with("https://api.discogs.com/database/search?f=json&page=2&q=barry&token=fake_token").and_return(@uri)
100
93
 
101
- it "should sanitize the path correctly" do
102
- mock_http_with_response "200", read_sample("search_results")
103
- URI.should_receive(:parse).with("https://api.discogs.com/database/search?f=json&q=Two+Words").and_return(@uri)
94
+ @wrapper.search(@search_term, :page => 2)
95
+ end
104
96
 
105
- @wrapper.search("Two Words")
97
+ it "should sanitize the path correctly" do
98
+ mock_http_with_response "200", read_sample("search_results")
99
+ URI.should_receive(:parse).with("https://api.discogs.com/database/search?f=json&q=Two+Words&token=fake_token").and_return(@uri)
100
+ @wrapper.search("Two Words")
101
+ end
106
102
  end
107
103
 
108
104
  it "should generate the correct default user inventory URL to parse" do
@@ -127,7 +123,9 @@ describe Discogs::Wrapper do
127
123
  end
128
124
 
129
125
  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")
126
+ @search_uri = double("uri")
127
+
128
+ allow(@search_uri).to receive_messages(:host => "api.discogs.com", :query => "q=Sombre+Records&per_page=50&type=release&page=11", :path => "database/search")
131
129
 
132
130
  mock_http_with_response "200", read_sample("search_results")
133
131
  URI.should_receive(:parse).with("https://api.discogs.com/database/search?q=Sombre+Records&per_page=50&type=release&page=11").and_return(@search_uri)
@@ -137,7 +135,9 @@ describe Discogs::Wrapper do
137
135
  end
138
136
 
139
137
  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")
138
+ @artist_uri = double("uri")
139
+
140
+ allow(@artist_uri).to receive_messages(:host => "api.discogs.com", :query => "", :path => "artists/1000")
141
141
 
142
142
  mock_http_with_response "200", read_sample("artist")
143
143
  URI.should_receive(:parse).with("https://api.discogs.com/artists/1000").and_return(@artist_uri)
@@ -166,6 +166,15 @@ describe Discogs::Wrapper do
166
166
 
167
167
  end
168
168
 
169
+ describe "when searching" do
170
+
171
+ it "should raise an exception if the session is not authenticated" do
172
+ lambda { @wrapper.search(@search_term) }.should raise_error(Discogs::AuthenticationError)
173
+ end
174
+
175
+ end
176
+
177
+
169
178
  describe "when removing a release from a wantlist" do
170
179
 
171
180
  it "should raise an exception if the session is not authenticated" do
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discogs-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Buntine
8
- - Many more contributors
8
+ - Many more contributors - see https://github.com/buntine/discogs/graphs/contributors
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-06 00:00:00.000000000 Z
12
+ date: 2017-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry
@@ -26,61 +26,61 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
- name: pry-na
29
+ name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
34
+ version: '3.3'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: '3.3'
42
42
  - !ruby/object:Gem::Dependency
43
- name: rspec
43
+ name: simplecov
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 2.12.0
48
+ version: 0.7.1
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 2.12.0
55
+ version: 0.7.1
56
56
  - !ruby/object:Gem::Dependency
57
- name: simplecov
57
+ name: hashie
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '='
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: 0.7.1
63
- type: :development
62
+ version: '3.0'
63
+ type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '='
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 0.7.1
69
+ version: '3.0'
70
70
  - !ruby/object:Gem::Dependency
71
- name: hashie
71
+ name: httparty
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '3.0'
76
+ version: '0.14'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '3.0'
83
+ version: '0.14'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: oauth
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -97,7 +97,7 @@ dependencies:
97
97
  version: 0.4.7
98
98
  description: Discogs::Wrapper is a full wrapper for the http://www.discogs.com API
99
99
  V2. Supports authentication, pagination, JSON.
100
- email: info@andrewbuntine.com
100
+ email: info@bunts.io
101
101
  executables: []
102
102
  extensions: []
103
103
  extra_rdoc_files: []
@@ -156,7 +156,7 @@ files:
156
156
  - spec/wrapper_methods/get_user_wantlist_spec.rb
157
157
  - spec/wrapper_methods/search_spec.rb
158
158
  - spec/wrapper_spec.rb
159
- homepage: http://www.github.com/buntine/discogs
159
+ homepage: https://www.github.com/buntine/discogs
160
160
  licenses:
161
161
  - MIT
162
162
  metadata: {}
@@ -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.4.8
179
+ rubygems_version: 2.5.1
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
184
  - spec/wrapper_spec.rb
185
- - spec/spec_helper.rb
186
- - spec/wrapper_methods/get_user_folder_spec.rb
187
- - spec/wrapper_methods/get_user_spec.rb
185
+ - spec/wrapper_methods/get_order_messages_spec.rb
186
+ - spec/wrapper_methods/edit_user_spec.rb
187
+ - spec/wrapper_methods/get_identity_spec.rb
188
188
  - spec/wrapper_methods/get_user_wantlist_spec.rb
189
- - spec/wrapper_methods/get_master_release_versions_spec.rb
190
189
  - spec/wrapper_methods/search_spec.rb
191
- - spec/wrapper_methods/get_user_collection_spec.rb
192
190
  - spec/wrapper_methods/get_order_spec.rb
193
- - spec/wrapper_methods/get_listing_spec.rb
194
- - spec/wrapper_methods/get_price_suggestions_spec.rb
195
- - spec/wrapper_methods/add_release_to_user_wantlist_spec.rb
196
- - spec/wrapper_methods/get_master_release_spec.rb
197
- - spec/wrapper_methods/get_release_spec.rb
198
- - spec/wrapper_methods/get_order_messages_spec.rb
199
- - spec/wrapper_methods/get_identity_spec.rb
200
191
  - spec/wrapper_methods/get_artist_spec.rb
201
- - spec/wrapper_methods/edit_user_spec.rb
202
- - spec/wrapper_methods/get_artist_releases_spec.rb
203
- - spec/wrapper_methods/edit_release_in_user_wantlist_spec.rb
192
+ - spec/wrapper_methods/get_release_spec.rb
204
193
  - spec/wrapper_methods/get_user_folders_spec.rb
194
+ - spec/wrapper_methods/get_master_release_spec.rb
195
+ - spec/wrapper_methods/add_release_to_user_wantlist_spec.rb
196
+ - spec/wrapper_methods/get_user_spec.rb
197
+ - spec/wrapper_methods/get_master_release_versions_spec.rb
198
+ - spec/wrapper_methods/get_price_suggestions_spec.rb
205
199
  - spec/wrapper_methods/get_user_inventory_spec.rb
206
- - spec/wrapper_methods/get_label_spec.rb
200
+ - spec/wrapper_methods/get_listing_spec.rb
207
201
  - spec/wrapper_methods/get_label_releases_spec.rb
208
- - spec/samples/valid_user_wantlist.json
209
- - spec/samples/valid_search_results.json
210
- - spec/samples/valid_fields.json
211
- - spec/samples/valid_user_folder.json
212
- - spec/samples/valid_user_collection.json
202
+ - spec/wrapper_methods/edit_release_in_user_wantlist_spec.rb
203
+ - spec/wrapper_methods/get_user_collection_spec.rb
204
+ - spec/wrapper_methods/get_label_spec.rb
205
+ - spec/wrapper_methods/get_artist_releases_spec.rb
206
+ - spec/wrapper_methods/get_user_folder_spec.rb
207
+ - spec/spec_helper.rb
213
208
  - spec/samples/valid_artist_releases.json
214
- - spec/samples/valid_master_release.json
209
+ - spec/samples/valid_master_release_versions.json
210
+ - spec/samples/valid_user.json
211
+ - spec/samples/valid_user_collection.json
212
+ - spec/samples/valid_identity.json
215
213
  - spec/samples/valid_folder.json
216
- - spec/samples/valid_price_suggestions.json
217
- - spec/samples/valid_listing.json
218
- - spec/samples/valid_order_messages.json
214
+ - spec/samples/valid_user_wantlist.json
215
+ - spec/samples/valid_release.json
216
+ - spec/samples/valid_search_results.json
217
+ - spec/samples/valid_order.json
219
218
  - spec/samples/valid_wantlist_release.json
220
- - spec/samples/valid_label_releases.json
219
+ - spec/samples/valid_order_messages.json
220
+ - spec/samples/valid_orders.json
221
+ - spec/samples/valid_price_suggestions.json
222
+ - spec/samples/valid_artist.json
221
223
  - spec/samples/valid_label.json
224
+ - spec/samples/valid_user_folder.json
225
+ - spec/samples/valid_label_releases.json
222
226
  - spec/samples/valid_user_profile.json
223
- - spec/samples/valid_user_inventory.json
224
- - spec/samples/valid_identity.json
225
- - spec/samples/valid_user.json
226
- - spec/samples/valid_master_release_versions.json
227
- - spec/samples/valid_artist.json
228
- - spec/samples/valid_release.json
227
+ - spec/samples/valid_master_release.json
229
228
  - spec/samples/valid_user_folders.json
230
- - spec/samples/valid_order.json
231
- - spec/samples/valid_orders.json
229
+ - spec/samples/valid_user_inventory.json
230
+ - spec/samples/valid_fields.json
231
+ - spec/samples/valid_listing.json