tebako 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +10 -0
- data/lib/tebako/cli.rb +0 -8
- data/lib/tebako/version.rb +1 -1
- data/tebako.gemspec +3 -0
- data/tests-2/tebako-test.rb +3 -2
- data/version.txt +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97effadb1d79ead536d7307438fce1d4e41b352c9f202e34f6d37986f350215d
|
4
|
+
data.tar.gz: c01f702f67e2bec7a2224ebc73aea1e0d583922936707c973e86cdb59cafea9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32f7c455cb6c3784cfd1892b06541c639dd43e9cc34711e40cfad0aabc0bad9b71e51046bf06acc5eb0ad5ed72614eed90f76357d310ce7aaaadc79158a2f561
|
7
|
+
data.tar.gz: ba76a9795e68cd101d68dd5f0824ab73bd3afee6fe717194b46d83c3a670ac57102bc63b06cd15b49516cfaaa5b4a77ac3f7949b99b386fdd295d16e5ac8d15b
|
data/Rakefile
CHANGED
@@ -31,3 +31,13 @@ require "rubocop/rake_task"
|
|
31
31
|
RuboCop::RakeTask.new
|
32
32
|
|
33
33
|
task default: %i[rubocop]
|
34
|
+
|
35
|
+
desc "Generate version.txt"
|
36
|
+
task "generate_version_txt" do
|
37
|
+
require_relative "lib/tebako/version"
|
38
|
+
File.write(File.join(__dir__, "version.txt"), "#{Tebako::VERSION}\n")
|
39
|
+
puts "Generate version.txt #{Tebako::VERSION} ==> #{File.join(__dir__, "version.txt")}"
|
40
|
+
end
|
41
|
+
|
42
|
+
task build: :generate_version_txt
|
43
|
+
task release: :generate_version_txt
|
data/lib/tebako/cli.rb
CHANGED
@@ -93,12 +93,6 @@ module Tebako
|
|
93
93
|
defaults = ::YAML.load_file(OPTIONS_FILE) || {}
|
94
94
|
Thor::CoreExt::HashWithIndifferentAccess.new(defaults.merge(original_options))
|
95
95
|
end
|
96
|
-
|
97
|
-
def generate
|
98
|
-
FileUtils.mkdir_p(prefix)
|
99
|
-
File.write(File.join(prefix, "version.txt"), "#{Tebako::VERSION}\n")
|
100
|
-
puts("all: ")
|
101
|
-
end
|
102
96
|
end
|
103
97
|
|
104
98
|
private
|
@@ -111,8 +105,6 @@ module Tebako
|
|
111
105
|
end
|
112
106
|
|
113
107
|
def do_setup
|
114
|
-
FileUtils.mkdir_p(prefix)
|
115
|
-
File.write(File.join(prefix, "version.txt"), "#{Tebako::VERSION}\n")
|
116
108
|
packaging_error(101) unless system(b_env, "cmake -DSETUP_MODE:BOOLEAN=ON #{cfg_options}")
|
117
109
|
packaging_error(102) unless system(b_env,
|
118
110
|
"cmake --build #{output} --target setup --parallel #{Etc.nprocessors}")
|
data/lib/tebako/version.rb
CHANGED
data/tebako.gemspec
CHANGED
@@ -54,6 +54,9 @@ Gem::Specification.new do |spec|
|
|
54
54
|
f.match(%r{\A(?:(?:test|spec|features|deps|output|common\.env)/|\.(?:git|cirrus|tebako|rubocop))})
|
55
55
|
end
|
56
56
|
end
|
57
|
+
|
58
|
+
spec.files << "version.txt"
|
59
|
+
|
57
60
|
spec.bindir = "exe"
|
58
61
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
59
62
|
spec.require_paths = %w[cmake exe ext include lib resources src tools/ci-scripts tools/cmake-scripts tools/includes]
|
data/tests-2/tebako-test.rb
CHANGED
@@ -268,11 +268,12 @@ class TebakoTest < MiniTest::Test
|
|
268
268
|
# -- that we are linking to known set of shared libraries (https://github.com/tamatebako/tebako/issues/42)
|
269
269
|
|
270
270
|
def expected_libs
|
271
|
-
|
271
|
+
case RbConfig::CONFIG["target_os"]
|
272
|
+
when /darwin/
|
272
273
|
["Security.framework", "Foundation.framework", "CoreFoundation.framework", "libSystem",
|
273
274
|
"libc++", "launcher-package-package:"]
|
274
275
|
# This is the test program itself: 'launcher-package-package:'
|
275
|
-
|
276
|
+
when /linux-musl/
|
276
277
|
["libc.musl-x86_64.so", "ld-musl-x86_64.so"]
|
277
278
|
else # linux-gnu assumed
|
278
279
|
["linux-vdso.so", "libpthread.so", "libdl.so", "libc.so", "ld-linux-", "libm.so",
|
data/version.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.5.2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tebako
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- tools/cmake-scripts/setup-openssl.cmake
|
153
153
|
- tools/cmake-scripts/version.cmake
|
154
154
|
- tools/include/pro-statvfs.h
|
155
|
+
- version.txt
|
155
156
|
homepage: https://github.com/tamatebako/tebako
|
156
157
|
licenses:
|
157
158
|
- BSD-2-Clause
|