skype 0.2.4 → 0.2.5

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: e8a62d429fabdb0b28ba45375b484887f406e300
4
- data.tar.gz: 3443d1b5217443241fcae606fc2c12111854b642
3
+ metadata.gz: 57cf53dd39ff5c0815b8f2640d2b4953a952c351
4
+ data.tar.gz: 04a4765ce71299b844e5b3dd9b3c75e50a96e969
5
5
  SHA512:
6
- metadata.gz: bbe22933f867f6f45e5bd725048acd4d7695ba50e7fe43497971e31b3520e881b4fd161b086ded3d1aee0ff81f4427de377d27b5df6f74cf19cf2c791b0f87f9
7
- data.tar.gz: a528a984918bb73f82cf549f189feb37c1aa5322f09c717ff6fe6e31a3e69c4d74f73cb785cce6e3b89a65f44c8567c9e6373d586305ec9c14232f24b0c0df88
6
+ metadata.gz: 2ec61d7ba4485bda049e578bae098e0dd3eab1dce95efd693aed835f73d367200bc388258a3b6f0acf99f7a01bd8bac63e0f8923bff5724d36967d2dd629dc1e
7
+ data.tar.gz: 9329c540c794efd9ee9c22e6894f374bea0bf88137c62cc808732daeefdc6ef5324d11cc248987dcc7b4f4d6c2c6090c9356d871155415bcd39d769907a15736
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- skype (0.2.4)
4
+ skype (0.2.5)
5
5
  tmp_cache
6
6
 
7
7
  GEM
@@ -1,3 +1,8 @@
1
+ === 0.2.5 2013-07-12
2
+
3
+ * bugfix for Ruby1.8.7
4
+ * rename Skype::Error -> Skype::APIError
5
+
1
6
  === 0.2.4 2013-07-12
2
7
 
3
8
  * raise Skype::Error on API Error
@@ -11,6 +11,6 @@ module Skype
11
11
  end
12
12
 
13
13
  def self.method_missing(name, *args)
14
- self.exec "#{name.upcase} #{args.join(' ')}"
14
+ self.exec "#{name.to_s.upcase} #{args.join(' ')}"
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Skype
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -1,8 +1,8 @@
1
1
  module Skype
2
2
  response_filter /^ERROR / do |res|
3
- raise Skype::Error, res
3
+ raise Skype::APIError, res
4
4
  end
5
5
 
6
- class Error < StandardError
6
+ class APIError < StandardError
7
7
  end
8
8
  end
@@ -2,12 +2,14 @@ require File.expand_path 'test_helper', File.dirname(__FILE__)
2
2
 
3
3
  class TestSkypeError < MiniTest::Test
4
4
 
5
- def test_error
5
+ def test_api_error
6
6
  begin
7
7
  Skype.asdfhujiko
8
8
  rescue => e
9
- assert_equal e.class, Skype::Error
9
+ err = e
10
10
  end
11
+ assert_equal err.class, Skype::APIError
12
+ assert err.message =~ /^ERROR /
11
13
  end
12
14
 
13
15
  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.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto