theme-juice 0.20.1 → 0.20.2

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
  SHA1:
3
- metadata.gz: 62089fe71d6243fa6a2377ea8735058ffb2c2902
4
- data.tar.gz: 888e354741ad40542ca6c2f7fe595d01c171726a
3
+ metadata.gz: d42db6431f9ee28e231bef44f2e5ea95461a579d
4
+ data.tar.gz: 5bfdd9d8acb3a37ef25747a67498d7756e67837c
5
5
  SHA512:
6
- metadata.gz: 7ecbd190b0544653d40a9fa9a8494f37d16215a0376e0ee5377fcb8833a7645f6965c8391e14cea9e404f62704b687afd07e47c4c81e8d42edf7a9f19efd5a5c
7
- data.tar.gz: 9095423932e48349bfb56ef04abdcaa97d96cd0210d3de5532522123ea69f91e3df1bfb9a40f2225bf9cb172fb7fb8e86764ac42c5643ef9312985bc642fa1aa
6
+ metadata.gz: efb65e920680e7a585ab2cc77310c639c8b64511bcd46867128e7af94e0bd42595296db8b6edb81779b54b841395294d2ce5874684fc2a4db7d9ce24a179caba
7
+ data.tar.gz: 2e6acaf5181405d94e57cb8e000ac57583823153fac3f5e777f2d788007a20092381316a9b9fd34ce4c6e24eb5bc7fc0ed6e8a217e6b3c95276c7370fa7e5bd0
@@ -4,6 +4,7 @@ require "thor"
4
4
  require "faker"
5
5
  require "os"
6
6
  require "yaml"
7
+ require "shellwords"
7
8
  require "capistrano/all"
8
9
 
9
10
  module ThemeJuice
@@ -78,11 +78,12 @@ module ThemeJuice
78
78
  root = File.expand_path "../man", __FILE__
79
79
  man = ["tj", command].compact.join("-")
80
80
  begin
81
- if File.exist? "#{root}/#{man}"
81
+ shell_escaped_man_path = "#{root}/#{man}".shellescape
82
+ if File.exist? shell_escaped_man_path
82
83
  if OS.windows?
83
- @io.say File.read "#{root}/#{man}.txt", :color => :white
84
+ @io.say File.read "#{shell_escaped_man_path}.txt", :color => :white
84
85
  else
85
- @util.run "man #{root}/#{man}", :verbose => @env.verbose
86
+ @util.run "man #{shell_escaped_man_path}", :verbose => @env.verbose
86
87
  end
87
88
  else
88
89
  @io.say "No man page available for '#{command}'", :color => :red
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.20.1"
4
+ VERSION = "0.20.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor