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 CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -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 the gemspec command
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.3"
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-04-21}
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
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "itunes-search.gemspec",
27
- "lib/itunes-search.rb",
28
- "lib/itunes-search/base.rb",
29
- "lib/itunes-search/result.rb",
30
- "lib/itunes-search/search.rb",
31
- "test/helper.rb",
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.3.6}
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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
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"])
@@ -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
- http = Net::HTTP.new(uri.host,uri.port)
28
- http.open_timeout=5
29
- http.read_timeout=5
30
- req = Net::HTTP::Get.new(uri.path)
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: false
5
- segments:
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-04-21 00:00:00 -04:00
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
- - --charset=UTF-8
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.3.6
71
+ rubygems_version: 1.7.2
82
72
  signing_key:
83
73
  specification_version: 3
84
74
  summary: Itunes Search
85
- test_files:
86
- - test/helper.rb
87
- - test/test_itunes-search.rb
75
+ test_files: []
76
+
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC