hello_rusty_world 0.1.0-x86_64-linux → 0.1.1-x86_64-linux
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 +4 -4
- data/.devcontainer/Dockerfile +29 -0
- data/.devcontainer/devcontainer.json +18 -0
- data/CODE_OF_CONDUCT.md +5 -1
- data/LICENSE.txt +1 -1
- data/README.md +5 -5
- data/Rakefile +12 -5
- data/compose.yml +12 -0
- data/docker/dev/Dockerfile +40 -0
- data/lib/hello_rusty_world/3.4/hello_rusty_world.so +0 -0
- data/lib/hello_rusty_world/4.0/hello_rusty_world.so +0 -0
- data/lib/hello_rusty_world/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 666048183283f7db3fb74af2d60f899c32d2d024522eeca5ee3760ff1c0e9952
|
|
4
|
+
data.tar.gz: f2559a90a98d9ca613eade4e11f299b0ff45ea00bbeb07d3ee3701bc133a9089
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cee404c9f7aae2b326b2199595c48a72cab32972d6b568311c867ac39d1e753201e84877ed22171925a0320d00e410bbf2c1e4b0cf10c20505e9e3faefeb6e5f
|
|
7
|
+
data.tar.gz: 33bb95ea4cb075ee87a6d99a655fa18c36859c091db7559016c11b49bd2877ba27a5b78d7224320e1ee069daa4fa55f9e186d6e911d0fbb7e7abfefe6b3bb801
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
FROM ruby:3.4
|
|
2
|
+
|
|
3
|
+
ARG USERNAME=developer
|
|
4
|
+
ARG USER_UID=1000
|
|
5
|
+
ARG USER_GID=1000
|
|
6
|
+
|
|
7
|
+
RUN apt-get update && apt-get install -y \
|
|
8
|
+
build-essential \
|
|
9
|
+
pkg-config \
|
|
10
|
+
curl \
|
|
11
|
+
git \
|
|
12
|
+
clang \
|
|
13
|
+
cmake \
|
|
14
|
+
musl-tools \
|
|
15
|
+
gcc-aarch64-linux-gnu \
|
|
16
|
+
g++-aarch64-linux-gnu \
|
|
17
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
18
|
+
|
|
19
|
+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
20
|
+
|
|
21
|
+
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
22
|
+
|
|
23
|
+
RUN rustup target add \
|
|
24
|
+
x86_64-unknown-linux-gnu \
|
|
25
|
+
aarch64-unknown-linux-gnu \
|
|
26
|
+
x86_64-unknown-linux-musl \
|
|
27
|
+
aarch64-unknown-linux-musl
|
|
28
|
+
|
|
29
|
+
WORKDIR /workspace
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hello-rusty-world-dev",
|
|
3
|
+
"dockerComposeFile": "../compose.yml",
|
|
4
|
+
"service": "dev",
|
|
5
|
+
"workspaceFolder": "/workspace",
|
|
6
|
+
|
|
7
|
+
"customizations": {
|
|
8
|
+
"vscode": {
|
|
9
|
+
"extensions": [
|
|
10
|
+
"rust-lang.rust-analyzer",
|
|
11
|
+
"Shopify.ruby-lsp",
|
|
12
|
+
"GitHub.copilot"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
"remoteUser": "developer"
|
|
18
|
+
}
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -7,4 +7,8 @@
|
|
|
7
7
|
* When interpreting the words and actions of others, participants should always assume good intentions.
|
|
8
8
|
* Behaviour which can be reasonably considered harassment will not be tolerated.
|
|
9
9
|
|
|
10
|
-
If you have
|
|
10
|
+
If you have concerns about behaviour within this project, please open an issue at:
|
|
11
|
+
|
|
12
|
+
https://github.com/kanutocd/cdc-core/issues/new
|
|
13
|
+
|
|
14
|
+
Please note that GitHub issues are public. Do not include sensitive personal information in your report.
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -15,18 +15,18 @@ The Ruby surface lives in `lib/hello_rusty_world`. The Rust extension lives in
|
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
|
-
TODO: Replace `
|
|
18
|
+
TODO: Replace `hello_rusty_world` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
|
19
19
|
|
|
20
20
|
Install the gem and add to the application's Gemfile by executing:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
bundle add
|
|
23
|
+
bundle add hello_rusty_world
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
gem install
|
|
29
|
+
gem install hello_rusty_world
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Usage
|
|
@@ -99,7 +99,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
99
99
|
|
|
100
100
|
## Contributing
|
|
101
101
|
|
|
102
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
102
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kanutocd/hello_rusty_world. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/kanutocd/hello_rusty_world/blob/main/CODE_OF_CONDUCT.md).
|
|
103
103
|
|
|
104
104
|
## License
|
|
105
105
|
|
|
@@ -107,4 +107,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
107
107
|
|
|
108
108
|
## Code of Conduct
|
|
109
109
|
|
|
110
|
-
Everyone interacting in the HelloRustyWorld project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
|
110
|
+
Everyone interacting in the HelloRustyWorld project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kanutocd/hello_rusty_world/blob/main/CODE_OF_CONDUCT.md).
|
data/Rakefile
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "bundler/gem_tasks"
|
|
4
|
-
require "rspec/core/rake_task"
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
begin
|
|
6
|
+
require "rspec/core/rake_task"
|
|
7
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
8
|
+
rescue LoadError => e
|
|
9
|
+
task(:spec) { raise e }
|
|
10
|
+
end
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
begin
|
|
13
|
+
require "rubocop/rake_task"
|
|
14
|
+
RuboCop::RakeTask.new
|
|
15
|
+
rescue LoadError => e
|
|
16
|
+
task(:rubocop) { raise e }
|
|
17
|
+
end
|
|
11
18
|
|
|
12
19
|
require "rb_sys/extensiontask"
|
|
13
20
|
require "rake/clean"
|
data/compose.yml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
FROM ruby:3.4
|
|
2
|
+
|
|
3
|
+
ARG USERNAME=developer
|
|
4
|
+
ARG USER_UID=1000
|
|
5
|
+
ARG USER_GID=1000
|
|
6
|
+
|
|
7
|
+
RUN apt-get update && apt-get install -y \
|
|
8
|
+
build-essential \
|
|
9
|
+
pkg-config \
|
|
10
|
+
curl \
|
|
11
|
+
git \
|
|
12
|
+
clang \
|
|
13
|
+
cmake \
|
|
14
|
+
musl-tools \
|
|
15
|
+
gcc-aarch64-linux-gnu \
|
|
16
|
+
g++-aarch64-linux-gnu \
|
|
17
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
18
|
+
|
|
19
|
+
# Rust
|
|
20
|
+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
21
|
+
|
|
22
|
+
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
23
|
+
|
|
24
|
+
RUN rustup target add \
|
|
25
|
+
x86_64-unknown-linux-gnu \
|
|
26
|
+
aarch64-unknown-linux-gnu \
|
|
27
|
+
x86_64-unknown-linux-musl \
|
|
28
|
+
aarch64-unknown-linux-musl
|
|
29
|
+
|
|
30
|
+
RUN groupadd --gid ${USER_GID} ${USERNAME}
|
|
31
|
+
RUN useradd --uid ${USER_UID} \
|
|
32
|
+
--gid ${USER_GID} \
|
|
33
|
+
--create-home \
|
|
34
|
+
${USERNAME}
|
|
35
|
+
|
|
36
|
+
WORKDIR /workspace
|
|
37
|
+
|
|
38
|
+
USER ${USERNAME}
|
|
39
|
+
|
|
40
|
+
CMD ["bash"]
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hello_rusty_world
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: x86_64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Ken C. Demanawa
|
|
@@ -10,18 +10,22 @@ bindir: exe
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2026-06-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
13
|
+
description: A Hello World Ruby Gem with Rust extension
|
|
14
14
|
email:
|
|
15
15
|
- kenneth.c.demanawa@gmail.com
|
|
16
16
|
executables: []
|
|
17
17
|
extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
|
19
19
|
files:
|
|
20
|
+
- ".devcontainer/Dockerfile"
|
|
21
|
+
- ".devcontainer/devcontainer.json"
|
|
20
22
|
- CHANGELOG.md
|
|
21
23
|
- CODE_OF_CONDUCT.md
|
|
22
24
|
- LICENSE.txt
|
|
23
25
|
- README.md
|
|
24
26
|
- Rakefile
|
|
27
|
+
- compose.yml
|
|
28
|
+
- docker/dev/Dockerfile
|
|
25
29
|
- lib/hello_rusty_world.rb
|
|
26
30
|
- lib/hello_rusty_world/3.4/hello_rusty_world.so
|
|
27
31
|
- lib/hello_rusty_world/4.0/hello_rusty_world.so
|
|
@@ -55,5 +59,5 @@ requirements: []
|
|
|
55
59
|
rubygems_version: 3.5.23
|
|
56
60
|
signing_key:
|
|
57
61
|
specification_version: 4
|
|
58
|
-
summary:
|
|
62
|
+
summary: A Hello World Ruby Gem with Rust extension
|
|
59
63
|
test_files: []
|