go_script 0.1.5 → 0.1.6

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: e90c214cbb490f5c4292b0ceabdb58b96cb21e78
4
- data.tar.gz: 77192687ae1fabf8cf3ebc45392274aadc033e08
3
+ metadata.gz: b90683b2a65d61e15558743c1108ebbd66d4cf1b
4
+ data.tar.gz: ef2a0ce2405d4cb29093e2bbf0a76ce094943c15
5
5
  SHA512:
6
- metadata.gz: 54db5e7930dde6e65838506430159d41dfc5319143a8d4a3292ac73f5fe1a46688e684ba99ce3dc2208dc93482c4cdb01f4fa393ba661c77d9b442e8a9f667aa
7
- data.tar.gz: 898c3507c5a7cf4a8ced1c2928135258833557ab4e57d1e007b8c0329943287a3f27531e07109c13476877a085d4cd6a419a02a5bde8dff1bf992a78cd05369b
6
+ metadata.gz: 68002898685507d633ed2c979a0521ffabee6e4be7accd62c7ea61ca5cb21f7fae522f033413e4fb02245932d406c72095d72ebdae8f6ae0c8b3a728b5fec07b
7
+ data.tar.gz: 7cdb22cef865ef7e0e66992a952184021a617a65f11faa070c7874daf7a345ca22bc294c51579b1382983667a160469556ebaa08c80424c7401b02f3ad2e3d02
@@ -12,7 +12,7 @@ Dir.chdir File.dirname(__FILE__)
12
12
 
13
13
  def try_command_and_restart(command)
14
14
  exit $CHILD_STATUS.exitstatus unless system command
15
- exec RbConfig.ruby, *[$PROGRAM_NAME].concat(ARGV)
15
+ exec({ 'RUBYOPT' => nil }, RbConfig.ruby, *[$PROGRAM_NAME].concat(ARGV))
16
16
  end
17
17
 
18
18
  begin
@@ -40,16 +40,15 @@ module GoScript
40
40
  end
41
41
 
42
42
  def exec_cmd(cmd)
43
- exit $CHILD_STATUS.exitstatus unless system cmd
44
- end
45
-
46
- def install_bundle
47
- begin
48
- require 'bundler'
49
- rescue LoadError
50
- exec_cmd 'gem install bundler'
43
+ status = system(
44
+ { 'RUBYOPT' => nil }, cmd, err: :out)
45
+ if $CHILD_STATUS.exitstatus.nil?
46
+ $stderr.puts "could not run command: #{cmd}"
47
+ $stderr.puts "(Check syslog for possible `Out of memory` error?)"
48
+ exit 1
49
+ else
50
+ exit $CHILD_STATUS.exitstatus unless status
51
51
  end
52
- exec_cmd 'bundle install'
53
52
  end
54
53
 
55
54
  def update_gems(gems = '')
@@ -1,7 +1,7 @@
1
1
  # @author Mike Bland (michael.bland@gsa.gov)
2
2
 
3
3
  module GoScript
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
 
6
6
  class Version
7
7
  def self.check_ruby_version(min_version)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_script
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Bland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-02 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler