ircp 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,7 +53,9 @@ module Ircp
53
53
 
54
54
  class ParamsNode < Treetop::Runtime::SyntaxNode
55
55
  def eval(env)
56
- env[:options] = env[:params] = [middle_values, trailing_value].flatten.compact
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
@@ -1,3 +1,3 @@
1
1
  module Ircp
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe Ircp::Parser do
4
4
  describe '#parse' do
5
- context 'PASS secretpasswordhere' do
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
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: -4454188754034219675
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: -4454188754034219675
111
+ hash: 2075054529239101246
112
112
  requirements: []
113
113
  rubyforge_project:
114
114
  rubygems_version: 1.8.24