libuv 3.2.3 → 3.2.4

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: eef36f2f1276737fa057456ff07f12aa2d3f7547
4
- data.tar.gz: 7046002586451d74ca45ad94b5038b88634c4b41
3
+ metadata.gz: 3af8e0602a62a7d7dc6bc79f3438a6e6dfacbaef
4
+ data.tar.gz: a1a72f820333a74e5ec4b829a066da634be11907
5
5
  SHA512:
6
- metadata.gz: f9e9a1fe6ff5b4b8df1d38b0d3b8ce1980118419931dfa29e9986a406a57a2a4d3a3b5e46cbed8787d8d6260a579628495c8c7c19f6cc1d072bb42a5c1a7de56
7
- data.tar.gz: adcdcb6c1f9936c0507a5a57efc964fe4bd22bb79fadefaeda9193520835b70a12e27edf42a93cd247838a24023a26e9b40cf729635e0086225b8364708713ef
6
+ metadata.gz: d27eee3d5005bc5c4872ad6af8cef579a56f1f34a336b8687e735ef767df79a2309db32133d2af7db0d20194079501490b224a0568a28c37cb1435ce97a82c6e
7
+ data.tar.gz: e39400ee9824567f133e9cdedcfb380061838230050c6846588de5b7d8ca7e7e2e1cf6c2a6d6278a770f83d82974f06fd8c897e2c20882bf1ab87cbb203d8b19
data/.travis.yml CHANGED
@@ -1,10 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - ruby-2.3.4
4
- - ruby-2.4.1
3
+ - ruby-2.3.5
4
+ - ruby-2.4.2
5
5
  - ruby-head
6
- - rubinius-3.76
7
- - jruby-9.1.10.0
6
+ - rubinius-3.86
7
+ - rubinius
8
+ - jruby-9.1.13.0
8
9
  - jruby-head
9
10
  branches:
10
11
  only:
@@ -19,5 +20,6 @@ matrix:
19
20
  allow_failures:
20
21
  - rvm: jruby-head
21
22
  - rvm: ruby-head
23
+ - rvm: rubinius
22
24
  sudo: required
23
25
  dist: trusty
data/README.md CHANGED
@@ -110,17 +110,23 @@ or
110
110
 
111
111
  ### Prerequisites
112
112
 
113
- * The installation also requires [python 2.x](http://www.python.org/getit/) to be installed and available on the PATH
113
+ * The installation on BSD/Linux requires [python 2.x](http://www.python.org/getit/) to be installed and available on the PATH
114
114
  * setting the environmental variable `USE_GLOBAL_LIBUV` will prevent compiling the packaged version.
115
115
  * if you have a compatible `libuv.(so | dylib | dll)` on the PATH already
116
116
 
117
- Windows users will additionally require:
117
+ On Windows the GEM ships with a pre-compiled binary. If you would like to build yourself:
118
118
 
119
- - A copy of Visual Studio 2010 or later. [Visual Studio Express](http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products) works fine.
120
- - A copy of [OpenSSL](http://slproweb.com/products/Win32OpenSSL.html) matching the installed ruby (x86 / x64)
119
+ - A copy of Visual Studio 2017. [Visual Studio Build Tools](https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017) works fine.
120
+ - Windows 10 SDK
121
+ - C++/CLI Support
122
+ - C++ tools for CMake
123
+ - A copy of [OpenSSL](http://slproweb.com/products/Win32OpenSSL.html) x64 - ~30MB installs
124
+ - ruby 2.4+ x64 with MSYS2 is preferred
125
+ - Add the env var `set GYP_MSVS_VERSION=2017`
121
126
  - If using jRuby then [GCC](http://win-builds.org/stable/) is also required
122
127
  - Setup the paths as described on the gcc page
123
128
  - Add required environmental variable `set LIBRARY_PATH=X:\win-builds-64\lib;X:\win-builds-64\x86_64-w64-mingw32\lib`
129
+ - `rake compile`
124
130
 
125
131
 
126
132
 
@@ -13,8 +13,10 @@ module Libuv
13
13
  ffi_lib('Ws2_32.dll').first # this is for ntohs
14
14
  attach_function :ntohs, [:ushort], :ushort, :blocking => true
15
15
  end
16
- def_delegators :WS2, :ntohs
17
- module_function :ntohs
16
+
17
+ def self.ntohs(ushort)
18
+ ::Libuv::Ext::WS2.ntohs(ushort)
19
+ end
18
20
 
19
21
  # win32 has a different uv_buf_t layout to everything else.
20
22
  class UvBuf < FFI::Struct
@@ -6,7 +6,7 @@ file "ext/libuv/Release/libuv.#{FFI::Platform::LIBSUFFIX}" do
6
6
 
7
7
  Dir.chdir("ext/libuv") do |path|
8
8
  system 'git', 'clone', 'https://chromium.googlesource.com/external/gyp', 'build/gyp'
9
- system 'vcbuild.bat', 'shared', 'release', target_arch
9
+ system 'vcbuild.bat', 'vs2017', 'shared', 'release', target_arch
10
10
  end
11
11
  end
12
12
 
data/lib/libuv/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Libuv
4
- VERSION = '3.2.3'
4
+ VERSION = '3.2.4'
5
5
  end
data/libuv.gemspec CHANGED
@@ -28,6 +28,10 @@ Gem::Specification.new do |gem|
28
28
  gem.files = `git ls-files`.split("\n")
29
29
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
30
30
 
31
+ if File.exist? 'ext/libuv.dll'
32
+ gem.files << 'ext/libuv.dll'
33
+ end
34
+
31
35
  # Add the submodule to the gem
32
36
  relative_path = File.expand_path("../", __FILE__) + '/'
33
37
  `git submodule --quiet foreach pwd`.split($\).each do |submodule_path|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libuv
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-17 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -112,6 +112,7 @@ files:
112
112
  - Rakefile
113
113
  - ext/README.md
114
114
  - ext/Rakefile
115
+ - ext/libuv.dll
115
116
  - ext/libuv/.github/ISSUE_TEMPLATE.md
116
117
  - ext/libuv/.gitignore
117
118
  - ext/libuv/.mailmap
@@ -445,6 +446,7 @@ files:
445
446
  - ext/libuv/test/test-pipe-pending-instances.c
446
447
  - ext/libuv/test/test-pipe-sendmsg.c
447
448
  - ext/libuv/test/test-pipe-server-close.c
449
+ - ext/libuv/test/test-pipe-set-fchmod.c
448
450
  - ext/libuv/test/test-pipe-set-non-blocking.c
449
451
  - ext/libuv/test/test-platform-output.c
450
452
  - ext/libuv/test/test-poll-close-doesnt-corrupt-stack.c