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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e7711498726b528b1298a6c03de0e4bb8b8b7f0
4
- data.tar.gz: e2888cd5b82f1eb3300ab8f19accaa7d888a78e8
3
+ metadata.gz: 87b666fc442731706ed3c080f5c6e01396d05218
4
+ data.tar.gz: afbf022dcf319dca0e59cf6aa0f65c2f0ff1d7f4
5
5
  SHA512:
6
- metadata.gz: fc3da34d570cd22907250e285e56656f0d46102b8273b4be3c1334f1869f9420c4ab4a223fa94f63b3c312579cea7832771df55b35f21c4051dc72e23ce300ab
7
- data.tar.gz: f9eb5764bd2eaba797d8c3e759c650f7955ed4178363687f305672c5546587ee8790abd938318ce48760c4805741f0a18306a3ae01802a698fb1ef550a12c832
6
+ metadata.gz: cf58b8481a714b0097b8a6b50c7ee926c37cea871fec60e074a840a6b3a58f471aed181f2a2aff67d28021146ebc58c434c5385b5702d1dd727aa8c42d7ae30d
7
+ data.tar.gz: 583471777b9642c5411c7a001baea8024c5190e5d56f7dc7205fc787dee0b3d2fb2f65608b5440648e13d8dcc7c30f3502deef3d2e866da0c45c575fdadb3777
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
@@ -1,3 +1,4 @@
1
+ * appveyor.yml
1
2
  * CHANGES
2
3
  * MANIFEST
3
4
  * Rakefile
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'
@@ -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
@@ -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.0'
13
+ WIN32_FILE_VERSION = '0.8.1'
13
14
 
14
15
  class << self
15
16
  alias_method :join_orig, :join
@@ -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.0', File::WIN32_FILE_VERSION)
9
+ assert_equal('0.8.1', File::WIN32_FILE_VERSION)
10
10
  end
11
11
 
12
12
  test "ffi functions are private" do
@@ -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.0'
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.0
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: 2015-10-30 00:00:00.000000000 Z
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
- - CHANGES
121
- - MANIFEST
122
- - README
123
- - Rakefile
134
+ - appveyor.yml
135
+ - certs
124
136
  - certs/djberg96_pub.pem
125
- - lib/win32-file.rb
126
- - lib/win32/file.rb
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.8
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
- q{`b'D��zkPO���]^$^A-�l�����H7D{gFwN�uwj b6{m~X>}��w:9/q��).݂�Se29�����<9}EO8�BG���#�D���J��%�a$Bç�;b*altۋ�!T&m�s-��:�����&���d(s
1
+ �bQX��b���N`��J��l8�.T!�<�Z��Zm��2;��ܣ��{�hdTaBw��QlN'�ߍ�4A��05��7��`�D'��ڧ�"�%3+��H@PM�^��CQ��+�NF5��N#:.�d=��$����AU�$ʉc��&\��UVd�$��M�b�#ke#�@yj��0�&f
2
+ ����Gg��5KvH��f����Ω:bJ�?d��c(e�'��L�(����;?`5���MQ$E��D�����6