qtbindings 4.8.6.0 → 4.8.6.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.
data/extconf.rb CHANGED
@@ -79,7 +79,7 @@ File.open('Makefile', 'w') do |file|
79
79
  file.puts "\tset CC=mingw32-gcc.exe"
80
80
  file.puts "\tset CXX=mingw32-g++.exe"
81
81
  file.puts "\t-cd ext\\build && \\"
82
- file.puts "cmake \\"
82
+ file.puts "cmake -DCMAKE_MINIMUM_REQUIRED_VERSION=2.6 \\"
83
83
  file.puts "-G \"MinGW Makefiles\" \\"
84
84
  if ARGV[0] == '-d'
85
85
  file.puts "-DCMAKE_BUILD_TYPE=Debug \\"
@@ -200,7 +200,7 @@ File.open('Makefile', 'w') do |file|
200
200
  file.puts ""
201
201
  file.puts "build: makedirs"
202
202
  file.puts "\t-cd ext/build; \\"
203
- file.puts "cmake \\"
203
+ file.puts "cmake -DCMAKE_MINIMUM_REQUIRED_VERSION=2.6 \\"
204
204
  file.puts "-G \"Unix Makefiles\" \\"
205
205
  if ARGV[0] == '-d'
206
206
  file.puts "-DCMAKE_BUILD_TYPE=Debug \\"
@@ -486,6 +486,14 @@ module Qt
486
486
  def type(*args)
487
487
  method_missing(:type, *args)
488
488
  end
489
+
490
+ def self.translate(*args)
491
+ if args[3] and args[3].value == Qt::Application::UnicodeUTF8.value
492
+ return method_missing(:translate,*args).force_encoding('utf-8')
493
+ else
494
+ return method_missing(:translate,*args)
495
+ end
496
+ end
489
497
  end
490
498
 
491
499
  class Buffer < Qt::Base
@@ -627,6 +635,14 @@ module Qt
627
635
  def exit(*args)
628
636
  method_missing(:exit, *args)
629
637
  end
638
+
639
+ def self.translate(*args)
640
+ if args[3] and args[3].value == Qt::Application::UnicodeUTF8.value
641
+ return method_missing(:translate,*args).force_encoding('utf-8')
642
+ else
643
+ return method_missing(:translate,*args)
644
+ end
645
+ end
630
646
  end
631
647
 
632
648
  class Cursor < Qt::Base
@@ -1,2 +1,2 @@
1
- QTBINDINGS_VERSION = '4.8.6.0'
2
- QTBINDINGS_RELEASE_DATE = '2014-09-23 20:58:11 -0600'
1
+ QTBINDINGS_VERSION = '4.8.6.1'
2
+ QTBINDINGS_RELEASE_DATE = '2015-03-26 11:48:16 -0600'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qtbindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.6.0
4
+ version: 4.8.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-09-24 00:00:00.000000000 Z
14
+ date: 2015-03-26 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: qtbindings provides ruby bindings to QT4.x. It is derived from the kdebindings
17
17
  project.
@@ -30,7 +30,6 @@ files:
30
30
  - COPYING.LIB.txt
31
31
  - COPYING.txt
32
32
  - KNOWN_ISSUES.txt
33
- - README.txt
34
33
  - Rakefile
35
34
  - TODO.txt
36
35
  - bin/rbqtapi
@@ -819,3 +818,4 @@ signing_key:
819
818
  specification_version: 4
820
819
  summary: Qt bindings for ruby
821
820
  test_files: []
821
+ has_rdoc:
data/README.txt DELETED
@@ -1,148 +0,0 @@
1
- qtbindings
2
- ----------
3
- This project provides bindings that allow the QT Gui toolkit to be used from the
4
- Ruby Programming language. Overall it is a repackaging of a subset of the KDE
5
- bindings ruby and smoke systems into a format that lends itself well to
6
- packaging into a Ruby gem.
7
-
8
- Goals
9
- -----
10
- 1. To make it easy to install a Qt binding for Ruby on all platforms using
11
- RubyGems
12
- 2. To maintain an up-to-date binary gem for Windows that is bundled with
13
- the latest version of Qt
14
- 3. To reduce the scope and maintenance of the bindings to only bind to the
15
- libraries provided by the Qt SDK.
16
- 4. To increase compatibility with non-linux platforms
17
-
18
- Note: This gem supports Ruby 2.0.0+ starting at qtbindings version 4.8.6.0.
19
- For Ruby 1.9.3 you should use version 4.8.5.2.
20
- For Ruby 1.8.x you can try installing version 4.8.3.0, however upgrading Ruby is
21
- highly recommended.
22
-
23
- Usage Notes
24
- ------------
25
- Ruby threading is now fully supported out of the box. All GUI access however must be done
26
- inside the main thread. To support updating the GUI using other threads, use the following function
27
- provided in Qt4.rb:
28
-
29
- Qt.execute_in_main_thread do # block the main thread
30
- # GUI code which executes and then allows the main thread to execute
31
- end
32
-
33
- Qt.execute_in_main_thread(false) do # don't block the main thread
34
- # GUI code which executes in parallel with the main thread
35
- end
36
-
37
- Tested Environments
38
- --------------------
39
- Mac OSX 10.9.1 (Mavericks)
40
- XCode 5 (clang)
41
- Brew - QT 4.8.6
42
- Cmake 2.8.9
43
- Ruby 2.0.0p353 - Must be compiled with clang (rvm install <version> --with-gcc=clang)
44
-
45
- Windows XP SP3
46
- QT SDK 4.8.5
47
- Cmake 2.8.8
48
- Ruby Ruby 2.0.0p481 installed from rubyinstaller.org
49
-
50
- Windows 7 SP1
51
- QT SDK 4.8.6
52
- Cmake 2.8.12.2
53
- Ruby 2.0.0p353 installed from rubyinstaller.org
54
-
55
- Ubuntu Linux 11.10
56
- QT SDK 4.8.1
57
- Cmake 2.8.5
58
-
59
- Compiling
60
- ---------
61
- Compiling qtbindings requires the following prerequisites:
62
- 1. cmake 2.8.x installed and in your path
63
- 2. QT 4.8.x installed and in your path
64
- 3. Ruby installed and in your path
65
- 4. gcc 4.x (or clang for OSX 10.9)
66
- For Windows this means getting MingGW-w64 from http://mingw-w64.sourceforge.net/download.php (Win-builds project)
67
-
68
- Note for OSX 10.9. The default compiler has changed from gcc to clang. All libraries
69
- need to be compiled with clang or you will get segfaults. This includes ruby, qt, and qtbindings.
70
- *** rvm does not compile with clang by default. You must add --with-gcc=clang when installing a version of ruby ***
71
-
72
- Additionally: all of the operating system prequisites for compiling,
73
- window system development, opengl, etc must be installed.
74
-
75
- Rakefile
76
- --------
77
- Perform the following steps to build the gem on Unix or Mac:
78
- 1. rake VERSION=4.8.x.y gem
79
- Where the x is the subversion of QT and y is the patch level of qtbindings
80
-
81
- Perform the following steps to build the gem on Windows:
82
- 1. Ensure you are running Ruby 2.0.0
83
- ruby -v #=> ruby 2.0.0
84
- 2. rake distclean
85
- 3. rake build
86
- 4. Switch to Ruby 2.1.3
87
- ruby -v #=> ruby 2.1.3
88
- 5. rake build
89
- 6. rake VERSION=4.8.x.y gemnative
90
- Where the x is the subversion of QT and y is the patch level of qtbindings
91
- 7. rake VERSION=4.8.x.y gemqt
92
- Where the x is the subversion of QT and y is the patch level of qtbindings
93
-
94
- Note: The gem is built twice to create the FAT binary which will work
95
- on both Ruby 2.0 and 2.1. The Windows utility called pik is useful for
96
- switching between Ruby versions.
97
-
98
- After building the gem, verify the examples work by running:
99
- 1. rake examples
100
-
101
- Operating Systems Notes:
102
-
103
- Debian Linux
104
- ------------
105
- 1. The following should get you the packages you need:
106
- sudo aptitude install build-essential bison openssl libreadline5
107
- libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim
108
- libsqlite3-0 libsqlite3-dev sqlite3
109
- libxml2-dev git-core subversion autoconf xorg-dev libgl1-mesa-dev
110
- libglu1-mesa-dev
111
-
112
- Mac OSX Snow Leopard
113
- -----------------------
114
- 1. XCode
115
- 2. Brew (http://mxcl.github.com/homebrew/)
116
- Install qt with 'brew install qt'
117
-
118
- Windows - Note: Only necessary for debugging (binary gem available)
119
- --------
120
- QT 4.8.6 requires mingw 4.8.2 from http://mingw-w64.sourceforge.net/download.php (Win-builds project)
121
- QT 4.8.5 requires mingw 4.4 from here or elsewhere: http://nosymbolfound.blogspot.com/2012/12/since-until-now-qt-under-windows-is.html#!/2012/12/since-until-now-qt-under-windows-is.html)
122
-
123
- Install
124
- ------
125
- On linux/MacOSX you must make sure you have all the necessary prerequisites
126
- installed or the compile will fail.
127
-
128
- gem install qtbindings
129
-
130
- This should always work flawlessly on Windows because everything is nicely
131
- packaged into a binary gem. However, the gem is very large ~90MB, so please
132
- be patient while gem downloads the file.
133
-
134
- To get help:
135
- You can file tickets here at github for issues specific to the
136
- qtbindings gem.
137
-
138
- License:
139
- This library is released under the LGPL Version 2.1.
140
- See COPYING.LIB.txt
141
-
142
- Contributing:
143
- Fork the project and submit pull requests.
144
-
145
- Disclaimer:
146
- Almost all of this code was written by the guys who worked on the KDE
147
- bindings project, particurly Arno Rehn and Richard Dale. I hope to increase
148
- the adoption and use of the code that they have written.