file-temp 1.3.0 → 1.4.0

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
- SHA1:
3
- metadata.gz: 0439e6595202db84a8dea3cfd41b526a0f1adba1
4
- data.tar.gz: 135ca4378282ef1eabcef68f2b7b3dbea3193de8
2
+ SHA256:
3
+ metadata.gz: 9d67d648a504230473821894fe46b2a1cc1a620a446f56ddf5403948d897ec11
4
+ data.tar.gz: 20f597de400fbb8fc80303a15f8565407797ae55cc4fd2d8f10e5bde193a69ea
5
5
  SHA512:
6
- metadata.gz: 74c529e0f8179a27ebb8428cb1636b5401439b2a546f553960e97c9b305e96cfe327edb196865e9cbaeb99f9bf6ef8c1044cece6442918742b84c5e890243388
7
- data.tar.gz: ebba50979466de41024f48e2cfd60dab4439fa3f4cbe9c09fd7914120eba0e53039b936e17633b75a5b06d9052c4e051f3f6c2206d199234613d3e3daddfd8fd
6
+ metadata.gz: a5c7833e5672b2cfa8a2809c3d47d134a9230ae9c8442de88b46b8b7c7eb9ebccf598b5e3f9e5b116fa5d1b77094cc31b63c538a65bb338153242baebd44b070
7
+ data.tar.gz: a0da5760dfdb59be495b1292eac93315c8de30ccb0c8a7c98c976f1028757bfde8cb6c09a47adc26ca0ac556b0690b5d2190f50272989308a4ec1e4551b3ad34
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ = 1.4.0 - 12-Oct-2019
2
+ * Changed license to Apache-2.0.
3
+ * VERSION constant now lives in a single place, and is frozen.
4
+ * Added metadata to the gemspec.
5
+ * Updated cert.
6
+
1
7
  = 1.3.0 - 9-Apr-2016
2
8
  * This gem is now signed.
3
9
  * Added a file-temp.rb file for convenience.
@@ -1,21 +1,26 @@
1
1
  -----BEGIN CERTIFICATE-----
2
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
2
+ MIIEcDCCAtigAwIBAgIBATANBg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xS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
19
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
20
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
21
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
22
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
23
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
24
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
25
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
21
26
  -----END CERTIFICATE-----
@@ -2,9 +2,9 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'file-temp'
5
- spec.version = '1.3.0'
5
+ spec.version = '1.4.0'
6
6
  spec.author = 'Daniel J. Berger'
7
- spec.license = 'Artistic 2.0'
7
+ spec.license = 'Apache-2.0'
8
8
  spec.email = 'djberg96@gmail.com'
9
9
  spec.homepage = 'http://github.com/djberg96/file-temp'
10
10
  spec.summary = 'An alternative way to generate temp files'
@@ -18,6 +18,15 @@ Gem::Specification.new do |spec|
18
18
  spec.add_development_dependency('test-unit')
19
19
  spec.add_development_dependency('rake')
20
20
 
21
+ spec.metadata = {
22
+ 'homepage_uri' => 'https://github.com/djberg96/file-temp',
23
+ 'bug_tracker_uri' => 'https://github.com/djberg96/file-temp/issues',
24
+ 'changelog_uri' => 'https://github.com/djberg96/file-temp/blob/master/CHANGES',
25
+ 'documentation_uri' => 'https://github.com/djberg96/file-temp/wiki',
26
+ 'source_code_uri' => 'https://github.com/djberg96/file-temp',
27
+ 'wiki_uri' => 'https://github.com/djberg96/file-temp/wiki'
28
+ }
29
+
21
30
  spec.description = <<-EOF
22
31
  The file-temp library provides an alternative approach to generating
23
32
  temporary files. Features included improved security, a superior
@@ -2,9 +2,6 @@ require 'java'
2
2
  import java.lang.System
3
3
 
4
4
  class File::Temp < File
5
- # The version of the file-temp library.
6
- VERSION = '1.3.0'
7
-
8
5
  # The temporary directory used on MS Windows or Unix.
9
6
  TMPDIR = java.lang.System.getProperties["java.io.tmpdir"]
10
7
 
@@ -1,3 +1,8 @@
1
+ class File::Temp < File
2
+ # The version of the file-temp library
3
+ VERSION = '1.4.0'.freeze
4
+ end
5
+
1
6
  if RUBY_PLATFORM == 'java'
2
7
  require_relative 'java/temp'
3
8
  else
@@ -23,9 +23,6 @@ class File::Temp < File
23
23
 
24
24
  # :startdoc:
25
25
 
26
- # The version of the file-temp library.
27
- VERSION = '1.3.0'
28
-
29
26
  # The temporary directory used on MS Windows or Unix.
30
27
  TMPDIR = ENV['TEMP'] || ENV['TMP'] || ENV['TMPDIR'] || Dir.tmpdir
31
28
 
@@ -53,9 +53,6 @@ class File::Temp < File
53
53
 
54
54
  # :startdoc:
55
55
 
56
- # The version of the file-temp library.
57
- VERSION = '1.3.0'
58
-
59
56
  # The temporary directory used on MS Windows or Unix.
60
57
  TMPDIR = ENV['TEMP'] || ENV['TMP'] || ENV['USERPROFILE'] || Dir.tmpdir
61
58
 
@@ -22,7 +22,8 @@ class TC_File_Temp < Test::Unit::TestCase
22
22
  end
23
23
 
24
24
  test "library version is set to expected value" do
25
- assert_equal('1.3.0', File::Temp::VERSION)
25
+ assert_equal('1.4.0', File::Temp::VERSION)
26
+ assert_true(File::Temp::VERSION.frozen?)
26
27
  end
27
28
 
28
29
  # Fails with JRuby, not sure why.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file-temp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -10,27 +10,32 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
13
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
14
14
  cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
- MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
15
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
16
16
  ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
17
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
18
- Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
19
- S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
20
- gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
21
- FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
22
- zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
23
- DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
24
- nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QG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EAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFZsMapgzJimzsbaBG2Tm8j5e
27
+ AzgwHQYDVR0RBBYwFIESZGpiZXJnOTZAZ21haWwuY29tMB0GA1UdEgQWMBSBEmRq
28
+ YmVyZzk2QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
29
+ /3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
30
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
31
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
32
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
33
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
34
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
35
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
36
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
32
37
  -----END CERTIFICATE-----
33
- date: 2016-04-09 00:00:00.000000000 Z
38
+ date:
34
39
  dependencies:
35
40
  - !ruby/object:Gem::Dependency
36
41
  name: ffi
@@ -86,29 +91,35 @@ extra_rdoc_files:
86
91
  - README
87
92
  - MANIFEST
88
93
  files:
94
+ - test
95
+ - test/test_file_temp.rb
96
+ - file-temp.gemspec
97
+ - CHANGES
98
+ - MANIFEST
99
+ - README
100
+ - Rakefile
89
101
  - certs
90
102
  - certs/djberg96_pub.pem
91
- - CHANGES
92
- - file-temp.gemspec
93
103
  - lib
104
+ - lib/file-temp.rb
94
105
  - lib/file
106
+ - lib/file/temp.rb
95
107
  - lib/file/java
96
108
  - lib/file/java/temp.rb
97
- - lib/file/temp.rb
98
109
  - lib/file/unix
99
110
  - lib/file/unix/temp.rb
100
111
  - lib/file/windows
101
112
  - lib/file/windows/temp.rb
102
- - lib/file-temp.rb
103
- - MANIFEST
104
- - Rakefile
105
- - README
106
- - test
107
- - test/test_file_temp.rb
108
113
  homepage: http://github.com/djberg96/file-temp
109
114
  licenses:
110
- - Artistic 2.0
111
- metadata: {}
115
+ - Apache-2.0
116
+ metadata:
117
+ homepage_uri: https://github.com/djberg96/file-temp
118
+ bug_tracker_uri: https://github.com/djberg96/file-temp/issues
119
+ changelog_uri: https://github.com/djberg96/file-temp/blob/master/CHANGES
120
+ documentation_uri: https://github.com/djberg96/file-temp/wiki
121
+ source_code_uri: https://github.com/djberg96/file-temp
122
+ wiki_uri: https://github.com/djberg96/file-temp/wiki
112
123
  post_install_message:
113
124
  rdoc_options: []
114
125
  require_paths:
@@ -124,8 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
135
  - !ruby/object:Gem::Version
125
136
  version: '0'
126
137
  requirements: []
127
- rubyforge_project:
128
- rubygems_version: 2.5.1
138
+ rubygems_version: 3.0.6
129
139
  signing_key:
130
140
  specification_version: 4
131
141
  summary: An alternative way to generate temp files
metadata.gz.sig CHANGED
Binary file