etti 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -25
- data/lib/etti/ui/label-elements.rb +8 -3
- data/lib/etti/version.rb +1 -1
- metadata +2 -3
- data/lib/data/locale/de/LC_MESSAGES/etti.mo +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83cacfc33d97ca9758d06d8a3edfec4290788d67
|
4
|
+
data.tar.gz: 73f4b727abe2a4a3fe4fd7a7a6eff42ec7b16a95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d13a5be38ab88fbf6a872571e2b412f8677114b408e4c82fb7ae5e8a73ccb513666c6ad82e632331c5ac4e8d99687eb3d53430b2609bd4d39a8929297233429a
|
7
|
+
data.tar.gz: 0147dd1c2a9c685656a7d6189343dbcd0e47a875ec6d9ae887456cb228925bb0f58a82e6c1ebd3d31d6d10ab9a0fb127161940c2130f4661f3c32aced0863508
|
data/README.md
CHANGED
@@ -7,40 +7,23 @@ Etti will be a editor to create and print labels of all kind. It is specially ma
|
|
7
7
|
bigger amounts of labels within just a few simple steps. This will also include printing of
|
8
8
|
Barcodes and QR-Codes
|
9
9
|
|
10
|
-
At this point Etti is not
|
10
|
+
At this point Etti is not very useful, cause some core functionality is missing. But you can
|
11
11
|
already play a little bit around with Etti and see some of the concepts. Don't forget to come
|
12
12
|
back later :-)
|
13
13
|
|
14
|
-
**requirements**
|
15
|
-
<pre>ruby >= 2.0.0
|
16
|
-
gtk >= 3.10
|
17
|
-
ruby-gtk >= 2.2.0
|
18
|
-
ruby-gettext >= 3.0.3
|
19
|
-
rgw >= 0.4
|
20
|
-
chunky_png >= 1.2.8
|
21
|
-
qrencoder >= 1.4.1
|
22
|
-
ruby-filemagic >= 0.5.2</pre>
|
23
14
|
|
24
|
-
|
25
|
-
will find on github.com at
|
26
|
-
|
27
|
-
[https://github.com/detlefreichl/rgw](https://github.com/detlefreichl/rgw)
|
28
|
-
[https://github.com/harrisj/qrencoder](https://github.com/harrisj/qrencoder)
|
29
|
-
[https://github.com/blackwinter/ruby-filemagic](https://github.com/blackwinter/ruby-filemagic)
|
15
|
+
**how to install**
|
30
16
|
|
31
|
-
|
32
|
-
is in the Gtk+ 3.0 branch not feature complete and sometimes I use features from git master.
|
17
|
+
Etti comes as a RubyGem from [http://rubygems.org/](http://rubygems.org/). Just install it with
|
33
18
|
|
19
|
+
<pre><code>~$sudo gem install etti</code></pre>
|
20
|
+
Now you can start Etti from a terminal with the command `etti`
|
34
21
|
|
35
|
-
|
36
|
-
change with the terminal into the source directory and then do the following steps:
|
22
|
+
If you want to install a cloned copy from github.com you first have to create the gem package with
|
37
23
|
|
38
|
-
<pre><code>~$
|
39
|
-
~$
|
40
|
-
*get root / superuser*
|
41
|
-
<pre><code>#ruby setup.rb install</code></pre>
|
24
|
+
<pre><code>~$gem build etti.gemspec
|
25
|
+
~$sudo gem install etti-"version".gem</code></pre>
|
42
26
|
|
43
|
-
From now you can start Etti from a terminal with the command `etti`
|
44
27
|
|
45
28
|
**contribution**
|
46
29
|
|
@@ -65,10 +65,15 @@ module Etti
|
|
65
65
|
cc.font_size = 16.0
|
66
66
|
cc.show_text text
|
67
67
|
cc.stroke
|
68
|
-
pixbuf =
|
68
|
+
pixbuf = nil
|
69
|
+
if ([2, 2, 2] <=> Gtk::BINDING_VERSION) < 1
|
70
|
+
pixbuf = Gdk::Pixbuf.from_surface surface, 0, 0, ext.width, ext.height * 1.5
|
71
|
+
else
|
72
|
+
surface.flush
|
73
|
+
pixbuf = Gdk::Pixbuf.new surface.data, Gdk::Pixbuf::ColorSpace::RGB, true, 8,
|
74
|
+
ext.width, ext.height, ext.width * 4
|
75
|
+
end
|
69
76
|
context.set_icon :pixbuf => pixbuf, :hot_x => ext.width / 2.0, :hot_y => ext.height
|
70
77
|
end
|
71
|
-
|
72
|
-
|
73
78
|
end
|
74
79
|
end
|
data/lib/etti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: etti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Detlef Reichl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n-toolbox
|
@@ -127,7 +127,6 @@ files:
|
|
127
127
|
- COPYING
|
128
128
|
- README.md
|
129
129
|
- bin/etti
|
130
|
-
- lib/data/locale/de/LC_MESSAGES/etti.mo
|
131
130
|
- lib/data/page-data.json
|
132
131
|
- lib/data/pixmaps/logo.png
|
133
132
|
- lib/data/pixmaps/logo.svg
|
Binary file
|