yap-shell-parser 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7f17d75ea90aa83388bee1083d1247d20261da3
4
- data.tar.gz: 0cf0a96f80e36feb9fbd1ac91251cba524820bfe
3
+ metadata.gz: 8e9067d2b8034ad2ca424fbdb61b5c939be1470e
4
+ data.tar.gz: 1ae4cf2f162e5c19bd8419619034759e069836d5
5
5
  SHA512:
6
- metadata.gz: 4b16e7e2c7e1e88280a1ca976729fb36639135a42f586bb044181c957190df62097ef199961841b66e13bd4f45194e15b6c5d2fb8529633b68d15a6c57295f00
7
- data.tar.gz: 696fc416a943bb644176dec23a67a1aa4723c70ae370b69e452f54d041c3215880244c0c6723e32cad41a8a77754c8af514ee7c528492b15c9b76cff7c2a68af
6
+ metadata.gz: 7bfc31b24ff9925175ded8555a3a8462c4d88fca804f035432c572c2a623069fe370437fa8e14097494fc53e40eccfe97396034763ec7c476a8326d8a99c455d
7
+ data.tar.gz: 8534df6ecc65ec92307d491e3dd760ac3129cc3808df6e2f07b2d8a733cafc1bfce0ecb56148c6ea4fa40d5233095af6fb28740109d24b7eb9fee43429ebf1ba
@@ -34,7 +34,7 @@ module Yap::Shell
34
34
  end
35
35
 
36
36
  COMMAND_SUBSTITUTION = /\A(`|\$\()/
37
- ARG = /[^\s;\|\(\)\{\}\[\]\&\!\\\<`][^\s;\|\(\)\{\}\[\]\&\!\>\<`]*/
37
+ ARG = /[^\s;\|\(\)\{\}\[\]\&\!\\\<`][^\s;\|\(\)\{\}\[\]\&\>\<`]*/
38
38
  COMMAND = /\A(#{ARG})/
39
39
  LITERAL_COMMAND = /\A\\(#{ARG})/
40
40
  WHITESPACE = /\A[^\n\S]+/
@@ -3,7 +3,7 @@ require 'yap/shell/parser'
3
3
  module Yap
4
4
  module Shell
5
5
  module Parser
6
- VERSION = "0.2.1"
6
+ VERSION = "0.2.2"
7
7
  end
8
8
  end
9
9
  end
@@ -63,6 +63,13 @@ describe Yap::Shell::Parser::Lexer do
63
63
  t(:Command, "foo/ba*", lineno:0)
64
64
  ]}
65
65
  end
66
+
67
+ describe "can end with exclamation points" do
68
+ let(:str){ "reload!" }
69
+ it { should eq [
70
+ t(:Command, "reload!", lineno:0)
71
+ ]}
72
+ end
66
73
  end
67
74
 
68
75
  describe "literal commands" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yap-shell-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-22 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.4.3
116
+ rubygems_version: 2.4.6
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: The parser for the yap shell