rype 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/rype/api.rb +3 -10
  3. metadata +12 -12
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ spec = Gem::Specification.new do |s|
21
21
 
22
22
  # Change these as appropriate
23
23
  s.name = "rype"
24
- s.version = "0.0.3"
24
+ s.version = "0.0.4"
25
25
  s.authors = ["Niko Felger"]
26
26
  s.email = "niko.felger@gmail.com"
27
27
  s.homepage = "http://github.com/nfelger/rype"
data/lib/rype/api.rb CHANGED
@@ -2,14 +2,6 @@ require 'dbus'
2
2
  require 'forwardable'
3
3
 
4
4
  module Rype
5
- class Notify < DBus::Object
6
- dbus_interface "com.Skype.API.Client" do
7
- dbus_method :Notify, "in data:s" do |message|
8
- Api.notify(message)
9
- end
10
- end
11
- end
12
-
13
5
  class Api
14
6
  class << self
15
7
  extend Forwardable
@@ -104,8 +96,9 @@ module Rype
104
96
  end
105
97
  end
106
98
 
107
- receiving_service = bus.request_service("com.nikofelger.rype.#{@application_name}.#{Process.pid}")
108
- receiving_service.export(Notify.new("/com/Skype/Client"))
99
+ receiving_service_name = "com.nikofelger.rype-#{@application_name.gsub(/[^A-Za-z0-9-]/, '-')}-#{Process.pid}"
100
+ receiving_service = bus.request_service(receiving_service_name)
101
+ receiving_service.export(callback_interface.new("/com/Skype/Client"))
109
102
  dbus_event_loop = DBus::Main.new
110
103
  dbus_event_loop << bus
111
104
  dbus_event_loop.run
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rype
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-26 00:00:00.000000000Z
12
+ date: 2012-01-27 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby-dbus
16
- requirement: &13557920 !ruby/object:Gem::Requirement
16
+ requirement: &13720000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.6'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *13557920
24
+ version_requirements: *13720000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &13557280 !ruby/object:Gem::Requirement
27
+ requirement: &13719480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *13557280
35
+ version_requirements: *13719480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: cucumber
38
- requirement: &13542140 !ruby/object:Gem::Requirement
38
+ requirement: &13684920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *13542140
46
+ version_requirements: *13684920
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &13541340 !ruby/object:Gem::Requirement
49
+ requirement: &13684080 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *13541340
57
+ version_requirements: *13684080
58
58
  description: Unofficial Skype Api wrapper
59
59
  email: niko.felger@gmail.com
60
60
  executables: []
@@ -100,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -3132977237656296045
103
+ hash: 3263908115655882527
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  segments:
111
111
  - 0
112
- hash: -3132977237656296045
112
+ hash: 3263908115655882527
113
113
  requirements: []
114
114
  rubyforge_project:
115
115
  rubygems_version: 1.8.10