skype-api 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3af1b03b66e242adb7008482652c708e02c57d27
4
- data.tar.gz: c270a2f4015cb2265e11da514fd3d065769faca0
3
+ metadata.gz: 12551c6d9772f255bc12b82bb55007474e91da66
4
+ data.tar.gz: 8c60881b649fce18faf280b75d7a231076495f6d
5
5
  SHA512:
6
- metadata.gz: aecc3a6ebc586cad3df7202cf7b7c857219d4ce225991a93ec4f81f1d606dbb8fc744d6354936135dd7a6a6374b25c2f2bf55e5b6d23df6ff4a820dc7d9343d2
7
- data.tar.gz: 436a7cbfb49ba939f6167d10af8ec68bed9f75f3d8c76f8c40c2c6730842ab9b9c7c3c5594f01e37a6eb3caa7945ed6085289787b84dc545ea4df121cd50124b
6
+ metadata.gz: e0e53e8950de2575911dbd4f879c5cad220c379890dc1414db26adce03eb9896ba71265398787fc521f627d1db889cb2b769c31b84a01175aaf035dbbe45b1b9
7
+ data.tar.gz: bd4fff6ca833fbca9cb748353c935f4b069b4e06aca212602638ed755bfbb635da4189ebb0a4eb9c5cc0ab3d8b60d72d479b31c1748d74821032a7e69c160cb1
@@ -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
@@ -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
@@ -6,7 +6,7 @@ module SkypeAPI
6
6
  @api_reference = app("Skype");
7
7
  end
8
8
  def exec(str)
9
- @api_reference.send(:command => str, "script_name".to_sym => SkypeAPI::appName)
9
+ @api_reference.send_(command: str, script_name: SkypeAPI::appName)
10
10
  end
11
11
  end
12
12
  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.0
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-04-27 00:00:00.000000000 Z
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