im-kayac 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 (5) hide show
  1. data/.gemtest +0 -0
  2. data/History.txt +4 -0
  3. data/examples/sig.rb +1 -1
  4. data/lib/im-kayac.rb +2 -2
  5. metadata +12 -27
File without changes
@@ -1,3 +1,7 @@
1
+ === 0.0.4 2011-04-26
2
+
3
+ * extend StandardError
4
+
1
5
  === 0.0.3 2010-09-19
2
6
 
3
7
  * fix for nil opts
@@ -6,7 +6,7 @@ message = 'hello world'
6
6
  sig = Digest::SHA1.hexdigest(message + 'your-sig')
7
7
 
8
8
  begin
9
- p ImKayac.post("shokai", message, {:sig => sig})
9
+ p ImKayac.post("username", message, {:sig => sig})
10
10
  rescue => e
11
11
  STDERR.puts e
12
12
  end
@@ -8,7 +8,7 @@ require 'json'
8
8
 
9
9
  module ImKayac
10
10
 
11
- VERSION = '0.0.3'
11
+ VERSION = '0.0.4'
12
12
 
13
13
  def ImKayac.post(user, message, opts = {})
14
14
  uri = URI.parse("http://im.kayac.com/api/post/#{user}")
@@ -38,7 +38,7 @@ module ImKayac
38
38
  return res
39
39
  end
40
40
 
41
- class Error < Exception
41
+ class Error < StandardError
42
42
  end
43
43
 
44
44
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: im-kayac
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sho Hashimoto
@@ -15,41 +15,25 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-19 00:00:00 +09:00
18
+ date: 2011-04-26 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rubyforge
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 2
32
- - 0
33
- - 4
34
- version: 2.0.4
35
- type: :development
36
- version_requirements: *id001
37
21
  - !ruby/object:Gem::Dependency
38
22
  name: hoe
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
41
25
  none: false
42
26
  requirements:
43
27
  - - ">="
44
28
  - !ruby/object:Gem::Version
45
- hash: 21
29
+ hash: 41
46
30
  segments:
47
31
  - 2
48
- - 6
32
+ - 9
49
33
  - 1
50
- version: 2.6.1
34
+ version: 2.9.1
51
35
  type: :development
52
- version_requirements: *id002
36
+ version_requirements: *id001
53
37
  description: "* post message http://im.kayac.com/"
54
38
  email:
55
39
  - hashimoto@shokai.org
@@ -76,6 +60,7 @@ files:
76
60
  - examples/password.rb
77
61
  - examples/sig.rb
78
62
  - examples/simple.rb
63
+ - .gemtest
79
64
  has_rdoc: true
80
65
  homepage: http://github.com/shokai/ruby-im-kayac
81
66
  licenses: []
@@ -107,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
92
  requirements: []
108
93
 
109
94
  rubyforge_project: im-kayac
110
- rubygems_version: 1.3.7
95
+ rubygems_version: 1.6.2
111
96
  signing_key:
112
97
  specification_version: 3
113
98
  summary: "* post message http://im.kayac.com/"