insound_api 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/Gemfile +12 -0
- data/LICENSE.txt +20 -0
- data/README.md +36 -0
- data/Rakefile +52 -0
- data/VERSION +1 -0
- data/insound_api.gemspec +83 -0
- data/lib/insound_api.rb +41 -0
- data/lib/insound_api/artist.rb +18 -0
- data/lib/insound_api/config.rb +5 -0
- data/lib/insound_api/object_base.rb +27 -0
- data/lib/insound_api/product.rb +17 -0
- data/lib/insound_api/query.rb +17 -0
- data/lib/insound_api/request.rb +76 -0
- data/lib/insound_api/response.rb +70 -0
- data/lib/insound_api/results.rb +68 -0
- data/test/config_test.rb +11 -0
- data/test/helper.rb +69 -0
- data/test/query_test.rb +140 -0
- data/test/request_test.rb +41 -0
- data/test/response_test.rb +40 -0
- data/test/webmock/bad_credentials.xml +8 -0
- data/test/webmock/jimmy_eat_world_vinyl.xml +45 -0
- data/test/webmock/maxresults.xml +332 -0
- data/test/webmock/no_results_found.xml +12 -0
- data/test/webmock/zen_arcade.xml +36 -0
- metadata +159 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
<insound_query_response>
|
2
|
+
<warnings/>
|
3
|
+
<errors/>
|
4
|
+
<product_matches/>
|
5
|
+
<artist_matches/>
|
6
|
+
<total_results>0</total_results>
|
7
|
+
<total_product_results>0</total_product_results>
|
8
|
+
<total_artist_results>0</total_artist_results>
|
9
|
+
<search_url>
|
10
|
+
http://www.insound.com/search/?query=xxcxccxcx&from=86902
|
11
|
+
</search_url>
|
12
|
+
</insound_query_response>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<insound_query_response>
|
2
|
+
<warnings/>
|
3
|
+
<errors/>
|
4
|
+
<product_matches>
|
5
|
+
<product>
|
6
|
+
<url>
|
7
|
+
http://www.insound.com/Zen-Arcade-Vinyl-LP-Husker-Du/P/INS13241/&from=86902
|
8
|
+
</url>
|
9
|
+
<artist_name>Husker Du</artist_name>
|
10
|
+
<title>Zen Arcade</title>
|
11
|
+
<format>Vinyl LP</format>
|
12
|
+
<product_id>INS13241</product_id>
|
13
|
+
</product>
|
14
|
+
<product>
|
15
|
+
<url>
|
16
|
+
http://www.insound.com/Zen-Arcade-CD-Husker-Du/P/INS58556/&from=86902
|
17
|
+
</url>
|
18
|
+
<artist_name>Husker Du</artist_name>
|
19
|
+
<title>Zen Arcade</title>
|
20
|
+
<format>CD</format>
|
21
|
+
<product_id>INS58556</product_id>
|
22
|
+
</product>
|
23
|
+
</product_matches>
|
24
|
+
<artist_matches>
|
25
|
+
<artist>
|
26
|
+
<artist_name>Husker Du</artist_name>
|
27
|
+
<url>
|
28
|
+
http://www.insound.com/Husker-Du/A/21544/&from=86902
|
29
|
+
</url>
|
30
|
+
<artist_id>21544</artist_id>
|
31
|
+
</artist>
|
32
|
+
</artist_matches>
|
33
|
+
<total_results>3</total_results>
|
34
|
+
<total_product_results>2</total_product_results>
|
35
|
+
<total_artist_results>1</total_artist_results>
|
36
|
+
</insound_query_response>
|
metadata
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: insound_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.2
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Zachary Kloepping
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2013-05-06 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rest-client
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: nokogiri
|
28
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: shoulda
|
39
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: "0"
|
45
|
+
type: :development
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rdoc
|
50
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: "3.12"
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: bundler
|
61
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: "0"
|
67
|
+
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: jeweler
|
72
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.8.4
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: webmock
|
83
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: "0"
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *id007
|
92
|
+
description: TA ruby gem for accessing the insound.com Web Service API for affiliates
|
93
|
+
email: kloeppingzd@gmail.com
|
94
|
+
executables: []
|
95
|
+
|
96
|
+
extensions: []
|
97
|
+
|
98
|
+
extra_rdoc_files:
|
99
|
+
- LICENSE.txt
|
100
|
+
- README.md
|
101
|
+
files:
|
102
|
+
- .travis.yml
|
103
|
+
- Gemfile
|
104
|
+
- LICENSE.txt
|
105
|
+
- README.md
|
106
|
+
- Rakefile
|
107
|
+
- VERSION
|
108
|
+
- insound_api.gemspec
|
109
|
+
- lib/insound_api.rb
|
110
|
+
- lib/insound_api/artist.rb
|
111
|
+
- lib/insound_api/config.rb
|
112
|
+
- lib/insound_api/object_base.rb
|
113
|
+
- lib/insound_api/product.rb
|
114
|
+
- lib/insound_api/query.rb
|
115
|
+
- lib/insound_api/request.rb
|
116
|
+
- lib/insound_api/response.rb
|
117
|
+
- lib/insound_api/results.rb
|
118
|
+
- test/config_test.rb
|
119
|
+
- test/helper.rb
|
120
|
+
- test/query_test.rb
|
121
|
+
- test/request_test.rb
|
122
|
+
- test/response_test.rb
|
123
|
+
- test/webmock/bad_credentials.xml
|
124
|
+
- test/webmock/jimmy_eat_world_vinyl.xml
|
125
|
+
- test/webmock/maxresults.xml
|
126
|
+
- test/webmock/no_results_found.xml
|
127
|
+
- test/webmock/zen_arcade.xml
|
128
|
+
homepage: http://github.com/spilliton/insound_api
|
129
|
+
licenses:
|
130
|
+
- MIT
|
131
|
+
post_install_message:
|
132
|
+
rdoc_options: []
|
133
|
+
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
hash: 3429750354616207777
|
142
|
+
segments:
|
143
|
+
- 0
|
144
|
+
version: "0"
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: "0"
|
151
|
+
requirements: []
|
152
|
+
|
153
|
+
rubyforge_project:
|
154
|
+
rubygems_version: 1.8.24
|
155
|
+
signing_key:
|
156
|
+
specification_version: 3
|
157
|
+
summary: A ruby gem for accessing the insound.com Web Service API for affiliates
|
158
|
+
test_files: []
|
159
|
+
|