itunes-observer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,7 @@
4
4
  # OSX only
5
5
 
6
6
  require 'rubygems'
7
+ require 'itunes_observer'
7
8
  require 'lastfm'
8
9
  require 'pit'
9
10
 
@@ -34,8 +35,6 @@ def main
34
35
 
35
36
  lastfm.session = session
36
37
 
37
- require 'itunes_observer'
38
-
39
38
  ITunesObserver.new {|result|
40
39
  name = result['Name']
41
40
  artist = result['Artist']
@@ -1,7 +1,7 @@
1
1
  require 'osx/cocoa'
2
2
 
3
3
  class ITunesObserver
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
 
6
6
  def initialize(&callback)
7
7
  observer = Observer.alloc.init
@@ -42,6 +42,8 @@ class ITunesObserver
42
42
 
43
43
  def [](key)
44
44
  case value = @attributes[key]
45
+ when OSX::NSMutableString
46
+ value.to_s
45
47
  when OSX::NSCFString
46
48
  value.to_s
47
49
  else
@@ -50,3 +52,6 @@ class ITunesObserver
50
52
  end
51
53
  end
52
54
  end
55
+
56
+ class OSX::NSCFString
57
+ end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itunes-observer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 3
9
+ version: 0.0.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - youpy
@@ -9,7 +14,7 @@ autorequire: ""
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-10 00:00:00 +09:00
17
+ date: 2011-08-31 00:00:00 +09:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -30,7 +35,7 @@ files:
30
35
  - spec/spec.opts
31
36
  - spec/spec_helper.rb
32
37
  - lib/itunes_observer.rb
33
- - examples/love_daemon.rb
38
+ - examples/love.rb
34
39
  has_rdoc: true
35
40
  homepage: http://itunes-observer.rubyforge.org
36
41
  licenses: []
@@ -55,18 +60,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
60
  requirements:
56
61
  - - ">="
57
62
  - !ruby/object:Gem::Version
63
+ segments:
64
+ - 0
58
65
  version: "0"
59
- version:
60
66
  required_rubygems_version: !ruby/object:Gem::Requirement
61
67
  requirements:
62
68
  - - ">="
63
69
  - !ruby/object:Gem::Version
70
+ segments:
71
+ - 0
64
72
  version: "0"
65
- version:
66
73
  requirements: []
67
74
 
68
75
  rubyforge_project: itunes-observer
69
- rubygems_version: 1.3.5
76
+ rubygems_version: 1.3.6
70
77
  signing_key:
71
78
  specification_version: 3
72
79
  summary: ""