fxruby 1.6.38-x64-mingw32 → 1.6.39-x64-mingw32

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: 1c5095530ffbb6836a38690388ebf34537bccf9b
4
- data.tar.gz: a9ef571fd6221067ad53d0a9a67ff5d7baab3f40
3
+ metadata.gz: 846d77512aec56a08e038b9fc10be7b0d772b6fe
4
+ data.tar.gz: 7efa2339a2cd06d9fb9718f2ba2674d53e3f162a
5
5
  SHA512:
6
- metadata.gz: fef38eeee20a769bbf7584ac05459d29e4bb83e111a3832b0c7a3f78e77aee8757d167bef1264f6d7d7a72ebe6c48baa75c9900eb5e26eb0a27645e5fa4f1894
7
- data.tar.gz: 8efc60df043c60bf3ab20240defaeb11622a67aa914d781fa9543e2bead4cc23bd418c2231fb5d4f6bea3f77bbab2c572de0c6bca657034737dd8b5e34f366be
6
+ metadata.gz: c0325cca9cf4bb74b02ea9f1446ebecd1ba10f6134965f71fef956cb43e0236055ffe8753ce24398ef6a47aeaa64824808c83eacaaf67ba4b00ecc2e0a315e3d
7
+ data.tar.gz: cedefb493abbc68928c95f086fefeba472e2b5203984298a8aa50f40c621f3a1de2049806e7e6474cd69e204e25d4ed621e3ab371a10da8259c099cf2991ad15
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.0'
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
@@ -1,3 +1,8 @@
1
+ === 1.6.39 / 2017-12-26
2
+
3
+ * Fix FXGLVisual.supported and .supported?
4
+ * Add support for RubyInstaller-2.5
5
+
1
6
  === 1.6.38 / 2017-07-27
2
7
 
3
8
  * Update dependent libraries for Windows binary gem.
@@ -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: "24"
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"
@@ -1976,7 +1976,7 @@ module Fox
1976
1976
  end
1977
1977
  class FXGLVisual
1978
1978
  def FXGLVisual.supported?(*args) # :nodoc:
1979
- FXGLVisual.supported(*args)
1979
+ FXGLVisual.supported(*args)[0]
1980
1980
  end
1981
1981
  def redSize(*args) # :nodoc:
1982
1982
  getRedSize(*args)
@@ -1,5 +1,5 @@
1
1
  module Fox
2
2
  def Fox.fxrubyversion
3
- "1.6.38"
3
+ "1.6.39"
4
4
  end
5
5
  end
@@ -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 FXbool supported(FXApp* application){
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));
@@ -33,7 +33,7 @@ public:
33
33
  FXuint getSize() const;
34
34
 
35
35
  %extend {
36
- // Returns the data as an array of Bignums
36
+ // Returns the data as an array of Integers
37
37
  VALUE getData() const {
38
38
  FXColor* data = self->getData();
39
39
  if (data) {
@@ -12,7 +12,14 @@ class TC_FXGLViewer < Fox::TestCase
12
12
  end
13
13
 
14
14
  def test_supported
15
- assert FXGLVisual.supported?(app)
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.38
4
+ version: 1.6.39
5
5
  platform: x64-mingw32
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-07-27 00:00:00.000000000 Z
12
+ date: 2017-12-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mini_portile2
@@ -431,6 +431,7 @@ files:
431
431
  - lib/2.2/fox16_c.so
432
432
  - lib/2.3/fox16_c.so
433
433
  - lib/2.4/fox16_c.so
434
+ - lib/2.5/fox16_c.so
434
435
  - lib/fox16.rb
435
436
  - lib/fox16/accel_table.rb
436
437
  - lib/fox16/aliases.rb
@@ -1006,7 +1007,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1006
1007
  version: '2.0'
1007
1008
  - - "<"
1008
1009
  - !ruby/object:Gem::Version
1009
- version: '2.5'
1010
+ version: '2.6'
1010
1011
  required_rubygems_version: !ruby/object:Gem::Requirement
1011
1012
  requirements:
1012
1013
  - - ">="
@@ -1014,7 +1015,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1014
1015
  version: '0'
1015
1016
  requirements: []
1016
1017
  rubyforge_project:
1017
- rubygems_version: 2.6.12
1018
+ rubygems_version: 2.6.14
1018
1019
  signing_key:
1019
1020
  specification_version: 4
1020
1021
  summary: FXRuby is the Ruby binding to the FOX GUI toolkit.