go_script 0.1.5 → 0.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.
- checksums.yaml +4 -4
- data/bin/go-script-template +1 -1
- data/lib/go_script/go.rb +8 -9
- data/lib/go_script/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b90683b2a65d61e15558743c1108ebbd66d4cf1b
|
4
|
+
data.tar.gz: ef2a0ce2405d4cb29093e2bbf0a76ce094943c15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68002898685507d633ed2c979a0521ffabee6e4be7accd62c7ea61ca5cb21f7fae522f033413e4fb02245932d406c72095d72ebdae8f6ae0c8b3a728b5fec07b
|
7
|
+
data.tar.gz: 7cdb22cef865ef7e0e66992a952184021a617a65f11faa070c7874daf7a345ca22bc294c51579b1382983667a160469556ebaa08c80424c7401b02f3ad2e3d02
|
data/bin/go-script-template
CHANGED
@@ -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
|
data/lib/go_script/go.rb
CHANGED
@@ -40,16 +40,15 @@ module GoScript
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def exec_cmd(cmd)
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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 = '')
|
data/lib/go_script/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2016-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|