mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Merge pull request #2413 from yegortimoschenko/jruby-executable
Add JRuby executable example, fixes #2412
This commit is contained in:
@@ -2847,6 +2847,8 @@ Ruby:
|
|||||||
- ruby
|
- ruby
|
||||||
- macruby
|
- macruby
|
||||||
- rake
|
- rake
|
||||||
|
- jruby
|
||||||
|
- rbx
|
||||||
filenames:
|
filenames:
|
||||||
- .pryrc
|
- .pryrc
|
||||||
- Appraisals
|
- Appraisals
|
||||||
|
|||||||
4
samples/Ruby/rexpl
Executable file
4
samples/Ruby/rexpl
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env rbx
|
||||||
|
$: << 'lib'
|
||||||
|
require 'rexpl'
|
||||||
|
Rexpl::Environment.run
|
||||||
11
samples/Ruby/shoes-swt
Executable file
11
samples/Ruby/shoes-swt
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env jruby
|
||||||
|
lib_directory = File.expand_path('../../lib', __FILE__)
|
||||||
|
$LOAD_PATH << lib_directory
|
||||||
|
|
||||||
|
if File.exist?("Gemfile")
|
||||||
|
require "bundler/setup"
|
||||||
|
Bundler.require
|
||||||
|
end
|
||||||
|
|
||||||
|
require 'shoes/ui/cli'
|
||||||
|
Shoes::CLI.new("swt").run ARGV
|
||||||
Reference in New Issue
Block a user