skype 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: e68ed01cb9d2602a623e54a3b5e8aa2c76f87221
4
- data.tar.gz: 1e09a51e82d16821366472e523e52d99769121c7
3
+ metadata.gz: d3aa1c4c74b77b558bdafa765fb9b103d8cb748f
4
+ data.tar.gz: d85482711127b14a939ace7d8e593f867bca0d88
5
5
  SHA512:
6
- metadata.gz: d928b372617006a58bd30a512ea1a72925c4f0cf865a9ca71961370d2da93d3ce513cc97823fdefe64e648963f2f30d5f9fbfe236ba913eb16823298c38b5e5b
7
- data.tar.gz: 5208227f716a88cfee3487968a510e72fed98db77d28867b5293bb9f528d783fa74f49f66944363f51f556838243b87c81d55c2e6bf569e909aaa60aeb1bb17b
6
+ metadata.gz: 0301d08af03c2ec6a172ec367ee373326f14b21c9be663487b33e0384622c11a0ec93bf7ee7704d3e98229fe4c39cfdd8857d950ed028efd3bfe17c6d656c78d
7
+ data.tar.gz: f685779d51d96b3425175d6123b35a531ea0b69e20dd8d32f9b743b79625990fc78fa8e7ca60ef0f64a1c2a08ec24595132dc7f55507037e014064cc5d8136ed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- skype (0.2.0)
4
+ skype (0.2.1)
5
5
  tmp_cache
6
6
 
7
7
  GEM
@@ -1,3 +1,7 @@
1
+ === 0.2.1 2013-06-30
2
+
3
+ * add function Skype::Call#talking?
4
+
1
5
  === 0.2.0 2013-06-30
2
6
 
3
7
  * add Call API wrapper and tests
data/README.md CHANGED
@@ -80,22 +80,24 @@ end
80
80
 
81
81
  call
82
82
  ```ruby
83
- c = Skype.call "shokaishokai"
83
+ call = Skype.call "shokaishokai"
84
84
  ```
85
85
 
86
86
  check status
87
87
  ```ruby
88
- puts c.status # => :routing, :ringing, :inprogress, :finished, :missed, :cancelled
88
+ puts call.status # => :routing, :ringing, :inprogress, :finished, :missed, :cancelled
89
+ puts call.talking? # => true, false
89
90
  ```
90
91
 
91
92
  hangup
92
93
  ```ruby
93
- c.hangup
94
+ call.hangup
94
95
  ```
95
96
 
96
97
  Samples
97
98
  -------
98
- https://github.com/shokai/skype-ruby/tree/master/samples
99
+ - https://github.com/shokai/skype-ruby/tree/master/samples
100
+ - https://github.com/shokai/skype-ruby/tree/master/bin
99
101
 
100
102
 
101
103
  Test
@@ -10,7 +10,7 @@ require case RUBY_PLATFORM
10
10
  when /linux/
11
11
  "skype/platforms/linux"
12
12
  else
13
- STDERR.puts %Q{!!Skype gem cannot support your platform "#{RUBY_PLATFORM}" not support.}
13
+ STDERR.puts %Q{!!Skype gem cannot support your platform "#{RUBY_PLATFORM}"}
14
14
  end
15
15
  require "skype/main"
16
16
  require "skype/wrappers/chat"
@@ -1,3 +1,3 @@
1
1
  module Skype
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -22,6 +22,10 @@ module Skype
22
22
  end
23
23
  end
24
24
 
25
+ def talking?
26
+ status == :inprogress
27
+ end
28
+
25
29
  def hangup
26
30
  ::Skype.exec "ALTER CALL #{@id} HANGUP"
27
31
  end
@@ -9,8 +9,8 @@ to = STDIN.gets.strip
9
9
  call = Skype.call to
10
10
 
11
11
  loop do
12
- puts s = call.status
13
- break if s == :inprogress
12
+ puts call.status
13
+ break if call.talking?
14
14
  sleep 1
15
15
  end
16
16
 
@@ -13,6 +13,7 @@ class TestSkypeCall < MiniTest::Test
13
13
  sleep 1
14
14
  call.hangup
15
15
  assert [:finished, :missed, :cancelled].include? call.status
16
+ assert_equal call.talking?, false
16
17
  end
17
18
 
18
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skype
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
  - Sho Hashimoto