jota 0.9.0.dev7 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/INSTALL +150 -99
  2. data/lib/gui.rb +2 -2
  3. data/lib/version.rb +6 -6
  4. 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
- To set up a working run time environment to have to install the
7
- following packages:
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
- * FreeBSD
7
+ You need:
28
8
 
29
- % portinstall ruby18-libglade2 ruby18-gems
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
- % cd /usr/ports/devel/ruby-libglade2
34
- % make
35
- % make install
36
-
37
-
38
- * Fedora (unfinished)
39
-
40
- % yum install ...
41
-
42
-
43
- * OpenSUSE
21
+ INSTALLING
22
+ ==========
44
23
 
45
- Does not work for 11.0, probably 10.0 and maybe 11.1. Sorry!
24
+ For the most common operating systems the steps are as follows:
46
25
 
47
- At first, install the packages ruby and rubygems from the standard SUSE
48
- repositories. Because the other GTK+ related packages that you will
49
- need are not in these repositories, you have to fetch and install the
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
- % wget http://franz.hob-bruneck.info/downloads/suse100/ruby-gnome2/0.14.1/\
55
- ruby-gnome2-0.14.1.suse100.tar.gz
30
+ Install Ruby + Gems:
31
+ apt-get install ruby rubygems
56
32
 
57
- Create a temporary directory somewhere
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
- % mkdir opensuse.tmp
60
- % cd opensuse.tmp
61
-
62
- Unpack and install the necessary RPMs
63
-
64
- % tar xvfz ../ruby-gnome2*.tar.gz
65
- % rpm -i ruby-glib2*
66
- % rpm -i ruby-atk*
67
- % rpm -i ruby-pango*
68
- % rpm -i --nodeps ruby-gdkpixbuf2*
69
- % rpm -i ruby-gtk2*
70
- % rpm -i ruby-libglade2*
71
-
72
-
73
-
74
- * Windows
75
-
76
- Windows of course has no sophisticated package management. You have to
77
- download and install the following by hand.
78
-
79
- Go to http://ruby-gnome2.sourceforge.jp/hiki.cgi?Install+Guide+for+Windows
80
- and follow the three steps. In short:
81
-
82
- 1. Install Ruby from
83
- http://rubyforge.org/frs/download.php/47082/ruby186-27_rc2.exe
84
- (enable RubyGems). Install into default installation directory.
85
- 2. Install GTK+ Bindingf for Ruby from
86
- http://prdownloads.sourceforge.net/ruby-gnome2/ruby-gnome2-0.16.0-1-i386-mswin32.exe?download
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
- INSTALLING
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
- Now install Jota as a ruby gem:
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
- gem install jota
130
+ Call Jota:
131
+ jota
95
132
 
96
- alternatively, download jota-$VERSION.gem and install it with
97
133
 
98
- gem install jota-$VERSION.gem
134
+ Windows
135
+ -------
136
+ (Tested with Windows XP)
99
137
 
100
- On Windows Vista you must execute gem as administrator. To do so enter
101
- "gem install jota" in the run box (Start menu, at the bottom) and hit
102
- Ctrl-Shift-Enter. Then accept the UAC dialog with "Continue".
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
- RUNNING
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
- Unix:
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
- If the binary is not in the path, you have to find out the full pathname.
115
- This is gems dependant. For Ubuntu Linux, the full name is
116
- /var/lib/gems/1.8/bin/jota
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
- Windows:
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" supplement with ruby syntax
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 299 2011-02-24 21:19:55Z dz $
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 'libglade2'
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 298 2011-02-23 14:44:55Z dz $
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 = "#{STATE}"
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
- # Semantic versioning used. See http://semver.org for details
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 = "dev" # "dev", "beta", "rc", "" (for final)
32
- STATEVER = 7
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: 1641194486
5
- prerelease: true
4
+ hash: 59
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 0
10
- - dev7
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-02-27 20:40:19 +01:00
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: