itunes-search 0.2.3 → 0.2.4
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/VERSION +1 -1
- data/itunes-search.gemspec +17 -24
- data/lib/itunes-search/search.rb +5 -7
- metadata +11 -22
- data/.gitignore +0 -21
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.4
|
data/itunes-search.gemspec
CHANGED
|
@@ -1,51 +1,44 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{itunes-search}
|
|
8
|
-
s.version = "0.2.
|
|
8
|
+
s.version = "0.2.4"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["jeff durand"]
|
|
12
|
-
s.date = %q{2011-
|
|
12
|
+
s.date = %q{2011-05-30}
|
|
13
13
|
s.description = %q{Pretty simple interface for the itunes search api will return results as array of results objects and offer reasonable accessor methods variables}
|
|
14
14
|
s.email = %q{jeff.durand@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
16
|
"LICENSE",
|
|
17
|
-
|
|
17
|
+
"README.rdoc"
|
|
18
18
|
]
|
|
19
19
|
s.files = [
|
|
20
20
|
".document",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"test/test_itunes-search.rb"
|
|
21
|
+
"LICENSE",
|
|
22
|
+
"README.rdoc",
|
|
23
|
+
"Rakefile",
|
|
24
|
+
"VERSION",
|
|
25
|
+
"itunes-search.gemspec",
|
|
26
|
+
"lib/itunes-search.rb",
|
|
27
|
+
"lib/itunes-search/base.rb",
|
|
28
|
+
"lib/itunes-search/result.rb",
|
|
29
|
+
"lib/itunes-search/search.rb",
|
|
30
|
+
"test/helper.rb",
|
|
31
|
+
"test/test_itunes-search.rb"
|
|
33
32
|
]
|
|
34
33
|
s.homepage = %q{http://github.com/johnnyiller/itunes-search}
|
|
35
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
|
36
34
|
s.require_paths = ["lib"]
|
|
37
|
-
s.rubygems_version = %q{1.
|
|
35
|
+
s.rubygems_version = %q{1.7.2}
|
|
38
36
|
s.summary = %q{Itunes Search}
|
|
39
|
-
s.test_files = [
|
|
40
|
-
"test/helper.rb",
|
|
41
|
-
"test/test_itunes-search.rb"
|
|
42
|
-
]
|
|
43
37
|
|
|
44
38
|
if s.respond_to? :specification_version then
|
|
45
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
46
39
|
s.specification_version = 3
|
|
47
40
|
|
|
48
|
-
if Gem::Version.new(Gem::
|
|
41
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
49
42
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
|
50
43
|
else
|
|
51
44
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
data/lib/itunes-search/search.rb
CHANGED
|
@@ -22,14 +22,12 @@ module ItunesSearch
|
|
|
22
22
|
original_method_missing method_name, args
|
|
23
23
|
end
|
|
24
24
|
def fetch
|
|
25
|
-
puts "#{ItunesSearch::ENDPOINT}?#{self.options.to_url_params}"
|
|
25
|
+
#puts "#{ItunesSearch::ENDPOINT}?#{self.options.to_url_params}"
|
|
26
26
|
uri = URI.parse("#{ItunesSearch::ENDPOINT}?#{self.options.to_url_params}")
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
resp = http.start do |http|
|
|
32
|
-
http.request(req)
|
|
27
|
+
resp = Net::HTTP.start(uri.host,uri.port) do |http|
|
|
28
|
+
http.open_timeout=5
|
|
29
|
+
http.read_timeout=5
|
|
30
|
+
http.get("#{uri.path}?#{self.options.to_url_params}")
|
|
33
31
|
end
|
|
34
32
|
self.json=resp.body
|
|
35
33
|
end
|
metadata
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: itunes-search
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
prerelease:
|
|
5
|
-
|
|
6
|
-
- 0
|
|
7
|
-
- 2
|
|
8
|
-
- 3
|
|
9
|
-
version: 0.2.3
|
|
4
|
+
prerelease:
|
|
5
|
+
version: 0.2.4
|
|
10
6
|
platform: ruby
|
|
11
7
|
authors:
|
|
12
8
|
- jeff durand
|
|
@@ -14,18 +10,16 @@ autorequire:
|
|
|
14
10
|
bindir: bin
|
|
15
11
|
cert_chain: []
|
|
16
12
|
|
|
17
|
-
date: 2011-
|
|
18
|
-
default_executable:
|
|
13
|
+
date: 2011-05-30 00:00:00 Z
|
|
19
14
|
dependencies:
|
|
20
15
|
- !ruby/object:Gem::Dependency
|
|
21
16
|
name: shoulda
|
|
22
17
|
prerelease: false
|
|
23
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
19
|
+
none: false
|
|
24
20
|
requirements:
|
|
25
21
|
- - ">="
|
|
26
22
|
- !ruby/object:Gem::Version
|
|
27
|
-
segments:
|
|
28
|
-
- 0
|
|
29
23
|
version: "0"
|
|
30
24
|
type: :development
|
|
31
25
|
version_requirements: *id001
|
|
@@ -40,7 +34,6 @@ extra_rdoc_files:
|
|
|
40
34
|
- README.rdoc
|
|
41
35
|
files:
|
|
42
36
|
- .document
|
|
43
|
-
- .gitignore
|
|
44
37
|
- LICENSE
|
|
45
38
|
- README.rdoc
|
|
46
39
|
- Rakefile
|
|
@@ -52,36 +45,32 @@ files:
|
|
|
52
45
|
- lib/itunes-search/search.rb
|
|
53
46
|
- test/helper.rb
|
|
54
47
|
- test/test_itunes-search.rb
|
|
55
|
-
has_rdoc: true
|
|
56
48
|
homepage: http://github.com/johnnyiller/itunes-search
|
|
57
49
|
licenses: []
|
|
58
50
|
|
|
59
51
|
post_install_message:
|
|
60
|
-
rdoc_options:
|
|
61
|
-
|
|
52
|
+
rdoc_options: []
|
|
53
|
+
|
|
62
54
|
require_paths:
|
|
63
55
|
- lib
|
|
64
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
65
58
|
requirements:
|
|
66
59
|
- - ">="
|
|
67
60
|
- !ruby/object:Gem::Version
|
|
68
|
-
segments:
|
|
69
|
-
- 0
|
|
70
61
|
version: "0"
|
|
71
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
|
+
none: false
|
|
72
64
|
requirements:
|
|
73
65
|
- - ">="
|
|
74
66
|
- !ruby/object:Gem::Version
|
|
75
|
-
segments:
|
|
76
|
-
- 0
|
|
77
67
|
version: "0"
|
|
78
68
|
requirements: []
|
|
79
69
|
|
|
80
70
|
rubyforge_project:
|
|
81
|
-
rubygems_version: 1.
|
|
71
|
+
rubygems_version: 1.7.2
|
|
82
72
|
signing_key:
|
|
83
73
|
specification_version: 3
|
|
84
74
|
summary: Itunes Search
|
|
85
|
-
test_files:
|
|
86
|
-
|
|
87
|
-
- test/test_itunes-search.rb
|
|
75
|
+
test_files: []
|
|
76
|
+
|