etti 0.3.0 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f90f9c98ad526de030deb1175380bbc68a9e27a
4
- data.tar.gz: 88ba23ff68c79de776aba93031271eb11c06e535
3
+ metadata.gz: 83cacfc33d97ca9758d06d8a3edfec4290788d67
4
+ data.tar.gz: 73f4b727abe2a4a3fe4fd7a7a6eff42ec7b16a95
5
5
  SHA512:
6
- metadata.gz: 62c08af492f003f385d49c47ec672a939a056aa332362408a88a8921b5c12281e4157476aa321e1c5aba2cdb0d3c60a520dab5423c5d5bfbfd34c99451a02000
7
- data.tar.gz: 28f596ecec31f3054036169d1c04a05e33e2e2d39ec4c1979fd28eca6a2f6434cb445585156c0eeec11cc2d6673ee7a1955d05bff69192a747a83516f0eb8fd7
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 usable at all, cause some core functionality is missing. But you can
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
- beside of rgw, qrencoder and ruby-filemagic you get the libraries as debian packages. The three you
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
- Every now and then you may need also ruby-gtk from git. Because at this point ruby-gtk
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
- **how to install**
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>~$ruby setup.rb config
39
- ~$ruby setup.rb setup</code></pre>
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 = Gdk::Pixbuf.from_surface surface, 0, 0, ext.width, ext.height * 1.5
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
@@ -1,3 +1,3 @@
1
1
  module Etti
2
- VERSION = [0, 3, 0]
2
+ VERSION = [0, 3, 1]
3
3
  end
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.0
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-29 00:00:00.000000000 Z
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