arsh 1.1.7 → 1.1.8

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.
Files changed (3) hide show
  1. data/bin/arsh +4 -2
  2. data/libs/version.rb +1 -1
  3. metadata +3 -3
data/bin/arsh CHANGED
@@ -159,8 +159,10 @@ while true
159
159
  #begin puts input.gsub(/\#\{*\}/,'\1') rescue puts "#{$!}" end
160
160
  Readline::HISTORY.push("#{input}") # Add command to history
161
161
  ArshCommands::INTHIST.push("[#{Time.now.strftime("%a %b %d %H:%M:%S")}] #{input}")
162
- until ArshCommands::INTHIST.count <= ENV['HIST_COUNT'].to_i
163
- a.shift if ArshCommands::INTHIST
162
+ if ENV['HIST_COUNT']
163
+ until ArshCommands::INTHIST.count <= ENV['HIST_COUNT'].to_i
164
+ ArshCommands::INTHIST.shift if ArshCommands::INTHIST
165
+ end
164
166
  end
165
167
 
166
168
  # If command is builtin to shell...
@@ -1,3 +1,3 @@
1
1
  module Arsh
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
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.7
4
+ version: 1.1.8
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: &7590800 !ruby/object:Gem::Requirement
18
+ requirement: &7771400 !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: *7590800
26
+ version_requirements: *7771400
27
27
  description: Provides a shell that can run pure Ruby code as well as ordinary linux
28
28
  commands.
29
29
  email: