xdojava 1.0.5.pre → 1.0.6.pre
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.
- data/lib/xdojava.rb +4 -9
- metadata +3 -3
data/lib/xdojava.rb
CHANGED
@@ -1,27 +1,22 @@
|
|
1
1
|
require 'bundler'
|
2
2
|
module SageoneNaUtils
|
3
3
|
class XdoJava
|
4
|
-
|
5
|
-
spec = Bundler.load.specs.find{|s| s.name == "xdojava" }
|
6
|
-
classpath = spec.gem_dir
|
7
|
-
classpath = classpath.concat("/lib")
|
8
|
-
end
|
4
|
+
@@classpath = (Bundler.load.specs.find{|s| s.name == "xdojava" }).gem_dir.concat("/lib")
|
9
5
|
|
10
6
|
# Types a character sequence, but without any special chars.
|
11
7
|
def self.type_keys(type_this)
|
12
|
-
command_line = 'java -classpath ' +
|
13
|
-
puts command_line
|
8
|
+
command_line = 'java -classpath ' + @@classpath + ' xdojava ' + type_this
|
14
9
|
system(command_line)
|
15
10
|
sleep(0.5)
|
16
11
|
end
|
17
12
|
|
18
13
|
def self.tab
|
19
|
-
command_line = 'java -classpath ' +
|
14
|
+
command_line = 'java -classpath ' + @@classpath + ' xdojava {TAB}'
|
20
15
|
system(command_line)
|
21
16
|
end
|
22
17
|
|
23
18
|
def self.tab_back
|
24
|
-
command_line = 'java -classpath ' +
|
19
|
+
command_line = 'java -classpath ' + @@classpath + ' xdojava {SHIFT_TAB}'
|
25
20
|
system(command_line)
|
26
21
|
end
|
27
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xdojava
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 961915980
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 6
|
10
10
|
- pre
|
11
|
-
version: 1.0.
|
11
|
+
version: 1.0.6.pre
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- rgunter
|