ircp 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/README.md +2 -3
- data/ircp.gemspec +3 -3
- data/lib/ircp/version.rb +1 -1
- data/spec/ircp/message_spec.rb +7 -0
- metadata +14 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 235be24b3794bcf2d0fde32d897cd37c75f9aec7
|
4
|
+
data.tar.gz: 855946be69464c455a3a9c66f776c4f0050238ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fe03cc096b74ee322768844002f6df5b3e813ad6aab3b48920d91419fa67282736d55a77d0a54d9f90c8ac1c80fca949eb9f3927a40a900e7e87db72b87a20f
|
7
|
+
data.tar.gz: d8ff1a191c9fe32081042ff6c350ad7d85fb4855032ee9ea7ca8b9876fa5622b3c49e2adcc363ab08fca5255cd8d31e25f0e274531d03b05f011aeadac1c5946
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ircp
|
1
|
+
# Ircp [![Build Status](https://travis-ci.org/mashiro/ircp-ruby.png?branch=master)](https://travis-ci.org/mashiro/ircp-ruby) [![Dependency Status](https://gemnasium.com/mashiro/ircp-ruby.png)](https://gemnasium.com/mashiro/ircp-ruby)
|
2
2
|
|
3
3
|
Ircp is a IRC minimal parser for ruby.
|
4
4
|
|
@@ -22,7 +22,6 @@ Or install it yourself as:
|
|
22
22
|
# Parse
|
23
23
|
require 'ircp'
|
24
24
|
msg = Ircp.parse ':Angel!wings@irc.org PRIVMSG Wiz :Are you receiving this message ?'
|
25
|
-
|
26
25
|
p msg.prefix.nick # => 'Angel'
|
27
26
|
p msg.prefix.user # => 'wings'
|
28
27
|
p msg.prefix.host # => 'irc.org'
|
@@ -31,7 +30,7 @@ p msg.params[0] # => 'Wiz'
|
|
31
30
|
p msg.params[1] # => 'Are you receiving this message ?'
|
32
31
|
|
33
32
|
# Dump
|
34
|
-
msg = Ircp::Message.new 'Wiz', ':Are you receiving this message ?', :
|
33
|
+
msg = Ircp::Message.new 'PRIVMSG', 'Wiz', ':Are you receiving this message ?', prefix: {nick: 'Angel', user: 'wings', host: 'irc.org'}
|
35
34
|
p msg.to_s # => ':Angel!wings@irc.org PRIVMSG Wiz :Are you receiving this message ?\r\n'
|
36
35
|
```
|
37
36
|
|
data/ircp.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Ircp::VERSION
|
17
17
|
|
18
|
-
gem.add_dependency 'treetop'
|
19
|
-
gem.add_development_dependency 'rake'
|
20
|
-
gem.add_development_dependency 'rspec'
|
18
|
+
gem.add_dependency 'treetop', '>= 1.4.10'
|
19
|
+
gem.add_development_dependency 'rake', '~> 0.9.2'
|
20
|
+
gem.add_development_dependency 'rspec', '~> 2.10.0'
|
21
21
|
end
|
data/lib/ircp/version.rb
CHANGED
data/spec/ircp/message_spec.rb
CHANGED
@@ -29,6 +29,13 @@ describe Ircp::Message do
|
|
29
29
|
it_should_behave_like 'prefix for', nil
|
30
30
|
it_should_behave_like 'params for', 'foo', 'hello'
|
31
31
|
end
|
32
|
+
|
33
|
+
context 'simple syntax' do
|
34
|
+
include_context 'initialize message', 'PRIVMSG', 'foo', 'bar'
|
35
|
+
its(:command) { should eq 'PRIVMSG' }
|
36
|
+
it_should_behave_like 'prefix for', nil
|
37
|
+
it_should_behave_like 'params for', 'foo', 'bar'
|
38
|
+
end
|
32
39
|
end
|
33
40
|
|
34
41
|
describe '#to_s' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ircp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mashiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: treetop
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.4.10
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.4.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.9.2
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.9.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.10.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.10.0
|
55
55
|
description: IRC minimal parser
|
56
56
|
email:
|
57
57
|
- mail@mashiro.org
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- .gitignore
|
63
63
|
- .rspec
|
64
|
+
- .travis.yml
|
64
65
|
- Gemfile
|
65
66
|
- LICENSE
|
66
67
|
- README.md
|
@@ -97,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
98
|
version: '0'
|
98
99
|
requirements: []
|
99
100
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.0.
|
101
|
+
rubygems_version: 2.0.3
|
101
102
|
signing_key:
|
102
103
|
specification_version: 4
|
103
104
|
summary: IRC minimal parser for ruby
|