smbcloud-model 0.3.19 → 0.7.5

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.
data/README.md CHANGED
@@ -1,3 +1,15 @@
1
1
  # smbcloud-model Gem
2
2
 
3
- Ruby Gem version of `smbcloud-model`.
3
+ Ruby package for `smbcloud-model`.
4
+
5
+ See [docs/gems.md](./docs/gems.md).
6
+
7
+ For the wider SDK context, visit the [smbCloud developer docs](https://smbcloud.xyz/posts).
8
+
9
+ ## License
10
+
11
+ MIT
12
+
13
+ ## Copyright
14
+
15
+ © 2026 [Splitfire AB](https://5mb.app) ([smbCloud](https://smbcloud.xyz)).
data/Rakefile CHANGED
@@ -1,14 +1,32 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler/gem_tasks"
4
- require "rb_sys/extensiontask"
3
+ require 'bundler/gem_tasks'
4
+ require 'rb_sys/extensiontask'
5
5
 
6
6
  task build: :compile
7
7
 
8
- GEMSPEC = Gem::Specification.load("model.gemspec")
8
+ GEMSPEC = Gem::Specification.load('model.gemspec')
9
9
 
10
- RbSys::ExtensionTask.new("model", GEMSPEC) do |ext|
11
- ext.lib_dir = "lib/model"
10
+ RbSys::ExtensionTask.new('model', GEMSPEC) do |ext|
11
+ ext.lib_dir = 'lib/model'
12
+ end
13
+
14
+ # macOS: the rb_sys/rake-compiler build emits the bundle as an MH_DYLIB with an
15
+ # empty LC_ID_DYLIB install name (a plain `cargo build` does not). dyld on macOS
16
+ # 15+/Tahoe rejects that with "load command string extends beyond end of load
17
+ # command", so the gem fails to load. Stamp a valid install name onto every
18
+ # bundle the build produces by enhancing the bundle file tasks themselves (which
19
+ # is what `rake native gem` runs, not the top-level `compile`). install_name_tool
20
+ # re-signs ad-hoc, ships on the macOS gem-build runners, and works across archs
21
+ # (cross-built x86_64 bundles too). Idempotent.
22
+ if RbConfig::CONFIG['host_os'] =~ /darwin/
23
+ Rake::Task.tasks.each do |t|
24
+ next unless t.name.end_with?('model.bundle')
25
+
26
+ t.enhance do
27
+ sh 'install_name_tool', '-id', '@rpath/model.bundle', t.name if File.exist?(t.name)
28
+ end
29
+ end
12
30
  end
13
31
 
14
32
  task default: :compile
data/ext/.keep ADDED
File without changes
data/ext/model/Cargo.toml CHANGED
@@ -1,8 +1,8 @@
1
1
  [package]
2
2
  name = "model"
3
- version = "0.1.0"
3
+ version = "0.7.5"
4
4
  edition = "2021"
5
- authors = ["paydii <hej@setoelkahfi.se>"]
5
+ authors = ["paydii <seto@smbcloud.xyz>"]
6
6
  publish = false
7
7
 
8
8
  [lib]
@@ -11,6 +11,4 @@ crate-type = ["cdylib"]
11
11
  [dependencies]
12
12
  magnus = { version = "0.7.1" }
13
13
  strum = "0.27"
14
- # Local crates
15
- smbcloud-model = "0.3.19"
16
- #smbcloud-model = { path = "./../../../../crates/smbcloud-model"}
14
+ smbcloud-model = { version = "0.4" }
data/ext/model/extconf.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "mkmf"
4
- require "rb_sys/mkmf"
3
+ require 'mkmf'
4
+ require 'rb_sys/mkmf'
5
5
 
6
- create_rust_makefile("model/model")
6
+ create_rust_makefile('model/model')
data/ext/model/src/lib.rs CHANGED
@@ -1,6 +1,8 @@
1
- use magnus::{function, prelude::*, Error, Ruby};
2
- use smbcloud_model::error_codes::ErrorCode;
3
- use strum::IntoEnumIterator;
1
+ use {
2
+ magnus::{function, prelude::*, Error, Ruby},
3
+ smbcloud_model::error_codes::ErrorCode,
4
+ strum::IntoEnumIterator,
5
+ };
4
6
 
5
7
  fn t(e: i32, l: Option<String>) -> String {
6
8
  ErrorCode::from_i32(e).message(l).to_string()
data/lib/model/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Model
4
- VERSION = "0.3.19"
4
+ VERSION = '0.7.5'
5
5
  end
data/lib/model.rb CHANGED
@@ -1,9 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "model/version"
4
- require_relative "model/model"
3
+ require_relative 'model/version'
4
+ require_relative 'model/model'
5
5
 
6
6
  module Model
7
7
  class Error < StandardError; end
8
- # Your code goes here...
9
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smbcloud-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.19
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
- - paydii
7
+ - Seto Elkahfi
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-06-09 00:00:00.000000000 Z
10
+ date: 2026-10-24 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rb_sys
@@ -23,9 +23,10 @@ dependencies:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
25
  version: 0.9.91
26
- description: Ruby binding for smbcloud-cli modellllllllllll.
26
+ description: Ruby bindings for shared smbCloud model types, backed by a native Rust
27
+ extension.
27
28
  email:
28
- - hej@setoelkahfi.se
29
+ - seto@smbcloud.xyz
29
30
  executables: []
30
31
  extensions:
31
32
  - ext/model/extconf.rb
@@ -37,20 +38,21 @@ files:
37
38
  - Cargo.toml
38
39
  - README.md
39
40
  - Rakefile
41
+ - ext/.keep
40
42
  - ext/model/Cargo.toml
41
43
  - ext/model/extconf.rb
42
44
  - ext/model/src/lib.rs
43
45
  - lib/model.rb
44
46
  - lib/model/version.rb
45
47
  - sig/model.rbs
46
- homepage: https://github.com/smbcloudXYZ/smbcloud-cli/tree/development/gems/model
48
+ homepage: https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/model
47
49
  licenses:
48
50
  - MIT
49
51
  metadata:
50
52
  allowed_push_host: https://rubygems.org
51
- homepage_uri: https://github.com/smbcloudXYZ/smbcloud-cli/tree/development/gems/model
52
- source_code_uri: https://github.com/smbcloudXYZ/smbcloud-cli/tree/development/gems/model
53
- changelog_uri: https://github.com/smbcloudXYZ/smbcloud-cli/tree/development/gems/model/CHANGELOG.md
53
+ homepage_uri: https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/model
54
+ source_code_uri: https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/model
55
+ changelog_uri: https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/model/CHANGELOG.md
54
56
  rdoc_options: []
55
57
  require_paths:
56
58
  - lib
@@ -67,5 +69,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
69
  requirements: []
68
70
  rubygems_version: 3.6.2
69
71
  specification_version: 4
70
- summary: Ruby binding for smbcloud-cli model.
72
+ summary: Ruby bindings for the smbCloud model types.
71
73
  test_files: []
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.4.2