fylla 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 701cc5a9da14fb950ce54b98a94770b8098aec8b8b91d1e53026e17786cd2e65
|
4
|
+
data.tar.gz: e0e194e54c0b397ffd4692160344b453b3dd8b92485f12f7f17fc637807a1e14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2abca800e2d0008192cbadd1a71ef1739bd45a99171b115798bf1e4c707180bc7c4e06e7b7e6e267d8e2c5eba9b41665116b8fa652c1defc2c4d5e94978321d9
|
7
|
+
data.tar.gz: 63cc5a776f52de405ebcc5f218e76186e9bba2b4e0ae117d0b2535948824b0c2c65f94b155272432e8603872147e5cb77b27ecbd9ec53d47e5215227c0e25eee
|
@@ -2,9 +2,9 @@ function _<%= @executable_name %><%= context_name %> {
|
|
2
2
|
_arguments \
|
3
3
|
<%- unless command.options.nil? -%>
|
4
4
|
<%- command.options.each do |option| -%>
|
5
|
-
"--<%= option.name%>=[<%= option.description %>]" \
|
5
|
+
"--<%= option.name %>=[<%= option.description.gsub('"', %q|\\"|) %>]" \
|
6
6
|
<%- option.aliases.each do |al| -%>
|
7
|
-
"-<%= al %>=[<%= option.description %>]" \
|
7
|
+
"-<%= al %>=[<%= option.description.gsub('"', %q|\\"|) %>]" \
|
8
8
|
<%- end -%>
|
9
9
|
<%- end -%>
|
10
10
|
<%- end -%>
|
@@ -6,7 +6,7 @@ function _<%= @executable_name %><%= context_name %> {
|
|
6
6
|
commands=(
|
7
7
|
<%-# remove newlines and leading space on this loop -%>
|
8
8
|
<%- command.commands.sort_by(&:name).each do |command| -%>
|
9
|
-
'<%= command.name %>:<%= command.description %>'
|
9
|
+
'<%= command.name %>:<%= command.description.gsub("'", %q|\\\\'|) %>'
|
10
10
|
<%- end -%>
|
11
11
|
)
|
12
12
|
_describe 'command' commands
|
@@ -16,9 +16,9 @@ function _<%= @executable_name %><%= context_name %> {
|
|
16
16
|
<%- unless class_options.nil? -%>
|
17
17
|
<%- class_options.each do |option| -%>
|
18
18
|
<%- option.aliases.each do |al| -%>
|
19
|
-
"-<%= al %>=[<%= option.description %>]" \
|
19
|
+
"-<%= al %>=[<%= option.description.gsub('"', %q|\\"|) %>]" \
|
20
20
|
<%- end -%>
|
21
|
-
"--<%= option.name%>=[<%= option.description %>]" \
|
21
|
+
"--<%= option.name %>=[<%= option.description.gsub('"', %q|\\"|) %>]" \
|
22
22
|
<%- end -%>
|
23
23
|
<%- end -%>
|
24
24
|
"-h[Show help information]" \
|
data/lib/fylla/version.rb
CHANGED