Skip to content

Commit

Permalink
Bump to v0.9.62
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks committed Feb 6, 2023
1 parent 74ce0c2 commit 0539b20
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 40 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 9 additions & 13 deletions book/src/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Creating a new gem

The easiest way to create a new gem is to use the `bundle gem` command. This
will scaffold a new Rust gem using `rb-sys` and `magnus`.
The easiest way to create a new gem is to use the `bundle gem` command. This will scaffold a new Rust gem using `rb-sys`
and `magnus`.

1. Install a Rust toolchain (if needed)

Expand All @@ -23,26 +23,22 @@ will scaffold a new Rust gem using `rb-sys` and `magnus`.
$ bundle gem --ext=rust my_gem_name
```

This will create a new gem in the `my_gem_name` directory. Firstly, open up
`my_gem_name.gemspec` in your text editor and make sure you update all fields
that contain `TODO`. Inside the directly, you should now have a fully working
Rust gem.
This will create a new gem in the `my_gem_name` directory. Firstly, open up `my_gem_name.gemspec` in your text editor
and make sure you update all fields that contain `TODO`. Inside the directly, you should now have a fully working Rust
gem.

> **💡 Tip:** [Join the Slack channel][slack] to ask questions and get help from
> the community!
> **💡 Tip:** [Join the Slack channel][slack] to ask questions and get help from the community!

## Building the gem and running tests

The default Rake task is configured to compile the Rust code and run tests.
Simply run:
The default Rake task is configured to compile the Rust code and run tests. Simply run:

```
$ bundle exec rake
```
At this point you should start reading the docs
for [`magnus`][magnus] to get familiar with the API. It is design to be a safe
and idiomatic wrapper around the Ruby C API.
At this point you should start reading the docs for [`magnus`][magnus] to get familiar with the API. It is design to be
a safe and idiomatic wrapper around the Ruby C API.
## Next steps
Expand Down
2 changes: 1 addition & 1 deletion crates/rb-sys-build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rb-sys-build"
version = "0.9.61"
version = "0.9.62"
edition = "2018"
description = "Build system for rb-sys"
homepage = "https://github.com/oxidize-rb/rb-sys"
Expand Down
2 changes: 1 addition & 1 deletion crates/rb-sys-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rb-sys-tests"
version = "0.9.61"
version = "0.9.62"
edition = "2018"
autotests = false
publish = false
Expand Down
4 changes: 2 additions & 2 deletions crates/rb-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
build = "build/main.rs"
name = "rb-sys"
version = "0.9.61"
version = "0.9.62"
edition = "2018"
readme = "readme.md"
categories = ["external-ffi-bindings"]
Expand All @@ -14,7 +14,7 @@ repository = "https://github.com/oxidize-rb/rb-sys"
rust-version = "1.51"

[build-dependencies]
rb-sys-build = { version = "0.9.61", path = "../rb-sys-build" }
rb-sys-build = { version = "0.9.62", path = "../rb-sys-build" }

[features]
default = []
Expand Down
6 changes: 3 additions & 3 deletions examples/rust_reverse/ext/rust_reverse/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/rust_reverse/ext/rust_reverse/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "rust_reverse"
version = "0.9.61"
version = "0.9.62"
autotests = true # set true if you want to use "cargo test"
edition = "2018"

[dependencies]
rb-sys = { version = "0.9.61", path = "./../../../../crates/rb-sys", features = ["global-allocator"] }
rb-sys = { version = "0.9.62", path = "./../../../../crates/rb-sys", features = ["global-allocator"] }

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion examples/rust_reverse/lib/rust_reverse/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RustReverse
VERSION = "0.9.61"
VERSION = "0.9.62"
end
2 changes: 1 addition & 1 deletion gem/lib/rb_sys/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RbSys
VERSION = "0.9.61"
VERSION = "0.9.62"
end
12 changes: 6 additions & 6 deletions rakelib/release.rake
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ namespace :release do

desc "Publish the crates and gems"
task :publish do
Dir.chdir("gem") do
sh "bundle exec rake release"
crates = ["rb-sys-build", "rb-sys"]

crates.each do |crate|
sh "cargo publish -p #{crate}"
end

["crates/rb-sys-build", "crates/rb-sys"].each do |dir|
Dir.chdir(dir) do
sh "cargo publish || true"
end
Dir.chdir("gem") do
sh "bundle exec rake release"
end

require_relative "./../gem/lib/rb_sys/version"
Expand Down
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ directory for automation purposes):

| Platform | Supported | Docker Image |
| ----------------- | --------- | ---------------------------------------------- |
| x86_64-linux || [`rbsys/x86_64-linux:0.9.61`][docker-hub] |
| x86_64-linux-musl || [`rbsys/x86_64-linux-musl:0.9.61`][docker-hub] |
| aarch64-linux || [`rbsys/aarch64-linux:0.9.61`][docker-hub] |
| arm-linux || [`rbsys/arm-linux:0.9.61`][docker-hub] |
| arm64-darwin || [`rbsys/arm64-darwin:0.9.61`][docker-hub] |
| x64-mingw32 || [`rbsys/x64-mingw32:0.9.61`][docker-hub] |
| x64-mingw-ucrt || [`rbsys/x64-mingw-ucrt:0.9.61`][docker-hub] |
| x86_64-linux || [`rbsys/x86_64-linux:0.9.62`][docker-hub] |
| x86_64-linux-musl || [`rbsys/x86_64-linux-musl:0.9.62`][docker-hub] |
| aarch64-linux || [`rbsys/aarch64-linux:0.9.62`][docker-hub] |
| arm-linux || [`rbsys/arm-linux:0.9.62`][docker-hub] |
| arm64-darwin || [`rbsys/arm64-darwin:0.9.62`][docker-hub] |
| x64-mingw32 || [`rbsys/x64-mingw32:0.9.62`][docker-hub] |
| x64-mingw-ucrt || [`rbsys/x64-mingw-ucrt:0.9.62`][docker-hub] |
| mswin || not available on Docker |

## Getting Help
Expand Down

0 comments on commit 0539b20

Please sign in to comment.