music_xray_api 0.2.3 → 0.3.0

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/.gitignore ADDED
@@ -0,0 +1,22 @@
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
22
+ test/credentials.yml
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.3.0
@@ -1,46 +1,53 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "music_xray_api"
8
- s.version = "0.2.3"
7
+ s.name = %q{music_xray_api}
8
+ s.version = "0.3.0"
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 = "2012-05-02"
13
- s.description = "wrapper for music xray api "
14
- s.email = "jeff.durand@gmail.com"
12
+ s.date = %q{2012-11-13}
13
+ s.description = %q{wrapper for music xray api }
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
- "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "lib/music_xray_api.rb",
26
- "lib/music_xray_api/base.rb",
27
- "lib/music_xray_api/track.rb",
28
- "lib/music_xray_api/track_match_request.rb",
29
- "lib/music_xray_api/track_set.rb",
30
- "lib/music_xray_api/track_set_member.rb",
31
- "music_xray_api.gemspec",
32
- "test/helper.rb",
33
- "test/test_music_xray_api.rb"
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/music_xray_api.rb",
27
+ "lib/music_xray_api/base.rb",
28
+ "lib/music_xray_api/track.rb",
29
+ "lib/music_xray_api/track_match_request.rb",
30
+ "lib/music_xray_api/track_set.rb",
31
+ "lib/music_xray_api/track_set_member.rb",
32
+ "music_xray_api.gemspec",
33
+ "test/helper.rb",
34
+ "test/test_music_xray_api.rb"
34
35
  ]
35
- s.homepage = "http://github.com/johnnyiller/Music-Xray-Api-Wrapper"
36
+ s.homepage = %q{http://github.com/johnnyiller/Music-Xray-Api-Wrapper}
37
+ s.rdoc_options = ["--charset=UTF-8"]
36
38
  s.require_paths = ["lib"]
37
- s.rubygems_version = "1.8.23"
38
- s.summary = "Interface with the music xray api"
39
+ s.rubygems_version = %q{1.3.6}
40
+ s.summary = %q{Interface with the music xray api}
41
+ s.test_files = [
42
+ "test/helper.rb",
43
+ "test/test_music_xray_api.rb"
44
+ ]
39
45
 
40
46
  if s.respond_to? :specification_version then
47
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
41
48
  s.specification_version = 3
42
49
 
43
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
44
51
  s.add_runtime_dependency(%q<xml-simple>, [">= 0"])
45
52
  else
46
53
  s.add_dependency(%q<xml-simple>, [">= 0"])
@@ -14,15 +14,24 @@ class TestMusicXrayApi < Test::Unit::TestCase
14
14
  MusicXrayApi::TrackMatchRequest.set_headers
15
15
 
16
16
  end
17
- should "Find some cached tracks" do
18
- params = {:application_name=>"present",:application_id=>"246458"}
19
- puts MusicXrayApi::Track.find(:all,:params=>params).first.inspect
17
+ #should "Find some cached tracks" do
18
+ # params = {:application_name=>"present",:application_id=>"246458"}
19
+ # puts MusicXrayApi::Track.find(:all,:params=>params).first.inspect
20
+ #end
21
+ should "be able to match a song" do
22
+ t = MusicXrayApi::Track.find(521567)
23
+ puts t.inspect
24
+ params = {:track_id=>t.id,
25
+ :track_set_id=>"drop_boxes",
26
+ :result_delivery_method=>'none'}
27
+ #tmr = MusicXrayApi::TrackMatchRequest.create(params)
28
+
29
+ # tmr.inspect
20
30
  end
21
- #
22
- # should "Be able to create a track." do
23
- # tr = MusicXrayApi::Track.create({:mp3_url=>"http://www.google.com", :uri=>"xray/#{Time.now.to_i.to_s}"})
24
- # puts tr.id
25
- # end
31
+ #should "Be able to create a track." do
32
+ #tr = MusicXrayApi::Track.create({:mp3_url=>"http://development.musicxray.com/testsong.mp3", :uri=>"xray/#{Time.now.to_i.to_s}"})
33
+ # puts tr.id
34
+ #end
26
35
  # should "be able to do crud for track sets" do
27
36
  # ts = MusicXrayApi::TrackSet.new
28
37
  # ts.name = "another my new one"
metadata CHANGED
@@ -1,8 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music_xray_api
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.2.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
6
10
  platform: ruby
7
11
  authors:
8
12
  - jeff durand
@@ -10,16 +14,18 @@ autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
16
 
13
- date: 2012-05-02 00:00:00 Z
17
+ date: 2012-11-13 00:00:00 -05:00
18
+ default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: xml-simple
17
22
  prerelease: false
18
23
  requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
23
29
  version: "0"
24
30
  type: :runtime
25
31
  version_requirements: *id001
@@ -34,6 +40,7 @@ extra_rdoc_files:
34
40
  - README.rdoc
35
41
  files:
36
42
  - .document
43
+ - .gitignore
37
44
  - LICENSE
38
45
  - README.rdoc
39
46
  - Rakefile
@@ -47,32 +54,36 @@ files:
47
54
  - music_xray_api.gemspec
48
55
  - test/helper.rb
49
56
  - test/test_music_xray_api.rb
57
+ has_rdoc: true
50
58
  homepage: http://github.com/johnnyiller/Music-Xray-Api-Wrapper
51
59
  licenses: []
52
60
 
53
61
  post_install_message:
54
- rdoc_options: []
55
-
62
+ rdoc_options:
63
+ - --charset=UTF-8
56
64
  require_paths:
57
65
  - lib
58
66
  required_ruby_version: !ruby/object:Gem::Requirement
59
- none: false
60
67
  requirements:
61
68
  - - ">="
62
69
  - !ruby/object:Gem::Version
70
+ segments:
71
+ - 0
63
72
  version: "0"
64
73
  required_rubygems_version: !ruby/object:Gem::Requirement
65
- none: false
66
74
  requirements:
67
75
  - - ">="
68
76
  - !ruby/object:Gem::Version
77
+ segments:
78
+ - 0
69
79
  version: "0"
70
80
  requirements: []
71
81
 
72
82
  rubyforge_project:
73
- rubygems_version: 1.8.23
83
+ rubygems_version: 1.3.6
74
84
  signing_key:
75
85
  specification_version: 3
76
86
  summary: Interface with the music xray api
77
- test_files: []
78
-
87
+ test_files:
88
+ - test/helper.rb
89
+ - test/test_music_xray_api.rb