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: dfe6f78127702957706d81b2d20f1433edb3d0539c2fe06cb7a5faa8a199dee1
4
- data.tar.gz: c2aa3c67515e64eb9ea13c3177cc5f911bd65123438cda196df7a04781ee0a7e
3
+ metadata.gz: 701cc5a9da14fb950ce54b98a94770b8098aec8b8b91d1e53026e17786cd2e65
4
+ data.tar.gz: e0e194e54c0b397ffd4692160344b453b3dd8b92485f12f7f17fc637807a1e14
5
5
  SHA512:
6
- metadata.gz: 39368c375eb8ccbc486609c06590e324e1aaa0980a071fa550c7898f6f1843a66a23320ec48a93d6b3d0dc7ecb29096a04d45be4b6eb2657108f0e505c5e2088
7
- data.tar.gz: b6343092982862c13bcc149515a0d68a61623ca5a7790f41d4c0f3fa7406173549ecf2887d61a91e57bb6f57b080102fe09737074d04ab6da8a70873f7e38d31
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]" \
@@ -1,3 +1,3 @@
1
1
  module Fylla
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fylla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Thrailkill