zircon 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,7 +40,7 @@ class Zircon
40
40
  when !@rest[0].empty?
41
41
  middle, trailer, = *@rest
42
42
  params = middle.split(" ")
43
- when !@rest[2].empty?
43
+ when !@rest[2].nil? && !@rest[2].empty?
44
44
  middle, trailer, = *@rest[2, 2]
45
45
  params = middle.split(" ")
46
46
  when @rest[1]
@@ -1,3 +1,3 @@
1
1
  class Zircon
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -0,0 +1,23 @@
1
+ require "spec_helper"
2
+
3
+ describe Zircon::Message do
4
+ context 'when message is JOIN message' do
5
+ subject { described_class.new(":example!~example@example.com JOIN :#channel\r\n") }
6
+
7
+ describe "#to" do
8
+ its(:to) { should eq('#channel') }
9
+ end
10
+ end
11
+
12
+ context 'when message is PRIVMSG message' do
13
+ subject { described_class.new(":example!~example@www35420u.sakura.ne.jp PRIVMSG #channel :body\r\n") }
14
+
15
+ describe "#to" do
16
+ its(:to) { should eq('#channel') }
17
+ end
18
+
19
+ describe "#body" do
20
+ its(:body) { should eq('body') }
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,27 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zircon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ryo NAKAMURA
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-02-11 00:00:00.000000000 Z
12
+ date: 2013-02-21 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rspec
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  description: Zircon is a mineral belonging to the group of nesosilicates.
@@ -31,7 +34,7 @@ executables: []
31
34
  extensions: []
32
35
  extra_rdoc_files: []
33
36
  files:
34
- - ".gitignore"
37
+ - .gitignore
35
38
  - Gemfile
36
39
  - LICENSE
37
40
  - README.md
@@ -42,31 +45,35 @@ files:
42
45
  - lib/zircon/message/patterns.rb
43
46
  - lib/zircon/version.rb
44
47
  - spec/spec_helper.rb
48
+ - spec/zircon/message_spec.rb
45
49
  - spec/zircon_spec.rb
46
50
  - zircon.gemspec
47
51
  homepage: https://github.com/r7kamura/zircon
48
52
  licenses: []
49
- metadata: {}
50
53
  post_install_message:
51
54
  rdoc_options: []
52
55
  require_paths:
53
56
  - lib
54
57
  required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
55
59
  requirements:
56
- - - ">="
60
+ - - ! '>='
57
61
  - !ruby/object:Gem::Version
58
62
  version: '0'
59
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
+ none: false
60
65
  requirements:
61
- - - ">="
66
+ - - ! '>='
62
67
  - !ruby/object:Gem::Version
63
68
  version: '0'
64
69
  requirements: []
65
70
  rubyforge_project:
66
- rubygems_version: 2.0.0.preview3
71
+ rubygems_version: 1.8.24
67
72
  signing_key:
68
- specification_version: 4
73
+ specification_version: 3
69
74
  summary: IRC client library written in Pure Ruby
70
75
  test_files:
71
76
  - spec/spec_helper.rb
77
+ - spec/zircon/message_spec.rb
72
78
  - spec/zircon_spec.rb
79
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: 33918b006b4a91ec126de5c6d06a028d07ba64b8
4
- data.tar.gz: 45c1aea67b5f1c289efdc3142158dc6a9821de30
5
- !binary "U0hBNTEy":
6
- metadata.gz: 17d91c8d7efa7a7daa5bac9463312f33b7238f3130bb8362236fe209ab3df0f048f0907f48274a4335a1e76de0d7ab4cc1a78c1c6e49b9a2429f9a5a7f922f99
7
- data.tar.gz: 5d121e65035c4469bd0ef1195012d37815f2352ab27a1fa907bd87a39e36eab62515b62b7d1d1ffae5bab6d1532ae48a4a18c0e0664dfe0edbd2bf808af34648