win32-file 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +5 -0
- data/MANIFEST +1 -0
- data/Rakefile +1 -1
- data/appveyor.yml +50 -0
- data/lib/win32/file.rb +2 -1
- data/lib/win32/file/functions.rb +0 -9
- data/test/test_win32_file_misc.rb +1 -1
- data/win32-file.gemspec +2 -1
- metadata +29 -9
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87b666fc442731706ed3c080f5c6e01396d05218
|
4
|
+
data.tar.gz: afbf022dcf319dca0e59cf6aa0f65c2f0ff1d7f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf58b8481a714b0097b8a6b50c7ee926c37cea871fec60e074a840a6b3a58f471aed181f2a2aff67d28021146ebc58c434c5385b5702d1dd727aa8c42d7ae30d
|
7
|
+
data.tar.gz: 583471777b9642c5411c7a001baea8024c5190e5d56f7dc7205fc787dee0b3d2fb2f65608b5440648e13d8dcc7c30f3502deef3d2e866da0c45c575fdadb3777
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 0.8.1 - 25-Jun-2016
|
2
|
+
* Removed the custom wstrip method, use ffi-win32-extensions instead,
|
3
|
+
which was added as a dependency.
|
4
|
+
* Added appveyor.yml file.
|
5
|
+
|
1
6
|
== 0.8.0 - 30-Oct-2015
|
2
7
|
* The File.atime, File.ctime and File.mtime methods now accept an optional
|
3
8
|
second argument. If present, those values are set to whatever value that
|
data/MANIFEST
CHANGED
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ namespace 'gem' do
|
|
10
10
|
require 'rubygems/package'
|
11
11
|
spec = eval(IO.read('win32-file.gemspec'))
|
12
12
|
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
13
|
-
Gem::Package.build(spec)
|
13
|
+
Gem::Package.build(spec, true)
|
14
14
|
end
|
15
15
|
|
16
16
|
desc 'Install the win32-file gem'
|
data/appveyor.yml
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
version: '{build}'
|
2
|
+
branches:
|
3
|
+
only:
|
4
|
+
- ffi
|
5
|
+
skip_tags: true
|
6
|
+
clone_depth: 10
|
7
|
+
environment:
|
8
|
+
matrix:
|
9
|
+
- ruby_version: 193
|
10
|
+
ruby_dir: 1.9.1
|
11
|
+
- ruby_version: 200
|
12
|
+
ruby_dir: 2.0.0
|
13
|
+
- ruby_version: 200-x64
|
14
|
+
ruby_dir: 2.0.0
|
15
|
+
- ruby_version: 21
|
16
|
+
ruby_dir: 2.1.0
|
17
|
+
- ruby_version: 21-x64
|
18
|
+
ruby_dir: 2.1.0
|
19
|
+
- ruby_version: 22
|
20
|
+
ruby_dir: 2.2.0
|
21
|
+
- ruby_version: 22-x64
|
22
|
+
ruby_dir: 2.2.0
|
23
|
+
install:
|
24
|
+
- ps: >-
|
25
|
+
$env:path = "C:\Ruby" + $env:ruby_version + "\bin;" + $env:path
|
26
|
+
|
27
|
+
$tpath = "C:\Ruby" + $env:ruby_version + "\lib\ruby\" + $env:ruby_dir + "\test"
|
28
|
+
|
29
|
+
if ((test-path $tpath) -eq $True){ rm -recurse -force $tpath }
|
30
|
+
|
31
|
+
gem update --system > $null
|
32
|
+
|
33
|
+
if ((gem query -i ffi) -eq $False){ gem install ffi --no-document }
|
34
|
+
|
35
|
+
if ((gem query -i test-unit -v ">= 3.0") -eq $False){ gem install test-unit --no-document }
|
36
|
+
|
37
|
+
if ((gem query -i win32-file-stat) -eq $False){ gem install win32-file-stat --no-document }
|
38
|
+
|
39
|
+
if ((gem query -i win32-security) -eq $False){ gem install win32-security --no-document }
|
40
|
+
cache:
|
41
|
+
- C:\Ruby193\lib\ruby\gems\1.9.1
|
42
|
+
- C:\Ruby200\lib\ruby\gems\2.0.0
|
43
|
+
- C:\Ruby200-x64\lib\ruby\gems\2.0.0
|
44
|
+
- C:\Ruby21\lib\ruby\gems\2.1.0
|
45
|
+
- C:\Ruby21-x64\lib\ruby\gems\2.1.0
|
46
|
+
- C:\Ruby22\lib\ruby\gems\2.2.0
|
47
|
+
- C:\Ruby22-x64\lib\ruby\gems\2.2.0
|
48
|
+
build: off
|
49
|
+
test_script:
|
50
|
+
- cmd: rake
|
data/lib/win32/file.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require_relative 'file/constants'
|
2
2
|
require_relative 'file/structs'
|
3
3
|
require_relative 'file/functions'
|
4
|
+
require 'ffi/win32/extensions'
|
4
5
|
require 'win32/file/stat'
|
5
6
|
|
6
7
|
class File
|
@@ -9,7 +10,7 @@ class File
|
|
9
10
|
extend Windows::File::Functions
|
10
11
|
|
11
12
|
# The version of the win32-file library
|
12
|
-
WIN32_FILE_VERSION = '0.8.
|
13
|
+
WIN32_FILE_VERSION = '0.8.1'
|
13
14
|
|
14
15
|
class << self
|
15
16
|
alias_method :join_orig, :join
|
data/lib/win32/file/functions.rb
CHANGED
@@ -40,12 +40,3 @@ module Windows
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
43
|
-
|
44
|
-
class String
|
45
|
-
# Read a wide character string up until the first double null, and delete
|
46
|
-
# any remaining null characters.
|
47
|
-
def wstrip
|
48
|
-
self.force_encoding('UTF-16LE').encode('UTF-8',:invalid=>:replace,:undef=>:replace).
|
49
|
-
split("\x00")[0].encode(Encoding.default_external)
|
50
|
-
end
|
51
|
-
end
|
@@ -6,7 +6,7 @@ require 'test-unit'
|
|
6
6
|
|
7
7
|
class TC_Win32_File_Misc < Test::Unit::TestCase
|
8
8
|
test "version constant is set to expected value" do
|
9
|
-
assert_equal('0.8.
|
9
|
+
assert_equal('0.8.1', File::WIN32_FILE_VERSION)
|
10
10
|
end
|
11
11
|
|
12
12
|
test "ffi functions are private" do
|
data/win32-file.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'win32-file'
|
5
|
-
spec.version = '0.8.
|
5
|
+
spec.version = '0.8.1'
|
6
6
|
spec.authors = ['Daniel J. Berger', 'Park Heesob']
|
7
7
|
spec.license = 'Artistic 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.required_ruby_version = ">= 1.9.0"
|
17
17
|
|
18
18
|
spec.add_dependency('ffi')
|
19
|
+
spec.add_dependency('ffi-win32-extensions')
|
19
20
|
spec.add_dependency('win32-file-stat', '>= 1.4.0')
|
20
21
|
|
21
22
|
spec.add_development_dependency('rake')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-file
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
32
32
|
tGSHgAmcLlkdGgan182qsE/4kKM=
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2016-06-26 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: ffi
|
@@ -47,6 +47,20 @@ dependencies:
|
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0'
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: ffi-win32-extensions
|
52
|
+
requirement: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
50
64
|
- !ruby/object:Gem::Dependency
|
51
65
|
name: win32-file-stat
|
52
66
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,16 +131,22 @@ extra_rdoc_files:
|
|
117
131
|
- CHANGES
|
118
132
|
- MANIFEST
|
119
133
|
files:
|
120
|
-
-
|
121
|
-
-
|
122
|
-
- README
|
123
|
-
- Rakefile
|
134
|
+
- appveyor.yml
|
135
|
+
- certs
|
124
136
|
- certs/djberg96_pub.pem
|
125
|
-
-
|
126
|
-
- lib
|
137
|
+
- CHANGES
|
138
|
+
- lib
|
139
|
+
- lib/win32
|
140
|
+
- lib/win32/file
|
127
141
|
- lib/win32/file/constants.rb
|
128
142
|
- lib/win32/file/functions.rb
|
129
143
|
- lib/win32/file/structs.rb
|
144
|
+
- lib/win32/file.rb
|
145
|
+
- lib/win32-file.rb
|
146
|
+
- MANIFEST
|
147
|
+
- Rakefile
|
148
|
+
- README
|
149
|
+
- test
|
130
150
|
- test/test_win32_file_link.rb
|
131
151
|
- test/test_win32_file_misc.rb
|
132
152
|
- test/test_win32_file_path.rb
|
@@ -152,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
172
|
version: '0'
|
153
173
|
requirements: []
|
154
174
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.4
|
175
|
+
rubygems_version: 2.6.4
|
156
176
|
signing_key:
|
157
177
|
specification_version: 4
|
158
178
|
summary: Extra or redefined methods for the File class on Windows.
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�bQX��b���N`��J��l8�.T!�<�Z��Zm��2;��ܣ��{�h�dT�a�B�w��QlN�'�ߍ�4A��05��7��`�D'��ڧ�"�%3+��H@P�M�^��CQ��+�NF5��N#:.�d=��$����AU�$ʉc��&\��UV�d�$��M�b�#k�e#�@y�j��0�&f
|
2
|
+
����Gg��5KvH��f����Ω:bJ�?d��c(e�'��L�(����;?`5���MQ$E��D�����6
|