fxruby 1.6.38 → 1.6.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -1
- data/History.md +5 -0
- data/appveyor.yml +19 -1
- data/lib/fox16/aliases.rb +1 -1
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FXGLVisual.rb +8 -0
- data/swig-interfaces/FXGLVisual.i +1 -1
- data/swig-interfaces/FXMemoryBuffer.i +1 -1
- data/test/TC_FXGLViewer.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe887655cbb39a460ab5172af8793bc3822922a7
|
4
|
+
data.tar.gz: d98ca4bf28aeea16516be9964cd8d823baadab6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56e2840b91f0f7b0a48b34bb99747c43aee5780a5072fa0d9b48521835aadc4100960c1eecc5c25f975b345dd33de5a83a5d8290717fb618ae1edf790e7bd768
|
7
|
+
data.tar.gz: 1e38b82a5a82ded002a49a35c34b5812c38407660a9214134fa57ed641bb9e33c65eb58f549a9198eafa377f936cde7181bc1ba2c8a0d441cd008a3db427a6e9
|
data/Gemfile
CHANGED
@@ -3,9 +3,13 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's runtime dependencies in fxruby.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
+
# For some reason this is required in addition to the gemspec
|
7
|
+
# when 'bundle config force_ruby_platform true' is active:
|
8
|
+
gem 'mini_portile2'
|
9
|
+
|
6
10
|
group :development do
|
7
11
|
gem 'rake-compiler', '~> 1.0'
|
8
|
-
gem 'rake-compiler-dock', '~> 0.6.
|
12
|
+
gem 'rake-compiler-dock', '~> 0.6.2'
|
9
13
|
gem 'yard', '~> 0.8'
|
10
14
|
gem "bundler", "~> 1.12"
|
11
15
|
gem "rake", "~> 12.0"
|
data/History.md
CHANGED
data/appveyor.yml
CHANGED
@@ -2,6 +2,11 @@ init:
|
|
2
2
|
- SET PATH=c:/Ruby%ruby_version%/bin;c:/msys64/%MSYSTEM%/bin;%PATH%
|
3
3
|
- SET RAKEOPT=-rdevkit
|
4
4
|
install:
|
5
|
+
- ps: |
|
6
|
+
if ($env:RUBYDOWNLOAD -ne $null) {
|
7
|
+
$(new-object net.webclient).DownloadFile("https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-$env:RUBYDOWNLOAD.exe", "$pwd/ruby-setup.exe")
|
8
|
+
cmd /c ruby-setup.exe /verysilent /dir=C:/Ruby$env:ruby_version
|
9
|
+
}
|
5
10
|
- ruby --version
|
6
11
|
- gem --version
|
7
12
|
- ridk version
|
@@ -9,6 +14,8 @@ install:
|
|
9
14
|
- c:/msys64/usr/bin/bash -lc "pacman -Su --noconfirm"
|
10
15
|
- c:/msys64/usr/bin/bash -lc "pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-fox ${MINGW_PACKAGE_PREFIX}-swig"
|
11
16
|
- swig -version
|
17
|
+
- gem install bundler --conservative
|
18
|
+
- bundle config force_ruby_platform true
|
12
19
|
- bundle install
|
13
20
|
build_script:
|
14
21
|
- bundle exec rake compile
|
@@ -16,9 +23,20 @@ test_script:
|
|
16
23
|
- bundle exec rake test
|
17
24
|
environment:
|
18
25
|
matrix:
|
19
|
-
- ruby_version: "
|
26
|
+
- ruby_version: "head"
|
27
|
+
RUBYDOWNLOAD: x86
|
20
28
|
MINGW_PACKAGE_PREFIX: "mingw-w64-i686"
|
21
29
|
MSYSTEM: "MINGW32"
|
22
30
|
- ruby_version: "24-x64"
|
23
31
|
MINGW_PACKAGE_PREFIX: "mingw-w64-x86_64"
|
24
32
|
MSYSTEM: "MINGW64"
|
33
|
+
- ruby_version: "24"
|
34
|
+
MINGW_PACKAGE_PREFIX: "mingw-w64-i686"
|
35
|
+
MSYSTEM: "MINGW32"
|
36
|
+
- ruby_version: "head"
|
37
|
+
RUBYDOWNLOAD: x64
|
38
|
+
MINGW_PACKAGE_PREFIX: "mingw-w64-x86_64"
|
39
|
+
MSYSTEM: "MINGW64"
|
40
|
+
matrix:
|
41
|
+
allow_failures:
|
42
|
+
- ruby_version: "head"
|
data/lib/fox16/aliases.rb
CHANGED
data/lib/fox16/version.rb
CHANGED
data/rdoc-sources/FXGLVisual.rb
CHANGED
@@ -77,6 +77,14 @@ module Fox
|
|
77
77
|
# even support no OpenGL at all! This function returns the lesser
|
78
78
|
# of the client support level and the display server support level.
|
79
79
|
#
|
80
|
+
# Return an array with the following 3 elements: [supported, major, minor]
|
81
|
+
#
|
82
|
+
def FXGLVisual.supported(app); end
|
83
|
+
|
84
|
+
# Test if OpenGL is possible.
|
85
|
+
#
|
86
|
+
# Same as {FXGLVisual.supported?}, but returns the first element (true/false) only.
|
87
|
+
#
|
80
88
|
def FXGLVisual.supported?(app); end
|
81
89
|
|
82
90
|
# Return +true+ if double-buffered
|
@@ -41,7 +41,7 @@ public:
|
|
41
41
|
* of the client support level and the display server support level.
|
42
42
|
*/
|
43
43
|
%extend {
|
44
|
-
static
|
44
|
+
static VALUE supported(FXApp* application){
|
45
45
|
int major,minor;
|
46
46
|
FXbool answer=FXGLVisual::supported(application,major,minor);
|
47
47
|
return rb_ary_new3(3,answer?Qtrue:Qfalse,INT2NUM(major),INT2NUM(minor));
|
data/test/TC_FXGLViewer.rb
CHANGED
@@ -12,7 +12,14 @@ class TC_FXGLViewer < Fox::TestCase
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def test_supported
|
15
|
-
|
15
|
+
arr = FXGLVisual.supported(app)
|
16
|
+
assert_equal 3, arr.length, "return array should have elements [support, major, minor]"
|
17
|
+
assert_true arr[0], "OpenGL should be supported"
|
18
|
+
assert_operator 1, :<=, arr[1], "OpenGL should be version 1.0 or greater"
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_supported?
|
22
|
+
assert_true FXGLVisual.supported?(app), "OpenGL should be supported"
|
16
23
|
end
|
17
24
|
|
18
25
|
def test_nil_app_raises_argument_error
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fxruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lyle Johnson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-12-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mini_portile2
|
@@ -999,7 +999,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
999
999
|
version: '0'
|
1000
1000
|
requirements: []
|
1001
1001
|
rubyforge_project:
|
1002
|
-
rubygems_version: 2.6.
|
1002
|
+
rubygems_version: 2.6.14
|
1003
1003
|
signing_key:
|
1004
1004
|
specification_version: 4
|
1005
1005
|
summary: FXRuby is the Ruby binding to the FOX GUI toolkit.
|