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 +4 -4
- data/lib/yap/shell/parser/lexer.rb +1 -1
- data/lib/yap/shell/parser/version.rb +1 -1
- data/spec/yap/shell/lexer_spec.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e9067d2b8034ad2ca424fbdb61b5c939be1470e
|
|
4
|
+
data.tar.gz: 1ae4cf2f162e5c19bd8419619034759e069836d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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]+/
|
|
@@ -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.
|
|
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-
|
|
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.
|
|
116
|
+
rubygems_version: 2.4.6
|
|
117
117
|
signing_key:
|
|
118
118
|
specification_version: 4
|
|
119
119
|
summary: The parser for the yap shell
|