jota 0.9.0.dev7 → 0.9.0
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/INSTALL +150 -99
- data/lib/gui.rb +2 -2
- data/lib/version.rb +6 -6
- metadata +7 -8
data/INSTALL
CHANGED
@@ -1,128 +1,180 @@
|
|
1
1
|
|
2
|
-
$Id: INSTALL 248 2010-04-11 10:07:21Z dz $
|
3
|
-
|
4
2
|
Jota is a written in the Ruby programming language and uses GTK+ Widgets.
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
- Ruby interpreter often already installed
|
10
|
-
- GTK+ libraries comes with Gnome, you probably have it already
|
11
|
-
- libglade a library for loadable user interfaces
|
12
|
-
part of the GTK+ project
|
13
|
-
- Ruby bindings for GTK+ and libglade
|
14
|
-
- Ruby Gems the Ruby packet manager
|
15
|
-
|
16
|
-
|
17
|
-
PREREQUISITES
|
18
|
-
-------------
|
19
|
-
|
20
|
-
For the common operating systems you can use the following command:
|
21
|
-
|
22
|
-
* Ubuntu/Debian
|
23
|
-
|
24
|
-
% apt-get install libglade2-ruby1.8 rubygems
|
25
|
-
|
4
|
+
Before you can install Jota you must install the Ruby programming language
|
5
|
+
and the GTK+ widget set.
|
26
6
|
|
27
|
-
|
7
|
+
You need:
|
28
8
|
|
29
|
-
|
9
|
+
- The Ruby language: compiler, runtime, libraries
|
10
|
+
- Gem: The Ruby package manager. Sometimes included in the Ruby package
|
11
|
+
- Build tools (optional): If you want to install the GTK+ bindings with Ruby's
|
12
|
+
package manager 'gem', you need the so called build tools, like
|
13
|
+
C-compiler, linker, make-tools, and so on. The build tools are needed,
|
14
|
+
because the system dependent parts of the GTK+ gem are compiled during
|
15
|
+
installation.
|
16
|
+
- GTK+: The graphics library and widget set, known from Gnome and Gimp
|
17
|
+
- GTK+ Bindings for Ruby: A library so that you can access GTK+ from Ruby
|
18
|
+
- Jota: Finally Jota itself. This is also a Ruby gem.
|
30
19
|
|
31
|
-
or
|
32
20
|
|
33
|
-
|
34
|
-
|
35
|
-
% make install
|
36
|
-
|
37
|
-
|
38
|
-
* Fedora (unfinished)
|
39
|
-
|
40
|
-
% yum install ...
|
41
|
-
|
42
|
-
|
43
|
-
* OpenSUSE
|
21
|
+
INSTALLING
|
22
|
+
==========
|
44
23
|
|
45
|
-
|
24
|
+
For the most common operating systems the steps are as follows:
|
46
25
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
RPMs manually. Read
|
51
|
-
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Install+Guide+for+SUSE
|
52
|
-
and fetch the tgz, e.g.
|
26
|
+
Ubuntu/Debian Linux
|
27
|
+
-------------------
|
28
|
+
(Tested with Ubuntu 11.04 and Debian 6.0 (squeeze))
|
53
29
|
|
54
|
-
|
55
|
-
|
30
|
+
Install Ruby + Gems:
|
31
|
+
apt-get install ruby rubygems
|
56
32
|
|
57
|
-
|
33
|
+
Install GTK+ + Ruby bindings:
|
34
|
+
apt-get install libgtk2-ruby # (recommended)
|
35
|
+
or
|
36
|
+
apt-get install build-essential
|
37
|
+
gem install gtk2
|
58
38
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
39
|
+
Install Jota:
|
40
|
+
gem install jota # (recommended)
|
41
|
+
or
|
42
|
+
Download a jota-VER.gem from http://rubygems.org/gems/jota. VER stand
|
43
|
+
for the version you are looking for.
|
44
|
+
gem install jota-VER.gem
|
45
|
+
|
46
|
+
Call Jota:
|
47
|
+
or
|
48
|
+
/var/lib/gems/1.8/bin/jota
|
49
|
+
or
|
50
|
+
Append the line
|
51
|
+
PATH="$PATH:/var/lib/gems/1.8/bin"
|
52
|
+
to $HOME/.bashrc (or consult your shell's manpage for the correct file
|
53
|
+
and/or syntax)
|
54
|
+
|
55
|
+
Then you can invoke Jota by calling jota
|
56
|
+
|
57
|
+
(Please see https://launchpad.net/bugs/145267 for details, why invoking
|
58
|
+
a gem is not straight forward on Ubuntu)
|
59
|
+
|
60
|
+
|
61
|
+
Fedora Linux
|
62
|
+
------------
|
63
|
+
(Tested with Fedora 14)
|
64
|
+
|
65
|
+
Install Ruby + Gems:
|
66
|
+
yum install ruby rubygems
|
67
|
+
|
68
|
+
Install GTK+ + Ruby bindings:
|
69
|
+
yum install ruby-gtk2 # (recommended)
|
70
|
+
or
|
71
|
+
yum groupinstall "Development Tools" "Legacy Software Development"
|
72
|
+
yum install gtk2-devel
|
73
|
+
gem install gtk2
|
74
|
+
|
75
|
+
Install Jota:
|
76
|
+
gem install jota # (recommended)
|
77
|
+
or
|
78
|
+
Download a jota-VER.gem from http://rubygems.org/gems/jota. VER stand
|
79
|
+
for the version you are looking for.
|
80
|
+
gem install jota-VER.gem
|
81
|
+
|
82
|
+
Call Jota:
|
83
|
+
jota
|
84
|
+
|
85
|
+
|
86
|
+
OpenSUSE Linux
|
87
|
+
--------------
|
88
|
+
(Tested with OpenSUSE 11.4)
|
89
|
+
|
90
|
+
Install Ruby + Gems:
|
91
|
+
zypper install ruby rubygems
|
92
|
+
|
93
|
+
Install GTK+ + Ruby bindings:
|
94
|
+
zypper install -t pattern devel_C_C++
|
95
|
+
(There is no prebuild ruby-gtk package, therefore we need this
|
96
|
+
cumbersome way to install the Ruby bindings for GTK+.)
|
97
|
+
gem install gtk2
|
98
|
+
|
99
|
+
Install Jota:
|
100
|
+
gem install jota # (recommended)
|
101
|
+
or
|
102
|
+
Download a jota-VER.gem from http://rubygems.org/gems/jota. VER stand
|
103
|
+
for the version you are looking for.
|
104
|
+
gem install jota-VER.gem
|
105
|
+
|
106
|
+
Call Jota:
|
107
|
+
jota
|
108
|
+
|
109
|
+
|
110
|
+
FreeBSD
|
111
|
+
-------
|
112
|
+
(Tested with FreeBSD 8.2)
|
87
113
|
|
114
|
+
Install Ruby + Gems:
|
115
|
+
cd /usr/ports/lang/ruby18; make install # (Select OK)
|
116
|
+
cd /usr/ports/devel/ruby-gems; make install
|
88
117
|
|
89
|
-
|
90
|
-
|
118
|
+
Install GTK+ + Ruby bindings:
|
119
|
+
cd /usr/ports/x11-toolkits/ruby-gem2; make install # (recommended)
|
120
|
+
or
|
121
|
+
gem install gtk2
|
91
122
|
|
92
|
-
|
123
|
+
Install Jota:
|
124
|
+
gem install jota # (recommended)
|
125
|
+
or
|
126
|
+
Download a jota-VER.gem from http://rubygems.org/gems/jota. VER stand
|
127
|
+
for the version you are looking for.
|
128
|
+
gem install jota-VER.gem
|
93
129
|
|
94
|
-
|
130
|
+
Call Jota:
|
131
|
+
jota
|
95
132
|
|
96
|
-
alternatively, download jota-$VERSION.gem and install it with
|
97
133
|
|
98
|
-
|
134
|
+
Windows
|
135
|
+
-------
|
136
|
+
(Tested with Windows XP)
|
99
137
|
|
100
|
-
|
101
|
-
|
102
|
-
|
138
|
+
Install Ruby + Gems:
|
139
|
+
Goto http://rubyinstaller.org
|
140
|
+
Download the latest 1.8.x version (at least 1.8.7)
|
141
|
+
Install
|
142
|
+
Install into default folder (like c:\Ruby187)
|
143
|
+
Check box: Add Ruby executable to your PATH
|
144
|
+
Check box: Associate .rb and .rbw files with this Ruby installation
|
103
145
|
|
146
|
+
Install GTK+ + Ruby bindings:
|
147
|
+
Execute (1): gem install gtk2
|
104
148
|
|
149
|
+
Install Jota:
|
150
|
+
Execute (1): gem install jota # (recommended)
|
151
|
+
or
|
152
|
+
Download a jota-VER.gem from http://rubygems.org/gems/jota. VER stands
|
153
|
+
for the version you are looking for.
|
154
|
+
Execute (1): gem install jota-VER.gem
|
105
155
|
|
106
|
-
|
107
|
-
|
156
|
+
Call Jota:
|
157
|
+
Execute(1): jota
|
158
|
+
or
|
159
|
+
Create a shortcut and point it to
|
160
|
+
"C:\Ruby187\bin\rubyw C:\Ruby187\bin\jota" (2)
|
108
161
|
|
109
|
-
|
162
|
+
When you call jota with rubyw instead of ruby, you won't get a command
|
163
|
+
window hanging around.
|
110
164
|
|
111
|
-
Normally, binaries installed through gems should be in the path, so you
|
112
|
-
can simply invoke Jota with the command jota
|
113
165
|
|
114
|
-
|
115
|
-
|
116
|
-
|
166
|
+
(1) Execute either by
|
167
|
+
- clicking Start->Run on Windows XP
|
168
|
+
- hitting Win-R
|
169
|
+
- opening a command prompt window (cmd.exe) and entering a command
|
117
170
|
|
118
|
-
|
171
|
+
(2) Use the install path from the first step instead of c:\Ruby187,
|
172
|
+
if different.
|
119
173
|
|
120
|
-
You can run Jota through: Start->Execute: "Jota" or create a shortcut and
|
121
|
-
point it to C:\Ruby\bin\jota.cmd
|
122
174
|
|
123
175
|
|
124
176
|
UPDATING
|
125
|
-
|
177
|
+
========
|
126
178
|
|
127
179
|
gem update jota
|
128
180
|
|
@@ -133,14 +185,13 @@ gem install jota
|
|
133
185
|
gem cleanup jota
|
134
186
|
|
135
187
|
|
188
|
+
|
136
189
|
DEVELOPMENT TOOLS
|
137
|
-
|
190
|
+
=================
|
138
191
|
|
139
192
|
If you want to contribute to the development of Jota you need the following
|
140
193
|
tools:
|
141
194
|
|
142
|
-
- rake "make"
|
195
|
+
- rake "make" alternative with ruby syntax
|
143
196
|
- rdoc inline documentation generator
|
144
197
|
- rtags "tags" for ruby code
|
145
|
-
|
146
|
-
|
data/lib/gui.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
# $Id: gui.rb
|
3
|
+
# $Id: gui.rb 300 2011-04-18 08:38:44Z dz $
|
4
4
|
|
5
5
|
|
6
6
|
# rdoc: see http://en.wikibooks.org/wiki/Ruby_Programming/RubyDoc
|
@@ -37,7 +37,7 @@ require 'preferences'
|
|
37
37
|
|
38
38
|
class Gui
|
39
39
|
|
40
|
-
require '
|
40
|
+
require 'gtk2'
|
41
41
|
|
42
42
|
attr :glade
|
43
43
|
|
data/lib/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
# $Id: version.rb
|
2
|
+
# $Id: version.rb 302 2011-08-03 13:28:05Z dz $
|
3
3
|
|
4
4
|
|
5
5
|
class Version
|
@@ -7,7 +7,7 @@ class Version
|
|
7
7
|
def Version.state
|
8
8
|
result = ""
|
9
9
|
if STATE != "" then
|
10
|
-
result = "
|
10
|
+
result = ".#{STATE}"
|
11
11
|
if STATEVER > 0 then
|
12
12
|
result += ("%d" % STATEVER)
|
13
13
|
end
|
@@ -23,16 +23,16 @@ def Version.platform
|
|
23
23
|
return "#{RUBY_PLATFORM}"
|
24
24
|
end
|
25
25
|
|
26
|
-
#
|
26
|
+
# Rational Versioning Policy: http://docs.rubygems.org/read/chapter/7
|
27
27
|
|
28
28
|
MAJOR = 0
|
29
29
|
MINOR = 9
|
30
30
|
PATCH = 0
|
31
|
-
STATE = "
|
32
|
-
|
31
|
+
STATE = "" # "dev", "rc", or ""
|
32
|
+
#STATE = "dev" # "dev", "rc", or ""
|
33
|
+
STATEVER = 8
|
33
34
|
|
34
35
|
STRING = "%d.%d.%d%s" % [MAJOR, MINOR,PATCH,Version.state]
|
35
|
-
GEM_STRING = "%d.%d.%d.%s" % [MAJOR, MINOR,PATCH,Version.state]
|
36
36
|
|
37
37
|
PROGRAM_NAME = "Jota"
|
38
38
|
PROGRAM_NAMELC = PROGRAM_NAME.downcase
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jota
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 59
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 0
|
10
|
-
|
11
|
-
version: 0.9.0.dev7
|
10
|
+
version: 0.9.0
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Derik van Zuetphen
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2011-
|
18
|
+
date: 2011-08-03 15:32:48 +02:00
|
20
19
|
default_executable:
|
21
20
|
dependencies: []
|
22
21
|
|
@@ -70,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
70
|
none: false
|
72
71
|
requirements:
|
73
|
-
- - "
|
72
|
+
- - ">="
|
74
73
|
- !ruby/object:Gem::Version
|
75
74
|
hash: 31
|
76
75
|
segments:
|
@@ -78,8 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
77
|
- 0
|
79
78
|
- 0
|
80
79
|
version: 0.0.0
|
81
|
-
requirements:
|
82
|
-
|
80
|
+
requirements:
|
81
|
+
- GTK+ ruby bindings, you can either use your package manager or do gem install gtk2
|
83
82
|
rubyforge_project: jota
|
84
83
|
rubygems_version: 1.3.7
|
85
84
|
signing_key:
|