expressir 2.4.25 → 2.4.26

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da722d6f42601529fb1f7798255f6f5e8fed696c4c64998ed7e8c5b47aacb598
4
- data.tar.gz: d9ead75080ad649480d7665cc526d500e9a228f18f941e2d0efbeab03d7871f9
3
+ metadata.gz: 51179b5984b4c7c9f6f02e1b306c31e8f9b1b7ec420f7923b4b96957601244a1
4
+ data.tar.gz: 15b0e981214636104b47fa472f69736612f192907783adf894160b1517288f03
5
5
  SHA512:
6
- metadata.gz: 194e26d86f8043557120fb8935491376420600e8fecbde5ad99ceef352f3fe77251a1320c16ddb25f2ef293be33ca85c7e2daf1c02df1bcba16346d4067d1550
7
- data.tar.gz: 68da6ffb076de9b604107ac2129d1b11224c57102037f84f526dcbd5efc4fdb54a012f843f3cb0e7f20e29eda4f11e8ee6dce81a3d58c4ed9b7238857ee02609
6
+ metadata.gz: 44a3da19b7db2986d8b841641366254f1b365e09803d881a753ab946562dddf75513a8107dff8201bc457848535726d47ebc85f32faa37a70841f048803f5c5d
7
+ data.tar.gz: 8da0ff1bdc5742383defcae54413bb201faed4b26a8a9c7c50c5aa194a02b1d5fb6ae8e8015aa51a4090bcb4347ff6978aad4aacd1951f86d358357d5e2b4398
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gemspec
6
6
 
7
7
  gem "canon"
8
8
  gem "irb"
9
- gem "lutaml-model", github: "lutaml/lutaml-model", branch: "main"
9
+ gem "lutaml-model", "0.8.76"
10
10
  gem "openssl", "~> 3.0"
11
11
  gem "rake"
12
12
  gem "rake-compiler"
data/Rakefile CHANGED
@@ -1,19 +1,32 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
4
 
6
- RSpec::Core::RakeTask.new(:spec)
5
+ # Dev-tool tasks are optional: the rake-compiler-dock bundle carries
6
+ # production dependencies only, and cross-gem builds must still load
7
+ # the Rakefile.
8
+ begin
9
+ require "rspec/core/rake_task"
7
10
 
8
- require "rubocop/rake_task"
11
+ RSpec::Core::RakeTask.new(:spec)
12
+ rescue LoadError
13
+ end
14
+
15
+ begin
16
+ require "rubocop/rake_task"
9
17
 
10
- RuboCop::RakeTask.new
18
+ RuboCop::RakeTask.new
19
+ rescue LoadError
20
+ end
11
21
 
12
22
  task default: %i[spec rubocop]
13
23
 
14
- require "yard"
24
+ begin
25
+ require "yard"
15
26
 
16
- YARD::Rake::YardocTask.new
27
+ YARD::Rake::YardocTask.new
28
+ rescue LoadError
29
+ end
17
30
 
18
31
  Dir.glob(File.expand_path("lib/tasks/*.rake", __dir__)).each { |task| load task }
19
32
 
data/expressir.gemspec CHANGED
@@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
42
42
  spec.add_dependency "benchmark-ips"
43
43
  spec.add_dependency "csv"
44
44
  spec.add_dependency "liquid"
45
- spec.add_dependency "lutaml-model", "~> 0.8.50"
45
+ spec.add_dependency "lutaml-model", "~> 0.8.76"
46
46
  spec.add_dependency "moxml"
47
47
  spec.add_dependency "nokogiri"
48
48
  spec.add_dependency "paint"
@@ -21,13 +21,13 @@ if RUBY_ENGINE != "ruby" || ENV["EXPRESSIR_CORE"] == "0"
21
21
  exit 0
22
22
  end
23
23
 
24
- # Windows rubies are mingw-built while rustup defaults to the msvc
25
- # toolchain; rb-sys cannot bridge the two, so skip there too (windows
26
- # installs fall back to the pure-Ruby parser).
27
24
  # Local mingw rubies pair with an msvc-default cargo and cannot build;
28
- # cross-gem containers carry the coherent gnu toolchain, so the skip is
29
- # bypassable there (EXPRESSIR_CORE_FORCE=1).
30
- if RUBY_PLATFORM.include?("mingw") && ENV["EXPRESSIR_CORE_FORCE"] != "1"
25
+ # cross-build environments (rake-compiler sets RUBY_CC_VERSION there —
26
+ # extconf runs under the cross mingw ruby) carry the coherent gnu
27
+ # toolchain and MUST build: the prebuilt platform gems come from them.
28
+ # EXPRESSIR_CORE_FORCE=1 remains the manual override.
29
+ if RUBY_PLATFORM.include?("mingw") && ENV["EXPRESSIR_CORE_FORCE"] != "1" &&
30
+ !ENV.key?("RUBY_CC_VERSION")
31
31
  write_noop_makefile
32
32
  warn "expressir: skipping the Rust core extension on mingw (msvc " \
33
33
  "toolchain mismatch)"
@@ -3,6 +3,6 @@ module Expressir
3
3
  # autoload it (Ruby autoload only works for module/class constants, not
4
4
  # for string constants like `Expressir::VERSION`).
5
5
  module Version
6
- VERSION = "2.4.25".freeze
6
+ VERSION = "2.4.26".freeze
7
7
  end
8
8
  end
@@ -4,6 +4,13 @@
4
4
  # production-scale checks (`:production_scale` tag; see spec_helper's
5
5
  # filter), which the default suite excludes: they parse a full-size
6
6
  # schema and cost about a minute.
7
- RSpec::Core::RakeTask.new(:"verify:remarks") do |task|
8
- task.rspec_opts = "--tag production_scale"
7
+ #
8
+ # Guarded: rake-compiler-dock's bundle carries production dependencies
9
+ # only, and cross-gem rake invocations must still load the task files.
10
+ if defined?(RSpec)
11
+ RSpec::Core::RakeTask.new(:"verify:remarks") do |task|
12
+ task.rspec_opts = "--tag production_scale"
13
+ end
14
+ else
15
+ warn "verify_remarks: rspec not available — task not defined"
9
16
  end
data/rakelib/native.rake CHANGED
@@ -35,8 +35,14 @@ begin
35
35
  "ext/expressir_core/target/#{triple}/release/libexpressir_core.{so,dylib}"].first
36
36
  raise "binding artifact not found for #{plat} (#{triple})" unless art
37
37
 
38
- cp art, "lib/expressir/"
39
- spec.files << "lib/expressir/#{File.basename(art)}"
38
+ # core.rb requires "expressir/expressir_core", so the staged file
39
+ # must sit at the canonical Ruby extension path/name — cargo's
40
+ # lib- prefixed or .dll/.dylib-suffixed names are renamed to
41
+ # expressir_core.so (Ruby's require accepts .so on every target:
42
+ # DLEXT on linux/windows, DLEXT2 on darwin).
43
+ dest = "lib/expressir/expressir_core.so"
44
+ cp art, dest
45
+ spec.files << dest
40
46
  end
41
47
  end
42
48
  rescue LoadError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expressir
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.25
4
+ version: 2.4.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.8.50
103
+ version: 0.8.76
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.8.50
110
+ version: 0.8.76
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: moxml
113
113
  requirement: !ruby/object:Gem::Requirement