yap-shell 0.3.0 → 0.3.1

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: 246c3bc588c78cfde392f379b5ca086e6aac79e0
4
- data.tar.gz: f1c54403abc8e95a96f255582b6b3af4fcb511ba
3
+ metadata.gz: 23d1c68c8e4cb9e3531fef656445654b3e5fd0d7
4
+ data.tar.gz: 59e2297008fecdfe423b9c97d1e897bd138f9e31
5
5
  SHA512:
6
- metadata.gz: 61414d9cc1b15a58661bca3aac9911798fe6b8aabc99e4d03732109c29d4c2fa2d9928f2c43d0cadfb736a45f4ca056c41657226d654c3b04d2dc9ce14f1ae35
7
- data.tar.gz: a3999e8f5fcbcaab03450309ecfc1a7942d3bf2f072a75862e96f203a5b9c3b89ee31ffde11ba3eedd59780a1f75a519107f04b9aa816b48a16cceef6b510eaa
6
+ metadata.gz: 764180407fb136d9495b713805d7b1ac372405faa4a4505bffaa1b4bc29e84151172547f560c31e60c66463cd993fe9ca446cb4cd8828c43da5abf18e2027acc
7
+ data.tar.gz: d41da1cc4a590125e529a746c3d182a9da4764e9f0f7da37a37f62b87e5eb1075883556c302ed4b07a6e8f81afe2164d5d07509864f060d193ca17fdbb89b799
@@ -4,7 +4,7 @@ module Yap::Shell
4
4
  DIRECTORY_FUTURE = []
5
5
 
6
6
  builtin :cd do |world:, args:, stderr:, **|
7
- path = args.first || world.env['HOME']
7
+ path = (args.first || world.env['HOME']).shellsplit.join
8
8
  if Dir.exist?(path)
9
9
  DIRECTORY_HISTORY << Dir.pwd
10
10
  world.env["PWD"] = File.expand_path(path)
@@ -67,7 +67,7 @@ module Yap::Shell
67
67
  @suppress_events = false
68
68
  else
69
69
  cmd2execute = variable_expand(node.command)
70
- final_args = (args + @command_node_args_stack).flatten.shelljoin
70
+ final_args = (args + @command_node_args_stack).flatten.map(&:shellescape)
71
71
  expanded_args = shell_expand(final_args)
72
72
  command = CommandFactory.build_command_for(
73
73
  world: world,
@@ -1,5 +1,5 @@
1
1
  module Yap
2
2
  module Shell
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yap-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Dennis