shellplay 0.1.7 → 0.1.8

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: 1a755f6552006186547d635756ba577cb2fadec3
4
- data.tar.gz: bc83ab0769908a487e6750361c980116f65ce2dc
3
+ metadata.gz: 456de933403665579e98d255460cdeb1ef9cc320
4
+ data.tar.gz: 514500baf022846b90e93b77d2643047d3c2d5ab
5
5
  SHA512:
6
- metadata.gz: e8dd6658f4a887d91164a6664368dd73df83d12a6734faebf51e7e158c629ffa208ac8f8bb935c1d7daefb103a3813a5e7d585f43c6abd3673f591efc0415d98
7
- data.tar.gz: bedada485c7bf906584fe67c201c43c7b67aeb58d5ec7c01a68ad95b7552effe79203b10a1732a95f54a85f98efb67ba0bb3691e4662eeb4f1918cf85258bc31
6
+ metadata.gz: d11f24dcc923ffd8b06584972e6a65b5787ed30bf0816fdccb75bea7716d6ceecdd92b332d494cf3dcd9f072d5bfa1565f5d048fac6904ac55cc95278c9a97c3
7
+ data.tar.gz: e8186edeb300b993f2520ea886d7a3cfb74bfcd89f2da1cdcbcbcf72b785053fdd6b0e8b5555f17a72df121d2d65e905f8e47fd1f1c7ed66e5137e23d6fe9b69
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Shellplay Changelog
2
2
  =========================
3
3
 
4
+ v0.1.8 - 2015-12-09
5
+ -------------------
6
+ - fix clear screen on linux
7
+ - fix command execution to use $SHELL rather than bash
8
+ for FreeBSD comopat
9
+
4
10
  v0.1.7 - 2015-11-23
5
11
  -------------------
6
12
  - create config dir if it does not exist (first time launch)
data/bin/shellplay CHANGED
@@ -7,6 +7,8 @@ require 'open3'
7
7
  lib = File.expand_path('../../lib', __FILE__)
8
8
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
9
9
 
10
+ SHELL = ENV['SHELL']
11
+
10
12
  require 'shellplay/session'
11
13
 
12
14
  @session = Shellplay::Session.new
@@ -25,7 +27,7 @@ def usage
25
27
  puts " s# jump to screen #"
26
28
  puts " <enter> jump to next screen"
27
29
  puts " p jump to previous screen"
28
- puts " <command> execute a subcommand in a bash -l -c"
30
+ puts " <command> execute a subcommand in a `$SHELL -c`"
29
31
  puts " x,q quit"
30
32
  puts
31
33
  end
@@ -34,11 +36,10 @@ end
34
36
  #
35
37
  def display(screen)
36
38
  if screen.clearscreen
37
- if ENV['TERM_PROGRAM'] = 'iTerm.app'
39
+ if ENV['TERM_PROGRAM'] == 'iTerm.app'
38
40
  print "\e]50;ClearScrollback\a"
39
41
  else
40
- `clear`
41
- print "\e[c"
42
+ print "\033c"
42
43
  end
43
44
  end
44
45
  if screen.displaycommand
@@ -120,7 +121,7 @@ while continue do
120
121
  shownext
121
122
  else
122
123
  begin
123
- Open3.popen3(command.strip) do |i, o, e, t|
124
+ Open3.popen3(SHELL, "-c", command.strip) do |i, o, e, t|
124
125
  o.read.split("\n").each do |line|
125
126
  puts line
126
127
  sleep @sleeptime
data/bin/shellrecord CHANGED
@@ -6,6 +6,8 @@ require 'open3'
6
6
  lib = File.expand_path('../../lib', __FILE__)
7
7
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
8
8
 
9
+ SHELL = ENV['SHELL']
10
+
9
11
  require 'shellplay'
10
12
 
11
13
  continue = true
@@ -96,7 +98,7 @@ while continue do
96
98
  })
97
99
  else
98
100
  start_time = Time.now
99
- Open3.popen3("bash","-l", "-c", command) do |i, o, e, t|
101
+ Open3.popen3(SHELL,"-c", command) do |i, o, e, t|
100
102
  screen = Shellplay::Screen.new
101
103
  out = o.read
102
104
  err = e.read
data/shellplay.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'paint', '~> 1.0.0'
22
22
  spec.add_dependency 'cliprompt', '~> 0.1.2'
23
23
  spec.add_dependency 'configstruct', '~> 0.1.0'
24
- spec.add_dependency 'shell2html', '~> 0.0.5'
24
+ spec.add_dependency 'shell2html', '~> 0.0.6'
25
25
 
26
26
  spec.add_development_dependency "bundler", '~> 1.6'
27
27
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - mose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2015-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paint
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.0.5
61
+ version: 0.0.6
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.0.5
68
+ version: 0.0.6
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement