arsh 1.1.5 → 1.1.6
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.
- data/bin/arsh +6 -2
- data/libs/version.rb +1 -1
- metadata +3 -3
data/bin/arsh
CHANGED
|
@@ -40,7 +40,7 @@ end
|
|
|
40
40
|
# Builtin commands
|
|
41
41
|
|
|
42
42
|
module ArshCommands
|
|
43
|
-
INTHIST =
|
|
43
|
+
INTHIST = [[]]
|
|
44
44
|
def internal_history
|
|
45
45
|
@internal_history
|
|
46
46
|
end
|
|
@@ -130,7 +130,11 @@ end
|
|
|
130
130
|
end if File.exist?(arshrc)
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
begin
|
|
134
|
+
ArshCommands::INTHIST << File.open("#{ENV['HOME']}/.arsh_history").readlines[0..(ENV['HIST_COUNT'].to_i - 1)]
|
|
135
|
+
rescue
|
|
136
|
+
ArshCommands::INTHIST
|
|
137
|
+
end
|
|
134
138
|
ArshCommands::INTHIST[0].map { |x| Readline::HISTORY.push(x.gsub(/^\[.*\] /,'').strip) }
|
|
135
139
|
|
|
136
140
|
at_exit { File.open("#{ENV['HOME']}/.arsh_history","w") { |f| f.puts ArshCommands::INTHIST } }
|
data/libs/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: arsh
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -15,7 +15,7 @@ date: 2012-01-20 00:00:00.000000000 Z
|
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rb-readline
|
|
18
|
-
requirement: &
|
|
18
|
+
requirement: &7574140 !ruby/object:Gem::Requirement
|
|
19
19
|
none: false
|
|
20
20
|
requirements:
|
|
21
21
|
- - ! '>='
|
|
@@ -23,7 +23,7 @@ dependencies:
|
|
|
23
23
|
version: '0'
|
|
24
24
|
type: :runtime
|
|
25
25
|
prerelease: false
|
|
26
|
-
version_requirements: *
|
|
26
|
+
version_requirements: *7574140
|
|
27
27
|
description: Provides a shell that can run pure Ruby code as well as ordinary linux
|
|
28
28
|
commands.
|
|
29
29
|
email:
|