rash-command-shell 0.4.2 → 0.4.2.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 +4 -4
- data/bin/rash +1 -1
- data/lib/rash/ext/filesystem.rb +4 -4
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 963d88b02cd2e9b8e448bb58808eb699917bfcc452c2530c979879d8acab934f
|
4
|
+
data.tar.gz: a9553ad99f9111c07c0de375968ce041a3cacea043e68af8e3eed9fa988e5203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d19a800acd697b0e64a029b5b76dd7a2eb083de3601b5c78987be674156423a654624c845538be7038bc14ca0a845617adb974b8fa935fb1e4bd612f6d89765
|
7
|
+
data.tar.gz: 3dffa778fbb51114d0a114ff7c98952f43857304ed33150aa4a172fec7d4daf35f5092e637bb8547e04e9a1b4c139b91566bf4ccbb5c0130db82f03e90078115
|
data/bin/rash
CHANGED
@@ -4,7 +4,7 @@ if ARGV.empty?
|
|
4
4
|
exec("irb", "-r", "rash", *ARGV)
|
5
5
|
elsif ARGV[0] =~ /(-)?-v(ersion)?/
|
6
6
|
puts "Rash (c) 2020 Kellen Watt"
|
7
|
-
puts "Version 0.4.2" # I may forget to update this
|
7
|
+
puts "Version 0.4.2.1" # I may forget to update this
|
8
8
|
elsif File.exists?(ARGV[0]) && !File.directory?(ARGV[0])
|
9
9
|
require "rash"
|
10
10
|
file = ARGV.shift
|
data/lib/rash/ext/filesystem.rb
CHANGED
@@ -190,16 +190,16 @@ class Environment
|
|
190
190
|
@local_variables.filter{|k| !@locked_variables.include?(k)}[name] || @parent&.unlocked_local_variable(name)
|
191
191
|
end
|
192
192
|
|
193
|
-
def unlocked_local_variables
|
194
|
-
@local_variables.keys.filter{|k| !@locked_variables.include?(k)} + (@parent&.unlocked_local_variables).to_a
|
195
|
-
end
|
196
|
-
|
197
193
|
def unlocked_local_variable?(name)
|
198
194
|
name = name.to_sym
|
199
195
|
@local_variables.filter{|k,_v| !@locked_variables.include?(k)}.key?(name) ||
|
200
196
|
!!@parent&.unlocked_local_variable?(name)
|
201
197
|
end
|
202
198
|
|
199
|
+
def unlocked_local_variables
|
200
|
+
@local_variables.keys.filter{|k| !@locked_variables.include?(k)} + (@parent&.unlocked_local_variables).to_a
|
201
|
+
end
|
202
|
+
|
203
203
|
def lock_variable(name)
|
204
204
|
n = name.to_sym
|
205
205
|
raise NameError.new("#{name} is not a local variable", n) unless @local_variables.key?(n)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rash-command-shell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.2
|
4
|
+
version: 0.4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kellen Watt
|
@@ -43,7 +43,9 @@ files:
|
|
43
43
|
homepage: https://github.com/KellenWatt/rash
|
44
44
|
licenses:
|
45
45
|
- MIT
|
46
|
-
metadata:
|
46
|
+
metadata:
|
47
|
+
documentation_uri: https://github.com/KellenWatt/rash/wiki
|
48
|
+
wiki: https://github.com/KellenWatt/rash/wiki
|
47
49
|
post_install_message:
|
48
50
|
rdoc_options: []
|
49
51
|
require_paths:
|