theine 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/theine_set_ruby +17 -0
- metadata +3 -1
data/bin/theine_set_ruby
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
script = <<EOS
|
3
|
+
#!/bin/sh
|
4
|
+
RUBY_CMD="%RUBY_CMD%"
|
5
|
+
|
6
|
+
$RUBY_CMD -e "require 'theine/client'" "$@"
|
7
|
+
EOS
|
8
|
+
|
9
|
+
if ARGV[0]
|
10
|
+
path = %x[which theine]
|
11
|
+
File.open(path.strip, "w") do |f|
|
12
|
+
f.write(script.gsub("%RUBY_CMD%", ARGV[0]))
|
13
|
+
end
|
14
|
+
puts "Set theine to run using #{ARGV[0]}."
|
15
|
+
else
|
16
|
+
puts "Usage: theine_set_ruby /path/to/ruby_executable"
|
17
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: theine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jan Berdajs
|
@@ -16,6 +16,7 @@ email: mrbrdo@mrbrdo.net
|
|
16
16
|
executables:
|
17
17
|
- theine
|
18
18
|
- theine_server
|
19
|
+
- theine_set_ruby
|
19
20
|
extensions: []
|
20
21
|
extra_rdoc_files: []
|
21
22
|
files:
|
@@ -25,6 +26,7 @@ files:
|
|
25
26
|
- lib/theine/instance.rb
|
26
27
|
- bin/theine
|
27
28
|
- bin/theine_server
|
29
|
+
- bin/theine_set_ruby
|
28
30
|
homepage: https://github.com/mrbrdo/theine
|
29
31
|
licenses:
|
30
32
|
- MIT
|