win32-api 1.6.1.2-universal-mingw32 → 1.7.0.pre1-universal-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: b6f98adc93ce159542eff34d770f82cafd104b7a
4
- data.tar.gz: c3356912152cc4a1a855e5f7fed6990c6cab8b73
3
+ metadata.gz: 22d502d98ceed27666d6597cd7947abd86f06230
4
+ data.tar.gz: ec5bce9ee763364ee2b8c74d6b8b4011567b7f9c
5
5
  SHA512:
6
- metadata.gz: dedad26960b16f70ed1d6274ab25c025fb69233d0831615503304d17830c3c93f70230095b9914c9529e8bcdf1188dd97d78af4a7123958cd9cebbf614edbf2e
7
- data.tar.gz: 5ed7cfdc147c90bc154fc11ccc4637dbf92c9826eaeb2e0efd07132a379b47282b061da3f637caebc3c03aedaaa42e38a98fa06b7fa32e971c2329d85e144f2d
6
+ metadata.gz: eb80bc4a3d0da9078534ea4779650d060a38430dd39da3ec70fb68bdca1524c32ab0f4f3c29ebe0824d4891c61c332a12bbc8a9658e55bb024e7b2a0c36f0397
7
+ data.tar.gz: 90d459a7ddbe434f959a6eae99e7b4c39fb897c902c6e022b946ca9ea0ffb0ade58b620495893ca4e53a8a5c4032566fb8b2b92197a024d0d91da12115f47c98
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.7.0.pre1 - 16-July-2017
2
+ * Add Ruby 2.5 snapshot support.
3
+ * Now includes binaries for Ruby 2.5 for both 32 and 64 bit versions.
4
+
1
5
  == 1.6.1.2 - 2-Feb-2017
2
6
  * Fix wrong gem packaging.
3
7
 
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- win32-api (1.6.1.2)
4
+ win32-api (1.7.0.pre1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- power_assert (0.4.1)
9
+ power_assert (1.0.2)
10
10
  rake (12.0.0)
11
- test-unit (3.2.3)
11
+ test-unit (3.2.5)
12
12
  power_assert
13
13
 
14
14
  PLATFORMS
data/Rakefile CHANGED
@@ -72,7 +72,9 @@ namespace 'gem' do
72
72
  :ruby23_32 => {:path => "c:/ruby23/bin/ruby", :msys => :msys1},
73
73
  :ruby23_64 => {:path => "c:/ruby23-x64/bin/ruby", :msys => :msys1},
74
74
  :ruby24_32 => {:path => "c:/ruby24/bin/ruby", :msys => :msys2},
75
- :ruby24_64 => {:path => "c:/ruby24-x64/bin/ruby", :msys => :msys2}
75
+ :ruby24_64 => {:path => "c:/ruby24-x64/bin/ruby", :msys => :msys2},
76
+ :ruby25_32 => {:path => "c:/ruby25/bin/ruby", :msys => :msys2},
77
+ :ruby25_64 => {:path => "c:/ruby25-x64/bin/ruby", :msys => :msys2}
76
78
  }
77
79
  )
78
80
 
@@ -81,6 +83,13 @@ namespace 'gem' do
81
83
  args.each{ |key|
82
84
  default_path = ENV['PATH']
83
85
 
86
+ spec = eval(IO.read('win32-api.gemspec'))
87
+
88
+ if spec.version.prerelease? && !File.exist?("#{key.last[:path]}.exe")
89
+ puts "#{key.last[:path]} does not exist! Skip."
90
+ next
91
+ end
92
+
84
93
  if key.last[:msys] == :msys1
85
94
  # Adjust devkit paths as needed.
86
95
  if `"#{key.last[:path]}" -v` =~ /x64/i
@@ -154,6 +163,14 @@ begin
154
163
  end
155
164
  end
156
165
 
166
+ if RbConfig::CONFIG['MINOR'] == '5'
167
+ if RbConfig::CONFIG['arch'] =~ /x64/i
168
+ require File.join(File.dirname(__FILE__), 'ruby25_64/win32/api')
169
+ else
170
+ require File.join(File.dirname(__FILE__), 'ruby25_32/win32/api')
171
+ end
172
+ end
173
+
157
174
  end
158
175
  rescue LoadError
159
176
  require File.join(File.dirname(__FILE__), '../../ext/api')
@@ -6,10 +6,6 @@ install:
6
6
  - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
7
7
  - "%devkit64%\\devkitvars.bat"
8
8
  - "%devkit32%\\devkitvars.bat"
9
- - ps: Start-FileDownload https://github.com/larskanis/rubyinstaller2/releases/download/2.4.0-7/rubyinstaller-2.4.0-7-x86.exe
10
- - rubyinstaller-2.4.0-7-x86.exe TYPE=full /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /CLOSEAPPLICATIONS /NORESTARTAPPLICATIONS /DIR="C:\Ruby24"
11
- - ps: Start-FileDownload https://github.com/larskanis/rubyinstaller2/releases/download/2.4.0-7/rubyinstaller-2.4.0-7-x64.exe
12
- - rubyinstaller-2.4.0-7-x64.exe TYPE=full /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /CLOSEAPPLICATIONS /NORESTARTAPPLICATIONS /DIR="C:\Ruby24-x64"
13
9
  - ruby --version
14
10
  - gem --version
15
11
  - IF %msys2%==1 ridk.cmd enable
@@ -42,6 +42,14 @@ begin
42
42
  end
43
43
  end
44
44
 
45
+ if RbConfig::CONFIG['MINOR'] == '5'
46
+ if RbConfig::CONFIG['arch'] =~ /x64/i
47
+ require File.join(File.dirname(__FILE__), 'ruby25_64/win32/api')
48
+ else
49
+ require File.join(File.dirname(__FILE__), 'ruby25_32/win32/api')
50
+ end
51
+ end
52
+
45
53
  end
46
54
  rescue LoadError
47
55
  require File.join(File.dirname(__FILE__), '../../ext/api')
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-api'
5
- spec.version = '1.6.1.2'
5
+ spec.version = '1.7.0.pre1'
6
6
  spec.authors = ['Daniel J. Berger', 'Park Heesob', 'Hiroshi Hatake']
7
7
  spec.license = 'Artistic-2.0'
8
8
  spec.email = 'djberg96@gmail.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1.2
4
+ version: 1.7.0.pre1
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-02-02 00:00:00.000000000 Z
13
+ date: 2017-07-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: test-unit
@@ -71,6 +71,8 @@ files:
71
71
  - lib/win32/ruby23_64/win32/api.so
72
72
  - lib/win32/ruby24_32/win32/api.so
73
73
  - lib/win32/ruby24_64/win32/api.so
74
+ - lib/win32/ruby25_32/win32/api.so
75
+ - lib/win32/ruby25_64/win32/api.so
74
76
  - lib/win32/ruby2_32/win32/api.so
75
77
  - lib/win32/ruby2_64/win32/api.so
76
78
  - test/test_win32_api.rb
@@ -92,9 +94,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
94
  version: 1.8.2
93
95
  required_rubygems_version: !ruby/object:Gem::Requirement
94
96
  requirements:
95
- - - ">="
97
+ - - ">"
96
98
  - !ruby/object:Gem::Version
97
- version: '0'
99
+ version: 1.3.1
98
100
  requirements: []
99
101
  rubyforge_project:
100
102
  rubygems_version: 2.6.8