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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4a6cf01f66381d2f7759c7a6e918bc159410443
4
- data.tar.gz: e5f562a68520db23e30c0d1a12e21b551757a2dc
3
+ metadata.gz: fe887655cbb39a460ab5172af8793bc3822922a7
4
+ data.tar.gz: d98ca4bf28aeea16516be9964cd8d823baadab6a
5
5
  SHA512:
6
- metadata.gz: 8571281e68f9d5059acc4e5cd74dc4943b2385cf532129c9130b7728b8ceecbfd3cc998d4320413c68d1365b1499d044c99c3c9e0257b27202286c0cfbeaafae
7
- data.tar.gz: 5eca6ad6d3ffb9920bfac096351de8bbafe0c06e3bb203a06afc699e3e6fee1077529c3abbb5d247c4f2b8061ad29211b661dc099abcd652f6ca34b30293cb2e
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.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: 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-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
@@ -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.12
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.