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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '032183c7c687a30c7ae3d9619a05ebddca242795f0f82a675909d8be6172b1b7'
4
- data.tar.gz: '08d41f73148e4df92dd8da6500a0e006ead6d88e4896a265019d958945633bf8'
3
+ metadata.gz: 97effadb1d79ead536d7307438fce1d4e41b352c9f202e34f6d37986f350215d
4
+ data.tar.gz: c01f702f67e2bec7a2224ebc73aea1e0d583922936707c973e86cdb59cafea9a
5
5
  SHA512:
6
- metadata.gz: 4416ed5d575a79a1d9c3f6d7639bb6430311da5c64aede123bcc63216aea4c2f391f40b4257f11a110a33969c6ae1439277ed688a93774ca2113e65ee9985c1e
7
- data.tar.gz: 3116d78993775081a86120b51bac0ea7a21d763a147976cd1838df65447cc8af0f03d8214bb4b5ee15ff5a9a6a65d226cbd336f599b78f1af9e06da838a468ea
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}")
@@ -26,5 +26,5 @@
26
26
  # POSSIBILITY OF SUCH DAMAGE.
27
27
 
28
28
  module Tebako
29
- VERSION = "0.5.1"
29
+ VERSION = "0.5.2"
30
30
  end
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]
@@ -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
- if RbConfig::CONFIG["target_os"] =~ /darwin/
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
- elsif RbConfig::CONFIG["target_os"] =~ /linux-musl/
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.1
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-06 00:00:00.000000000 Z
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