ircp 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ircp/parser/message_node_classes.rb +3 -1
- data/lib/ircp/version.rb +1 -1
- data/spec/ircp/parser_spec.rb +1 -1
- metadata +3 -3
@@ -53,7 +53,9 @@ module Ircp
|
|
53
53
|
|
54
54
|
class ParamsNode < Treetop::Runtime::SyntaxNode
|
55
55
|
def eval(env)
|
56
|
-
|
56
|
+
params = [middle_values, trailing_value].flatten.compact
|
57
|
+
params.last.gsub!(/\r\n$/, '') unless params.empty?
|
58
|
+
env[:options] = env[:params] = params
|
57
59
|
env
|
58
60
|
end
|
59
61
|
|
data/lib/ircp/version.rb
CHANGED
data/spec/ircp/parser_spec.rb
CHANGED
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Ircp::Parser do
|
4
4
|
describe '#parse' do
|
5
|
-
context
|
5
|
+
context "PASS secretpasswordhere\r\n" do
|
6
6
|
include_context 'parse text', description
|
7
7
|
its(:command) { should eq 'PASS' }
|
8
8
|
it_should_behave_like 'prefix for', nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -99,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
segments:
|
101
101
|
- 0
|
102
|
-
hash:
|
102
|
+
hash: 2075054529239101246
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
none: false
|
105
105
|
requirements:
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
segments:
|
110
110
|
- 0
|
111
|
-
hash:
|
111
|
+
hash: 2075054529239101246
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
114
|
rubygems_version: 1.8.24
|