skype-api 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/ext/mkrf_conf.rb +20 -0
- data/lib/skype-api/chat.rb +4 -4
- data/lib/skype-api/connection/applescript_connection.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12551c6d9772f255bc12b82bb55007474e91da66
|
4
|
+
data.tar.gz: 8c60881b649fce18faf280b75d7a231076495f6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0e53e8950de2575911dbd4f879c5cad220c379890dc1414db26adce03eb9896ba71265398787fc521f627d1db889cb2b769c31b84a01175aaf035dbbe45b1b9
|
7
|
+
data.tar.gz: bd4fff6ca833fbca9cb748353c935f4b069b4e06aca212602638ed755bfbb635da4189ebb0a4eb9c5cc0ab3d8b60d72d479b31c1748d74821032a7e69c160cb1
|
data/ext/mkrf_conf.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rubygems/command.rb'
|
3
|
+
require 'rubygems/dependency_installer.rb'
|
4
|
+
begin
|
5
|
+
Gem::Command.build_args = ARGV
|
6
|
+
rescue NoMethodError
|
7
|
+
end
|
8
|
+
inst = Gem::DependencyInstaller.new
|
9
|
+
case Gem::Platform.local.os
|
10
|
+
when /mswin|windows|mingw32/i
|
11
|
+
#ole is compiled in.
|
12
|
+
when /linux|arch/i
|
13
|
+
inst.install "ruby-dbus", "~> 0.12.0"
|
14
|
+
when /darwin/i
|
15
|
+
inst.install "rb-scpt", "~> 1.0.1"
|
16
|
+
end
|
17
|
+
|
18
|
+
f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") # create dummy rakefile to indicate success
|
19
|
+
f.write("task :default\n")
|
20
|
+
f.close
|
data/lib/skype-api/chat.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
module SkypeAPI
|
2
2
|
class Chat
|
3
3
|
@@chats = Hash.new;
|
4
|
-
def self.chats
|
4
|
+
def self.chats()
|
5
5
|
recieved_chats = SkypeAPI::exec("SEARCH CHATS");
|
6
6
|
recieved_chats.sub("CHATS ","").split(", ").map {|chat| get_chat(chat)}
|
7
7
|
end
|
8
|
-
def self.recent_chats
|
8
|
+
def self.recent_chats()
|
9
9
|
recieved_chats = SkypeAPI::exec("SEARCH RECENTCHATS");
|
10
10
|
recieved_chats.sub("CHATS ","").split(", ").map {|chat| get_chat(chat)}
|
11
11
|
end
|
12
|
-
def self.unread_chats
|
12
|
+
def self.unread_chats()
|
13
13
|
recieved_chats = SkypeAPI::exec("SEARCH UNREADCHATS");
|
14
14
|
recieved_chats.sub("CHATS ","").split(", ").map {|chat| get_chat(chat)}
|
15
15
|
end
|
16
|
-
def self.bookmarked_chats
|
16
|
+
def self.bookmarked_chats()
|
17
17
|
recieved_chats = SkypeAPI::exec("SEARCH BOOKMARKEDCHATS");
|
18
18
|
recieved_chats.sub("CHATS ","").split(", ").map {|chat| get_chat(chat)}
|
19
19
|
end
|
metadata
CHANGED
@@ -1,21 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skype-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Machado
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A gem for accessing the Skype API on all platforms.
|
14
14
|
email: nxnmq08@gmail.com
|
15
15
|
executables: []
|
16
|
-
extensions:
|
16
|
+
extensions:
|
17
|
+
- ext/mkrf_conf.rb
|
17
18
|
extra_rdoc_files: []
|
18
19
|
files:
|
20
|
+
- ext/mkrf_conf.rb
|
19
21
|
- lib/skype-api.rb
|
20
22
|
- lib/skype-api/application.rb
|
21
23
|
- lib/skype-api/call.rb
|