fxruby 1.6.37-x86-mingw32 → 1.6.38-x86-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 +4 -4
 - data/History.md +6 -0
 - data/README.rdoc +4 -1
 - data/Rakefile +8 -2
 - data/appveyor.yml +24 -0
 - data/ext/fox16_c/FXRbObjRegistry.cpp +1 -1
 - data/ext/fox16_c/extconf.rb +8 -5
 - data/ext/fox16_c/include/FXRbObjRegistry.h +0 -3
 - data/lib/fox16/version.rb +1 -1
 - data/test/TC_FXApp.rb +2 -0
 - data/test/TC_FXFileStream.rb +2 -0
 - metadata +4 -4
 - data/patches/libfox/1.6.53/0001-mingw-vsnprintf.diff +0 -13
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: bfda29d23540f77f0a99695ddfc5e32843f5c043
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: f8d5059604a3666c1a68f11ae7c36914d6383b44
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: fd5966edafed96c802567d79675cc82d34e762c6c05fe37eac186235dc74c6e880d6f4a742672d8cc1324ca1fc8807f470137e517b81a50e8c300b000fc85bf6
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d576d4e4a0b48458a948c0284db028aef556742cf724574f333cb0c678e0db49490d81e94dc4216822697d1414aba63710cc02722b85632775f915dd67f6d2d0
         
     | 
    
        data/History.md
    CHANGED
    
    | 
         @@ -1,3 +1,9 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            === 1.6.38 / 2017-07-27
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            * Update dependent libraries for Windows binary gem.
         
     | 
| 
      
 4 
     | 
    
         
            +
            * Replace libjpeg-9b by libjpeg-turbo-1.5.2 on Windows binary gem.
         
     | 
| 
      
 5 
     | 
    
         
            +
            * Fix build with clang on FreeBSD (and possibly other OS). Fixes #41
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
       1 
7 
     | 
    
         
             
            === 1.6.37 / 2017-06-24
         
     | 
| 
       2 
8 
     | 
    
         | 
| 
       3 
9 
     | 
    
         
             
            * Add a 3rd type of FXRbObjects which is used for callbacks. Fixes #39
         
     | 
    
        data/README.rdoc
    CHANGED
    
    | 
         @@ -3,7 +3,10 @@ 
     | 
|
| 
       3 
3 
     | 
    
         
             
            * http://github.com/larskanis/fxruby
         
     | 
| 
       4 
4 
     | 
    
         
             
            * Full API-description: http://rubydoc.info/gems/fxruby/frames
         
     | 
| 
       5 
5 
     | 
    
         
             
            * Latest fxruby {<img src="https://badge.fury.io/rb/fxruby.svg" alt="Gem Version" />}[http://badge.fury.io/rb/fxruby]
         
     | 
| 
       6 
     | 
    
         
            -
            * Status  
     | 
| 
      
 6 
     | 
    
         
            +
            * Status on Linux: {<img src="https://travis-ci.org/larskanis/fxruby.svg?branch=1.6" alt="Build Status on Linux" />}[https://travis-ci.org/larskanis/fxruby]
         
     | 
| 
      
 7 
     | 
    
         
            +
              on Windows: {<img src="https://ci.appveyor.com/api/projects/status/too7sj4gq643ts8w/branch/1.6?svg=true" alt="Build Status on Windows" />}[https://ci.appveyor.com/project/larskanis/fxruby/branch/1.6]
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
       7 
10 
     | 
    
         | 
| 
       8 
11 
     | 
    
         
             
            == DESCRIPTION:
         
     | 
| 
       9 
12 
     | 
    
         | 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -1,5 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require 'rubygems'
         
     | 
| 
       2 
2 
     | 
    
         
             
            require 'erb'
         
     | 
| 
      
 3 
     | 
    
         
            +
            require 'date'
         
     | 
| 
       3 
4 
     | 
    
         
             
            require 'rake/extensiontask'
         
     | 
| 
       4 
5 
     | 
    
         
             
            require 'bundler'
         
     | 
| 
       5 
6 
     | 
    
         
             
            require 'bundler/gem_helper'
         
     | 
| 
         @@ -137,7 +138,7 @@ Rake::ExtensionTask.new("fox16_c", gem_spec) do |ext| 
     | 
|
| 
       137 
138 
     | 
    
         
             
                  dlls += [
         
     | 
| 
       138 
139 
     | 
    
         
             
                      "libfxscintilla-20.dll",
         
     | 
| 
       139 
140 
     | 
    
         
             
                      "libFOX-1.6-0.dll",
         
     | 
| 
       140 
     | 
    
         
            -
                      "libjpeg- 
     | 
| 
      
 141 
     | 
    
         
            +
                      "libjpeg-62.dll",
         
     | 
| 
       141 
142 
     | 
    
         
             
                      "libpng16-16.dll",
         
     | 
| 
       142 
143 
     | 
    
         
             
                      "libtiff-5.dll",
         
     | 
| 
       143 
144 
     | 
    
         
             
                      "zlib1.dll",
         
     | 
| 
         @@ -178,7 +179,12 @@ task 'gem:windows' => 'gem' do 
     | 
|
| 
       178 
179 
     | 
    
         | 
| 
       179 
180 
     | 
    
         
             
              sh "bundle package"
         
     | 
| 
       180 
181 
     | 
    
         
             
              debug = "FXRUBY_MINGW_DEBUG=#{ENV['FXRUBY_MINGW_DEBUG'].inspect}" if ENV['FXRUBY_MINGW_DEBUG']
         
     | 
| 
       181 
     | 
    
         
            -
              RakeCompilerDock.sh  
     | 
| 
      
 182 
     | 
    
         
            +
              RakeCompilerDock.sh <<-EOT
         
     | 
| 
      
 183 
     | 
    
         
            +
                sudo apt update &&
         
     | 
| 
      
 184 
     | 
    
         
            +
                sudo apt install yasm &&
         
     | 
| 
      
 185 
     | 
    
         
            +
                bundle --local --without=test &&
         
     | 
| 
      
 186 
     | 
    
         
            +
                rake cross native gem MAKE=\"nice make V=1 -j `nproc`\" #{debug}
         
     | 
| 
      
 187 
     | 
    
         
            +
              EOT
         
     | 
| 
       182 
188 
     | 
    
         
             
            end
         
     | 
| 
       183 
189 
     | 
    
         | 
| 
       184 
190 
     | 
    
         
             
            # Set environment variable SWIG_LIB to
         
     | 
    
        data/appveyor.yml
    ADDED
    
    | 
         @@ -0,0 +1,24 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            init:
         
     | 
| 
      
 2 
     | 
    
         
            +
              - SET PATH=c:/Ruby%ruby_version%/bin;c:/msys64/%MSYSTEM%/bin;%PATH%
         
     | 
| 
      
 3 
     | 
    
         
            +
              - SET RAKEOPT=-rdevkit
         
     | 
| 
      
 4 
     | 
    
         
            +
            install:
         
     | 
| 
      
 5 
     | 
    
         
            +
              - ruby --version
         
     | 
| 
      
 6 
     | 
    
         
            +
              - gem --version
         
     | 
| 
      
 7 
     | 
    
         
            +
              - ridk version
         
     | 
| 
      
 8 
     | 
    
         
            +
              - c:/msys64/usr/bin/bash -lc "pacman -Syu --noconfirm"
         
     | 
| 
      
 9 
     | 
    
         
            +
              - c:/msys64/usr/bin/bash -lc "pacman -Su --noconfirm"
         
     | 
| 
      
 10 
     | 
    
         
            +
              - c:/msys64/usr/bin/bash -lc "pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-fox ${MINGW_PACKAGE_PREFIX}-swig"
         
     | 
| 
      
 11 
     | 
    
         
            +
              - swig -version
         
     | 
| 
      
 12 
     | 
    
         
            +
              - bundle install
         
     | 
| 
      
 13 
     | 
    
         
            +
            build_script:
         
     | 
| 
      
 14 
     | 
    
         
            +
              - bundle exec rake compile
         
     | 
| 
      
 15 
     | 
    
         
            +
            test_script:
         
     | 
| 
      
 16 
     | 
    
         
            +
              - bundle exec rake test
         
     | 
| 
      
 17 
     | 
    
         
            +
            environment:
         
     | 
| 
      
 18 
     | 
    
         
            +
              matrix:
         
     | 
| 
      
 19 
     | 
    
         
            +
                - ruby_version: "24"
         
     | 
| 
      
 20 
     | 
    
         
            +
                  MINGW_PACKAGE_PREFIX: "mingw-w64-i686"
         
     | 
| 
      
 21 
     | 
    
         
            +
                  MSYSTEM: "MINGW32"
         
     | 
| 
      
 22 
     | 
    
         
            +
                - ruby_version: "24-x64"
         
     | 
| 
      
 23 
     | 
    
         
            +
                  MINGW_PACKAGE_PREFIX: "mingw-w64-x86_64"
         
     | 
| 
      
 24 
     | 
    
         
            +
                  MSYSTEM: "MINGW64"
         
     | 
| 
         @@ -20,8 +20,8 @@ 
     | 
|
| 
       20 
20 
     | 
    
         
             
             * at "lars@greiz-reinsdorf.de".
         
     | 
| 
       21 
21 
     | 
    
         
             
             ***********************************************************************/
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
       23 
     | 
    
         
            -
            #include "FXRbObjRegistry.h"
         
     | 
| 
       24 
23 
     | 
    
         
             
            #include "FXRbCommon.h"
         
     | 
| 
      
 24 
     | 
    
         
            +
            #include "FXRbObjRegistry.h"
         
     | 
| 
       25 
25 
     | 
    
         
             
            #include "swigruby.h"
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
27 
     | 
    
         
             
            FXRbObjRegistry::FXRbObjRegistry(){
         
     | 
    
        data/ext/fox16_c/extconf.rb
    CHANGED
    
    | 
         @@ -24,16 +24,19 @@ end 
     | 
|
| 
       24 
24 
     | 
    
         
             
            LIBZ_VERSION = ENV['LIBZ_VERSION'] || '1.2.7.3'
         
     | 
| 
       25 
25 
     | 
    
         
             
            LIBZ_SOURCE_URI = "http://zlib.net/fossils/zlib-#{LIBZ_VERSION}.tar.gz"
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
            LIBPNG_VERSION = ENV['LIBPNG_VERSION'] || '1.6. 
     | 
| 
      
 27 
     | 
    
         
            +
            LIBPNG_VERSION = ENV['LIBPNG_VERSION'] || '1.6.29'
         
     | 
| 
       28 
28 
     | 
    
         
             
            LIBPNG_SOURCE_URI = "http://prdownloads.sourceforge.net/libpng/libpng-#{LIBPNG_VERSION}.tar.gz"
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
            LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '9b'
         
     | 
| 
       31 
     | 
    
         
            -
            LIBJPEG_SOURCE_URI = "http://www.ijg.org/files/jpegsrc.v#{LIBJPEG_VERSION}.tar.gz"
         
     | 
| 
      
 30 
     | 
    
         
            +
            # LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '9b'
         
     | 
| 
      
 31 
     | 
    
         
            +
            # LIBJPEG_SOURCE_URI = "http://www.ijg.org/files/jpegsrc.v#{LIBJPEG_VERSION}.tar.gz"
         
     | 
| 
       32 
32 
     | 
    
         | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
      
 33 
     | 
    
         
            +
            LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '1.5.2'
         
     | 
| 
      
 34 
     | 
    
         
            +
            LIBJPEG_SOURCE_URI = "https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-#{LIBJPEG_VERSION}.tar.gz"
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
            LIBTIFF_VERSION = ENV['LIBTIFF_VERSION'] || '4.0.8'
         
     | 
| 
       34 
37 
     | 
    
         
             
            LIBTIFF_SOURCE_URI = "http://download.osgeo.org/libtiff/tiff-#{LIBTIFF_VERSION}.tar.gz"
         
     | 
| 
       35 
38 
     | 
    
         | 
| 
       36 
     | 
    
         
            -
            LIBFOX_VERSION            = ENV['LIBFOX_VERSION'] || '1.6. 
     | 
| 
      
 39 
     | 
    
         
            +
            LIBFOX_VERSION            = ENV['LIBFOX_VERSION'] || '1.6.55'
         
     | 
| 
       37 
40 
     | 
    
         
             
            LIBFOX_SOURCE_URI         = "http://ftp.fox-toolkit.org/pub/fox-#{LIBFOX_VERSION}.tar.gz"
         
     | 
| 
       38 
41 
     | 
    
         | 
| 
       39 
42 
     | 
    
         
             
            LIBFXSCINTILLA_VERSION            = ENV['LIBFXSCINTILLA_VERSION'] || '2.28.0'
         
     | 
    
        data/lib/fox16/version.rb
    CHANGED
    
    
    
        data/test/TC_FXApp.rb
    CHANGED
    
    | 
         @@ -46,6 +46,7 @@ class TC_FXApp2 < Fox::TestCase 
     | 
|
| 
       46 
46 
     | 
    
         
             
              end
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
48 
     | 
    
         
             
              def test_addInput_on_pipe
         
     | 
| 
      
 49 
     | 
    
         
            +
                pend "addInput on IO.pipe object isn't supported on Windows" if RUBY_PLATFORM=~/mingw|mswin/i
         
     | 
| 
       49 
50 
     | 
    
         
             
                check_events(*IO.pipe)
         
     | 
| 
       50 
51 
     | 
    
         
             
              end
         
     | 
| 
       51 
52 
     | 
    
         | 
| 
         @@ -75,6 +76,7 @@ class TC_FXApp2 < Fox::TestCase 
     | 
|
| 
       75 
76 
     | 
    
         
             
              end
         
     | 
| 
       76 
77 
     | 
    
         | 
| 
       77 
78 
     | 
    
         
             
              def test_addInput_on_popen
         
     | 
| 
      
 79 
     | 
    
         
            +
                pend "addInput on IO.popen object isn't supported on Windows" if RUBY_PLATFORM=~/mingw|mswin/i
         
     | 
| 
       78 
80 
     | 
    
         
             
                pipe_rdwr = IO.popen("cat", "r+")
         
     | 
| 
       79 
81 
     | 
    
         
             
                check_events pipe_rdwr, pipe_rdwr
         
     | 
| 
       80 
82 
     | 
    
         
             
              end
         
     | 
    
        data/test/TC_FXFileStream.rb
    CHANGED
    
    | 
         @@ -62,6 +62,8 @@ class TC_FXFileStream < Test::Unit::TestCase 
     | 
|
| 
       62 
62 
     | 
    
         
             
                  FXFileStream.open("non_existing_file", FXStreamLoad) { |s| }
         
     | 
| 
       63 
63 
     | 
    
         
             
                }
         
     | 
| 
       64 
64 
     | 
    
         | 
| 
      
 65 
     | 
    
         
            +
                pend "chmod isn't supported on Windows" if RUBY_PLATFORM=~/mingw|mswin/i
         
     | 
| 
      
 66 
     | 
    
         
            +
             
     | 
| 
       65 
67 
     | 
    
         
             
                # Write-only file (i.e. no read permissions)
         
     | 
| 
       66 
68 
     | 
    
         
             
                tf = Tempfile.new("write_only_file")
         
     | 
| 
       67 
69 
     | 
    
         
             
                tf.puts("junk")
         
     | 
    
        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.38
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: x86-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- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2017-07-27 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: mini_portile2
         
     | 
| 
         @@ -42,6 +42,7 @@ files: 
     | 
|
| 
       42 
42 
     | 
    
         
             
            - README.rdoc
         
     | 
| 
       43 
43 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       44 
44 
     | 
    
         
             
            - TODO
         
     | 
| 
      
 45 
     | 
    
         
            +
            - appveyor.yml
         
     | 
| 
       45 
46 
     | 
    
         
             
            - doap.rdf
         
     | 
| 
       46 
47 
     | 
    
         
             
            - doap.rdf.erb
         
     | 
| 
       47 
48 
     | 
    
         
             
            - examples/RAA.rb
         
     | 
| 
         @@ -463,11 +464,10 @@ files: 
     | 
|
| 
       463 
464 
     | 
    
         
             
            - lib/fox16/tkcompat.rb
         
     | 
| 
       464 
465 
     | 
    
         
             
            - lib/fox16/undolist.rb
         
     | 
| 
       465 
466 
     | 
    
         
             
            - lib/fox16/version.rb
         
     | 
| 
       466 
     | 
    
         
            -
            - patches/libfox/1.6.53/0001-mingw-vsnprintf.diff
         
     | 
| 
       467 
467 
     | 
    
         
             
            - ports/i686-w64-mingw32/bin/libFOX-1.6-0.dll
         
     | 
| 
       468 
468 
     | 
    
         
             
            - ports/i686-w64-mingw32/bin/libfxscintilla-20.dll
         
     | 
| 
       469 
469 
     | 
    
         
             
            - ports/i686-w64-mingw32/bin/libgcc_s_sjlj-1.dll
         
     | 
| 
       470 
     | 
    
         
            -
            - ports/i686-w64-mingw32/bin/libjpeg- 
     | 
| 
      
 470 
     | 
    
         
            +
            - ports/i686-w64-mingw32/bin/libjpeg-62.dll
         
     | 
| 
       471 
471 
     | 
    
         
             
            - ports/i686-w64-mingw32/bin/libpng16-16.dll
         
     | 
| 
       472 
472 
     | 
    
         
             
            - ports/i686-w64-mingw32/bin/libstdc++-6.dll
         
     | 
| 
       473 
473 
     | 
    
         
             
            - ports/i686-w64-mingw32/bin/libtiff-5.dll
         
     | 
| 
         @@ -1,13 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            diff --git a/src/FXString.cpp b/src/FXString.cpp
         
     | 
| 
       2 
     | 
    
         
            -
            index fe1120a..b1112dc 100644
         
     | 
| 
       3 
     | 
    
         
            -
            --- a/src/FXString.cpp
         
     | 
| 
       4 
     | 
    
         
            -
            +++ b/src/FXString.cpp
         
     | 
| 
       5 
     | 
    
         
            -
            @@ -2365,7 +2365,7 @@ FXString& FXString::vformat(const FXchar* fmt,va_list args){
         
     | 
| 
       6 
     | 
    
         
            -
             #else
         
     | 
| 
       7 
     | 
    
         
            -
                 va_list ag;
         
     | 
| 
       8 
     | 
    
         
            -
             x:  va_copy(ag,args);
         
     | 
| 
       9 
     | 
    
         
            -
            -    result=vsnprintf(str,length()+1,fmt,ag);
         
     | 
| 
       10 
     | 
    
         
            -
            +    result=vsnprintf(str,empty() ? 0 : length()+1,fmt,ag);
         
     | 
| 
       11 
     | 
    
         
            -
                 va_end(ag);
         
     | 
| 
       12 
     | 
    
         
            -
                 if(result<0){ length(FXMAX(64,length()*2)); goto x; }
         
     | 
| 
       13 
     | 
    
         
            -
                 if(length()<result){ length(result); goto x; }
         
     |