klookup 0.2.1 → 0.2.2
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/bin/cklookup +3 -4
- metadata +1 -2
- data/bin/gklookup +0 -48
data/bin/cklookup
CHANGED
@@ -16,10 +16,9 @@ begin
|
|
16
16
|
rescue LoadError # If we fail...
|
17
17
|
$:.unshift '../lib' # Add ../lib to the load path
|
18
18
|
require 'klookup' # And try again!
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
ENV['KLOOKUP_PATH']='../data'
|
19
|
+
unless ENV['KLOOKUP_PATH']
|
20
|
+
ENV['KLOOKUP_PATH']='../data'
|
21
|
+
end
|
23
22
|
end
|
24
23
|
|
25
24
|
# It's not the end of the world
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.1
|
|
3
3
|
specification_version: 1
|
4
4
|
name: klookup
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
6
|
+
version: 0.2.2
|
7
7
|
date: 2007-01-29 00:00:00 +00:00
|
8
8
|
summary: A set of kanji lookup tools and a library.
|
9
9
|
require_paths:
|
@@ -52,7 +52,6 @@ extra_rdoc_files: []
|
|
52
52
|
|
53
53
|
executables:
|
54
54
|
- cklookup
|
55
|
-
- gklookup
|
56
55
|
- klookup.cgi
|
57
56
|
extensions: []
|
58
57
|
|
data/bin/gklookup
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
=begin
|
3
|
-
|
4
|
-
bin/gklookup
|
5
|
-
|
6
|
-
Copyright © Tom Adams 2006
|
7
|
-
|
8
|
-
This programme is free software.
|
9
|
-
You can distribute/modify this program under
|
10
|
-
the terms of the Ruby License.
|
11
|
-
|
12
|
-
=end
|
13
|
-
|
14
|
-
begin
|
15
|
-
require 'klookup' # Try to load the library from the load path
|
16
|
-
rescue LoadError # If we fail...
|
17
|
-
$:.unshift '../lib' # Add ../lib to the load path
|
18
|
-
require 'klookup' # And try again!
|
19
|
-
end
|
20
|
-
|
21
|
-
# If gettext is not available, don't panic
|
22
|
-
begin
|
23
|
-
require 'gettext'
|
24
|
-
include GetText
|
25
|
-
bindtextdomain 'klookup'
|
26
|
-
rescue LoadError
|
27
|
-
def _(arg); arg; end
|
28
|
-
end
|
29
|
-
|
30
|
-
# I don't think we can blag this requirement
|
31
|
-
require 'gtk2'
|
32
|
-
|
33
|
-
# A GTK UI
|
34
|
-
class GTK
|
35
|
-
include KLookup::Lookup
|
36
|
-
|
37
|
-
def initialize
|
38
|
-
# Setup
|
39
|
-
end
|
40
|
-
|
41
|
-
def run
|
42
|
-
# Run Gtk.main
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|
46
|
-
|
47
|
-
|
48
|
-
GTK.new.run
|