thermite 0.12.1 → 0.13.0
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 +4 -4
- data/.rubocop.yml +3 -3
- data/Gemfile +0 -1
- data/NEWS.md +11 -0
- data/Rakefile +0 -1
- data/lib/thermite/cargo.rb +8 -9
- data/lib/thermite/config.rb +20 -5
- data/lib/thermite/custom_binary.rb +0 -1
- data/lib/thermite/fiddle.rb +0 -1
- data/lib/thermite/github_release_binary.rb +0 -1
- data/lib/thermite/package.rb +1 -2
- data/lib/thermite/tasks.rb +2 -3
- data/lib/thermite/util.rb +0 -1
- data/test/lib/thermite/cargo_test.rb +20 -1
- data/test/lib/thermite/config_test.rb +64 -6
- data/test/lib/thermite/custom_binary_test.rb +20 -1
- data/test/lib/thermite/github_release_binary_test.rb +0 -1
- data/test/lib/thermite/package_test.rb +19 -0
- data/test/lib/thermite/util_test.rb +19 -0
- data/test/test_helper.rb +19 -0
- data/thermite.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f93bbe221fed24e3b544f9235ff61cf4e0a945de
|
4
|
+
data.tar.gz: 11dddf0b1358d1065a7a9c81ced8bd3c2bf8ff28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f83ab5c15e48d85ff0dc4f6b5cf76844a78f768bbafd64bbac55c8bb2262907aeba64c6935f7e88fa5dcfea3c95d450e90a7931ff317be63ba113e7501eeecf5
|
7
|
+
data.tar.gz: 6e1cd593d6a80ce7d87dbc7398ee4be6e1a1cc971754b60686fb125d8b3609a09ca283bd87c2e1de644dcaed3e4ebde4d626e765002a5e4eacf133e6fa98a88c
|
data/.rubocop.yml
CHANGED
@@ -3,6 +3,9 @@ AllCops:
|
|
3
3
|
- 'vendor/**/*'
|
4
4
|
TargetRubyVersion: 2.1
|
5
5
|
|
6
|
+
Layout/EmptyLineAfterMagicComment:
|
7
|
+
Enabled: false
|
8
|
+
|
6
9
|
Lint/EndAlignment:
|
7
10
|
Enabled: true
|
8
11
|
EnforcedStyleAlignWith: variable
|
@@ -25,9 +28,6 @@ Metrics/LineLength:
|
|
25
28
|
Metrics/MethodLength:
|
26
29
|
Max: 20
|
27
30
|
|
28
|
-
Style/EmptyLineAfterMagicComment:
|
29
|
-
Enabled: false
|
30
|
-
|
31
31
|
# When support for Ruby < 2.3 is dropped, re-enable
|
32
32
|
Style/IndentHeredoc:
|
33
33
|
Enabled: false
|
data/Gemfile
CHANGED
data/NEWS.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## [0.13.0] - 2017-10-05
|
6
|
+
|
7
|
+
### Added
|
8
|
+
|
9
|
+
* Support for building static libraries (#22, #41):
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
* Always pass `--lib` to `cargo with `link-args` (#40)
|
14
|
+
|
5
15
|
## [0.12.1] - 2017-04-06
|
6
16
|
|
7
17
|
### Fixed
|
@@ -146,6 +156,7 @@
|
|
146
156
|
|
147
157
|
Initial release.
|
148
158
|
|
159
|
+
[0.13.0]: https://github.com/malept/thermite/compare/v0.12.1...v0.13.0
|
149
160
|
[0.12.1]: https://github.com/malept/thermite/compare/v0.12.0...v0.12.1
|
150
161
|
[0.12.0]: https://github.com/malept/thermite/compare/v0.11.1...v0.12.0
|
151
162
|
[0.11.1]: https://github.com/malept/thermite/compare/v0.11.0...v0.11.1
|
data/Rakefile
CHANGED
data/lib/thermite/cargo.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
# frozen_string_literal: true
|
3
2
|
#
|
4
3
|
# Copyright (c) 2016 Mark Lee and contributors
|
@@ -86,12 +85,12 @@ module Thermite
|
|
86
85
|
# `require_severity` is the verb that indicates how important Rust is to the library.
|
87
86
|
#
|
88
87
|
def cargo_msg(require_severity)
|
89
|
-
<<
|
88
|
+
<<MESSAGE
|
90
89
|
****
|
91
90
|
Rust's Cargo is #{require_severity} to build this extension. Please install
|
92
91
|
Rust and put it in the PATH, or set the CARGO environment variable appropriately.
|
93
92
|
****
|
94
|
-
|
93
|
+
MESSAGE
|
95
94
|
end
|
96
95
|
|
97
96
|
#
|
@@ -111,16 +110,16 @@ EOM
|
|
111
110
|
private
|
112
111
|
|
113
112
|
def cargo_rustc_args
|
114
|
-
|
115
|
-
|
116
|
-
|
113
|
+
if config.dynamic_linker_flags == '' || config.target_os == 'mingw32'
|
114
|
+
[]
|
115
|
+
else
|
116
|
+
[
|
117
|
+
'--lib',
|
117
118
|
'--',
|
118
119
|
'-C',
|
119
120
|
"link-args=#{config.dynamic_linker_flags}"
|
120
|
-
|
121
|
+
]
|
121
122
|
end
|
122
|
-
|
123
|
-
args
|
124
123
|
end
|
125
124
|
end
|
126
125
|
end
|
data/lib/thermite/config.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
# frozen_string_literal: true
|
3
2
|
#
|
4
3
|
# Copyright (c) 2016 Mark Lee and contributors
|
@@ -109,22 +108,31 @@ module Thermite
|
|
109
108
|
end
|
110
109
|
|
111
110
|
#
|
112
|
-
# The basename of the
|
111
|
+
# The basename of the shared library built by Cargo.
|
113
112
|
#
|
114
|
-
def
|
115
|
-
@
|
113
|
+
def cargo_shared_library
|
114
|
+
@cargo_shared_library ||= begin
|
116
115
|
filename = "#{library_name}.#{shared_ext}"
|
117
116
|
filename = "lib#{filename}" unless Gem.win_platform?
|
118
117
|
filename
|
119
118
|
end
|
120
119
|
end
|
121
120
|
|
121
|
+
#
|
122
|
+
# The basename of the Rust shared library, as installed in the {#ruby_extension_path}.
|
123
|
+
#
|
124
|
+
def shared_library
|
125
|
+
@shared_library ||= "#{library_name}.so"
|
126
|
+
end
|
127
|
+
|
122
128
|
#
|
123
129
|
# Return the basename of the tarball generated by the `thermite:tarball` Rake task, given a
|
124
130
|
# package `version`.
|
125
131
|
#
|
126
132
|
def tarball_filename(version)
|
127
|
-
|
133
|
+
static = static_extension? ? '-static' : ''
|
134
|
+
|
135
|
+
"#{library_name}-#{version}-#{ruby_version}-#{target_os}-#{target_arch}#{static}.tar.gz"
|
128
136
|
end
|
129
137
|
|
130
138
|
#
|
@@ -262,6 +270,13 @@ module Thermite
|
|
262
270
|
@dynamic_linker_flags ||= RbConfig::CONFIG['DLDFLAGS'].strip
|
263
271
|
end
|
264
272
|
|
273
|
+
#
|
274
|
+
# Whether to use a statically linked extension.
|
275
|
+
#
|
276
|
+
def static_extension?
|
277
|
+
ENV.key?('RUBY_STATIC') || RbConfig::CONFIG['ENABLE_SHARED'] == 'no'
|
278
|
+
end
|
279
|
+
|
265
280
|
private
|
266
281
|
|
267
282
|
def dlext
|
data/lib/thermite/fiddle.rb
CHANGED
data/lib/thermite/package.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
# frozen_string_literal: true
|
3
2
|
#
|
4
3
|
# Copyright (c) 2016 Mark Lee and contributors
|
@@ -24,7 +23,7 @@ require 'zlib'
|
|
24
23
|
|
25
24
|
module Thermite
|
26
25
|
#
|
27
|
-
# Helpers to package the Rust library
|
26
|
+
# Helpers to package the Rust library into a gzipped tarball.
|
28
27
|
#
|
29
28
|
module Package
|
30
29
|
#
|
data/lib/thermite/tasks.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
# frozen_string_literal: true
|
3
2
|
#
|
4
3
|
# Copyright (c) 2016 Mark Lee and contributors
|
@@ -123,8 +122,8 @@ module Thermite
|
|
123
122
|
if cargo
|
124
123
|
profile = ENV.fetch('CARGO_PROFILE', 'release')
|
125
124
|
run_cargo_rustc(profile)
|
126
|
-
FileUtils.cp(config.cargo_target_path(profile, config.
|
127
|
-
config.
|
125
|
+
FileUtils.cp(config.cargo_target_path(profile, config.cargo_shared_library),
|
126
|
+
config.ruby_extension_path)
|
128
127
|
elsif !download_binary_from_custom_uri && !download_binary_from_github_release
|
129
128
|
inform_user_about_cargo
|
130
129
|
end
|
data/lib/thermite/util.rb
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# Copyright (c) 2016, 2017 Mark Lee and contributors
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
6
|
+
# associated documentation files (the "Software"), to deal in the Software without restriction,
|
7
|
+
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
8
|
+
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in all copies or
|
12
|
+
# substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
15
|
+
# NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
16
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
17
|
+
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
18
|
+
# OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
+
|
1
20
|
require 'test_helper'
|
2
21
|
require 'thermite/cargo'
|
3
22
|
|
@@ -46,7 +65,7 @@ module Thermite
|
|
46
65
|
if RbConfig::CONFIG['target_os'] == 'mingw32'
|
47
66
|
mock_module.expects(:run_cargo).with('rustc').once
|
48
67
|
else
|
49
|
-
mock_module.expects(:run_cargo).with('rustc', '--', '-C', 'link-args=foo bar').once
|
68
|
+
mock_module.expects(:run_cargo).with('rustc', '--lib', '--', '-C', 'link-args=foo bar').once
|
50
69
|
end
|
51
70
|
mock_module.run_cargo_rustc('debug')
|
52
71
|
end
|
@@ -1,3 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# Copyright (c) 2016, 2017 Mark Lee and contributors
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
6
|
+
# associated documentation files (the "Software"), to deal in the Software without restriction,
|
7
|
+
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
8
|
+
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in all copies or
|
12
|
+
# substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
15
|
+
# NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
16
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
17
|
+
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
18
|
+
# OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
+
|
1
20
|
require 'test_helper'
|
2
21
|
|
3
22
|
module Thermite
|
@@ -55,24 +74,40 @@ module Thermite
|
|
55
74
|
config.stubs(:library_name).returns('foobar')
|
56
75
|
config.stubs(:shared_ext).returns('ext')
|
57
76
|
Gem.stubs(:win_platform?).returns(false)
|
58
|
-
assert_equal '
|
77
|
+
assert_equal 'foobar.so', config.shared_library
|
59
78
|
end
|
60
79
|
|
61
80
|
def test_shared_library_windows
|
62
81
|
config.stubs(:library_name).returns('foobar')
|
63
82
|
config.stubs(:shared_ext).returns('ext')
|
64
83
|
Gem.stubs(:win_platform?).returns(true)
|
65
|
-
assert_equal 'foobar.
|
84
|
+
assert_equal 'foobar.so', config.shared_library
|
66
85
|
end
|
67
86
|
|
68
|
-
def
|
87
|
+
def test_cargo_shared_library
|
69
88
|
config.stubs(:library_name).returns('foobar')
|
70
|
-
config.stubs(:
|
71
|
-
|
72
|
-
config.
|
89
|
+
config.stubs(:shared_ext).returns('ext')
|
90
|
+
Gem.stubs(:win_platform?).returns(false)
|
91
|
+
assert_equal 'libfoobar.ext', config.cargo_shared_library
|
92
|
+
end
|
93
|
+
|
94
|
+
def test_cargo_shared_library_windows
|
95
|
+
config.stubs(:library_name).returns('foobar')
|
96
|
+
config.stubs(:shared_ext).returns('ext')
|
97
|
+
Gem.stubs(:win_platform?).returns(true)
|
98
|
+
assert_equal 'foobar.ext', config.cargo_shared_library
|
99
|
+
end
|
100
|
+
|
101
|
+
def test_tarball_filename
|
102
|
+
stub_tarball_filename_params(false)
|
73
103
|
assert_equal 'foobar-0.1.2-ruby12-c64-z80.tar.gz', config.tarball_filename('0.1.2')
|
74
104
|
end
|
75
105
|
|
106
|
+
def test_tarball_filename_with_static_extension
|
107
|
+
stub_tarball_filename_params(true)
|
108
|
+
assert_equal 'foobar-0.1.2-ruby12-c64-z80-static.tar.gz', config.tarball_filename('0.1.2')
|
109
|
+
end
|
110
|
+
|
76
111
|
def test_default_ruby_toplevel_dir
|
77
112
|
FileUtils.stubs(:pwd).returns('/tmp/foobar')
|
78
113
|
assert_equal '/tmp/foobar', config.ruby_toplevel_dir
|
@@ -161,6 +196,21 @@ module Thermite
|
|
161
196
|
assert_equal expected, config(cargo_project_path: fixtures_path('config')).toml_config
|
162
197
|
end
|
163
198
|
|
199
|
+
def test_static_extension_sans_env_var
|
200
|
+
ENV.stubs(:key?).with('RUBY_STATIC').returns(false)
|
201
|
+
RbConfig::CONFIG.stubs(:[]).with('ENABLE_SHARED').returns('yes')
|
202
|
+
refute config.static_extension?
|
203
|
+
|
204
|
+
RbConfig::CONFIG.stubs(:[]).with('ENABLE_SHARED').returns('no')
|
205
|
+
assert config.static_extension?
|
206
|
+
end
|
207
|
+
|
208
|
+
def test_static_extension_with_env_var
|
209
|
+
ENV.stubs(:key?).with('RUBY_STATIC').returns(true)
|
210
|
+
RbConfig::CONFIG.stubs(:[]).with('ENABLE_SHARED').returns('yes')
|
211
|
+
assert config.static_extension?
|
212
|
+
end
|
213
|
+
|
164
214
|
private
|
165
215
|
|
166
216
|
def config(options = {})
|
@@ -170,5 +220,13 @@ module Thermite
|
|
170
220
|
def described_class
|
171
221
|
Thermite::Config
|
172
222
|
end
|
223
|
+
|
224
|
+
def stub_tarball_filename_params(static_extension)
|
225
|
+
config.stubs(:library_name).returns('foobar')
|
226
|
+
config.stubs(:ruby_version).returns('ruby12')
|
227
|
+
config.stubs(:target_os).returns('c64')
|
228
|
+
config.stubs(:target_arch).returns('z80')
|
229
|
+
config.stubs(:static_extension?).returns(static_extension)
|
230
|
+
end
|
173
231
|
end
|
174
232
|
end
|
@@ -1,3 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# Copyright (c) 2016, 2017 Mark Lee and contributors
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
6
|
+
# associated documentation files (the "Software"), to deal in the Software without restriction,
|
7
|
+
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
8
|
+
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in all copies or
|
12
|
+
# substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
15
|
+
# NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
16
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
17
|
+
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
18
|
+
# OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
+
|
1
20
|
require 'tmpdir'
|
2
21
|
require 'test_helper'
|
3
22
|
require 'thermite/custom_binary'
|
@@ -21,7 +40,7 @@ module Thermite
|
|
21
40
|
end
|
22
41
|
|
23
42
|
def test_download_binary_from_custom_uri
|
24
|
-
mock_module(binary_uri_format: 'http://example.com/download
|
43
|
+
mock_module(binary_uri_format: 'http://example.com/download/%<version>s/%<filename>s')
|
25
44
|
mock_module.config.stubs(:toml).returns(package: { version: '4.5.6' })
|
26
45
|
Net::HTTP.stubs(:get_response).returns('location' => 'redirect')
|
27
46
|
mock_module.stubs(:http_get).returns('tarball')
|
@@ -1,3 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# Copyright (c) 2016, 2017 Mark Lee and contributors
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
6
|
+
# associated documentation files (the "Software"), to deal in the Software without restriction,
|
7
|
+
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
8
|
+
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in all copies or
|
12
|
+
# substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
15
|
+
# NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
16
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
17
|
+
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
18
|
+
# OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
+
|
1
20
|
require 'fileutils'
|
2
21
|
require 'tmpdir'
|
3
22
|
require 'test_helper'
|
@@ -1,3 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# Copyright (c) 2016, 2017 Mark Lee and contributors
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
6
|
+
# associated documentation files (the "Software"), to deal in the Software without restriction,
|
7
|
+
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
8
|
+
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in all copies or
|
12
|
+
# substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
15
|
+
# NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
16
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
17
|
+
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
18
|
+
# OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
+
|
1
20
|
require 'tempfile'
|
2
21
|
require 'test_helper'
|
3
22
|
require 'thermite/util'
|
data/test/test_helper.rb
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# Copyright (c) 2016, 2017 Mark Lee and contributors
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
6
|
+
# associated documentation files (the "Software"), to deal in the Software without restriction,
|
7
|
+
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
8
|
+
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in all copies or
|
12
|
+
# substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
15
|
+
# NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
16
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
17
|
+
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
18
|
+
# OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
+
|
1
20
|
require 'simplecov'
|
2
21
|
SimpleCov.start do
|
3
22
|
load_profile 'test_frameworks'
|
data/thermite.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thermite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|