maxirmx_test_gem 0.1.2-x86_64-linux-musl → 0.1.9-x86_64-linux-musl

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: 21e9e79e7c2c68c35cdf1932bce43822139a9cf4cfd469e6a3f1ac4e1170c3db
4
- data.tar.gz: 0b1e12169c34a7492b42e74b7419a2a1c3189b9eaa7138090a3e88c9c090f271
3
+ metadata.gz: '04582fc5dca665ef49746e70974b4949fc976fc2d375439f5cca3509b92239bc'
4
+ data.tar.gz: ccda20fdb7d290c43acf265e9deac2f1fe90ddd56ad62e14ec06ec3145baf6e7
5
5
  SHA512:
6
- metadata.gz: 9f654218f9c2df40769c155ccc12def4c1a1c24bf51736849b9c6f603a41691b90a99fee5b01d91a6fd5c90f5c7df11b5f98025bc39f291434eb2df124da9a06
7
- data.tar.gz: 85af2fd2d66a939b9e285b91c21c28012a992e941e03cfc8308fbd4f39711b3eb0b6f2f0131335b6e6ee65bd87bbba331fdfc759b9487c5595bb99c0432a1ef2
6
+ metadata.gz: b8ee9ba07ac7b7b0e116f0f300d29b01d2759662fa8d46dab4f714b7299b84091ad5408014302da9acce6edf949c3875aba9274d2b58dd0dbdb674168a37e2a1
7
+ data.tar.gz: 9c51c0f5dd7c616ebb2eda6ff9cc6f3b5aa25d9a8a11d33c260c6a5d603502f7c2f9739dd2c3bb9cc8a4629ac145fddb5d9616a80796cdbfd3c7abf2c8729de2
@@ -0,0 +1,59 @@
1
+ name: build
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ ubuntu:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
16
+
17
+ - name: Install Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ bundler-cache: true
21
+ ruby-version: 3.3
22
+
23
+ - name: Install bundle
24
+ run: bundle install
25
+
26
+ - name: Build gem
27
+ run: bundle exec rake build
28
+
29
+ - uses: actions/upload-artifact@v4
30
+ with:
31
+ name: pkg-ruby
32
+ path: pkg/*.gem
33
+
34
+ - name: Build gem with native extension
35
+ run: |
36
+ rm pkg/*.gem
37
+ bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
38
+
39
+ alpine:
40
+ runs-on: ubuntu-latest
41
+ container:
42
+ image: alpine:latest
43
+
44
+ steps:
45
+ - name: Install packages
46
+ run: |
47
+ apk --no-cache --upgrade add build-base cmake git bash ruby-dev
48
+ git config --global --add safe.directory /__w/test-gem/test-gem
49
+
50
+ - name: Checkout
51
+ uses: actions/checkout@v4
52
+
53
+ - name: Install bundle
54
+ run: |
55
+ gem install bundler
56
+ bundle install
57
+
58
+ - name: Build gem with native extension
59
+ run: bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
@@ -0,0 +1,137 @@
1
+ name: release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ next_version:
7
+ description: |
8
+ Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
9
+ required: true
10
+ default: 'patch'
11
+ # push:
12
+ # tags: [ v* ]
13
+ permissions:
14
+ contents: write
15
+
16
+ jobs:
17
+ bump:
18
+ runs-on: ubuntu-22.04
19
+ steps:
20
+ - name: Checkout
21
+ uses: actions/checkout@v4
22
+
23
+ - uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: 3.3
26
+
27
+ - if: ${{ github.event_name == 'workflow_dispatch' }}
28
+ run: |
29
+ git config user.name maxirmx
30
+ git config user.email maxirmx@sw.consulting
31
+ gem install gem-release
32
+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git
33
+ gem bump --version ${{ github.event.inputs.next_version }} --tag --push
34
+
35
+ ubuntu:
36
+ runs-on: ubuntu-latest
37
+ needs: bump
38
+
39
+ steps:
40
+ - name: Checkout
41
+ uses: actions/checkout@v4
42
+
43
+ - name: Install Ruby
44
+ uses: ruby/setup-ruby@v1
45
+ with:
46
+ bundler-cache: true
47
+ ruby-version: 3.3
48
+
49
+ - name: Install bundle
50
+ run: bundle install
51
+
52
+ - name: Build gem
53
+ run: bundle exec rake build
54
+
55
+ - name: Upload artifacts
56
+ uses: actions/upload-artifact@v4
57
+ with:
58
+ name: pkg-ruby
59
+ path: pkg/*.gem
60
+ retention-days: 1
61
+
62
+ - name: Build gem with native extension
63
+ run: |
64
+ rm pkg/*.gem
65
+ bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
66
+
67
+ - name: Upload artifacts
68
+ uses: actions/upload-artifact@v4
69
+ with:
70
+ name: pkg-x86_64-linux
71
+ path: pkg/*.gem
72
+ retention-days: 1
73
+
74
+ alpine:
75
+ runs-on: ubuntu-latest
76
+ needs: bump
77
+ container:
78
+ image: alpine:latest
79
+
80
+ steps:
81
+ - name: Install packages
82
+ run: |
83
+ apk --no-cache --upgrade add build-base cmake git bash ruby-dev
84
+ git config --global --add safe.directory /__w/test-gem/test-gem
85
+
86
+ - name: Checkout
87
+ uses: actions/checkout@v4
88
+
89
+ - name: Install bundle
90
+ run: |
91
+ gem install bundler
92
+ bundle install
93
+
94
+ - name: Build gem with native extension
95
+ run: bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
96
+
97
+ - name: Upload artifacts
98
+ uses: actions/upload-artifact@v4
99
+ with:
100
+ name: pkg-x86_64-linux-musl
101
+ path: pkg/*.gem
102
+ retention-days: 1
103
+
104
+ publish:
105
+ runs-on: ubuntu-latest
106
+ needs: [ubuntu, alpine]
107
+ steps:
108
+ - name: Install Ruby
109
+ uses: ruby/setup-ruby@v1
110
+ with:
111
+ bundler-cache: true
112
+ ruby-version: 3.3
113
+
114
+ - name: Download artifacts
115
+ uses: actions/download-artifact@v4
116
+ with:
117
+ pattern: pkg-*
118
+ path: pkg
119
+
120
+ - name: List downloaded artifacts
121
+ run: find pkg -name "*.gem" | sort
122
+
123
+ - name: Publish to rubygems.org
124
+ env:
125
+ RUBYGEMS_API_KEY: ${{ secrets.MAXIRMX_TEST_GEM_API_KEY }}
126
+ run: |
127
+ mkdir -p ~/.gem
128
+ cat > ~/.gem/credentials << EOF
129
+ ---
130
+ :rubygems_api_key: ${RUBYGEMS_API_KEY}
131
+ EOF
132
+ chmod 0600 ~/.gem/credentials
133
+ gem signin
134
+ for gem in $(find pkg -name "*.gem"); do
135
+ echo "Publishing $gem"
136
+ gem push $gem -V
137
+ done
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.bundle
10
+ *.so
11
+ *.o
12
+ *.a
13
+ mkmf.log
14
+ Gemfile.lock
15
+
16
+ .rspec_status
17
+ .vscode
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in maxirmx_test_gem.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rake-compiler"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022-2025 Maxim [maxirmx] Samsonov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,9 @@
1
+ [![Gem Version](https://badge.fury.io/rb/maxirmx_test_gem.svg)](https://badge.fury.io/rb/maxirmx_test_gem)
2
+
3
+ # maxirmx test gem
4
+
5
+ This is a test gem. Nothing interesting, folks.
6
+
7
+ ## License
8
+
9
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/extensiontask"
5
+ require "rspec/core/rake_task"
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ task build: :compile
10
+
11
+ Rake::ExtensionTask.new("maxirmx_test_gem") do |ext|
12
+ ext.lib_dir = "lib/maxirmx_test_gem"
13
+ end
14
+
15
+ task default: %i[compile spec]
16
+
17
+ desc "Build pre-compiled gem for the #{RUBY_PLATFORM} platform"
18
+ task "gem:native:#{RUBY_PLATFORM}" do
19
+ sh "rake compile platform:#{RUBY_PLATFORM} gem target_platform=#{RUBY_PLATFORM}"
20
+ end
21
+
22
+ desc "Build pre-compiled gem for #{RUBY_PLATFORM} platform (internal task)"
23
+ task "platform:#{RUBY_PLATFORM}" do
24
+ spec = Gem::Specification::load("maxirmx_test_gem.gemspec").dup
25
+ spec.platform = Gem::Platform.new(RUBY_PLATFORM)
26
+ spec.files += Dir.glob("lib/maxirmx_test_gem/*.{dll,so,dylib}")
27
+ spec.extensions = []
28
+
29
+ task = Gem::PackageTask.new(spec)
30
+ task.define
31
+ end
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "maxirmx_test_gem"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,20 @@
1
+ #include "maxirmx_test_gem.h"
2
+
3
+ using namespace Rice;
4
+
5
+ class Hello
6
+ {
7
+ public:
8
+ Hello() { };
9
+ std::string hello() { return "=== Hello ==="; };
10
+ };
11
+
12
+ extern "C"
13
+ void Init_maxirmx_test_gem(void)
14
+ {
15
+ Module rb_mTestGem = define_module("TestGem");
16
+ Data_Type<Hello> rb_cHello =
17
+ define_class_under<Hello>(rb_mTestGem, "Hello")
18
+ .define_constructor(Constructor<Hello>())
19
+ .define_method("hello", &Hello::hello);
20
+ }
@@ -0,0 +1,7 @@
1
+ #ifndef MAXIRMX_TEST_GEM_H
2
+ #define MAXIRMX_TEST_GEM_H 1
3
+
4
+ #include <rice/rice.hpp>
5
+ #include <rice/stl.hpp>
6
+
7
+ #endif /* MAXIRMX_TEST_GEM_H */
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TestGem
4
+ VERSION = "0.1.9"
5
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "maxirmx_test_gem/version"
4
+ require_relative "maxirmx_test_gem/maxirmx_test_gem"
5
+
6
+ module TestGem
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/maxirmx_test_gem/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "maxirmx_test_gem"
7
+ spec.version = TestGem::VERSION
8
+ spec.authors = ["Maxim [maxirmx] Samsonov"]
9
+ spec.email = ["maxirmx@sw.consulting"]
10
+
11
+ spec.summary = "Test gem"
12
+ spec.description = "Test gem"
13
+ spec.homepage = "https://github.com/sw-consulting/maxirmx_test_gem"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
16
+
17
+
18
+ spec.metadata["homepage_uri"] = spec.homepage
19
+ spec.metadata["source_code_uri"] = spec.homepage
20
+
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
23
+ end
24
+ spec.test_files = `git ls-files -- {spec}/*`.split("\n")
25
+
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+ spec.extensions = ["ext/maxirmx_test_gem/extconf.rb"]
30
+
31
+ spec.add_runtime_dependency "rice", "~> 4.0"
32
+
33
+ spec.add_development_dependency "rspec", "~> 3.11"
34
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxirmx_test_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.9
5
5
  platform: x86_64-linux-musl
6
6
  authors:
7
7
  - Maxim [maxirmx] Samsonov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-03 00:00:00.000000000 Z
11
+ date: 2025-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.4
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.4
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,21 +38,35 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.11'
41
- description: Test gem to validate musl-compatible packaging
41
+ description: Test gem
42
42
  email:
43
- - m.samsonov@computer.org
43
+ - maxirmx@sw.consulting
44
44
  executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - ".github/workflows/build.yml"
49
+ - ".github/workflows/release.yml"
50
+ - ".gitignore"
51
+ - Gemfile
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - bin/console
56
+ - bin/setup
48
57
  - ext/maxirmx_test_gem/extconf.rb
58
+ - ext/maxirmx_test_gem/maxirmx_test_gem.cpp
59
+ - ext/maxirmx_test_gem/maxirmx_test_gem.h
60
+ - lib/maxirmx_test_gem.rb
49
61
  - lib/maxirmx_test_gem/maxirmx_test_gem.so
50
- homepage: https://github.com/maxirmx/maxirmx_test_gem
62
+ - lib/maxirmx_test_gem/version.rb
63
+ - maxirmx_test_gem.gemspec
64
+ homepage: https://github.com/sw-consulting/maxirmx_test_gem
51
65
  licenses:
52
66
  - MIT
53
67
  metadata:
54
- homepage_uri: https://github.com/maxirmx/maxirmx_test_gem
55
- source_code_uri: https://github.com/maxirmx/maxirmx_test_gem
68
+ homepage_uri: https://github.com/sw-consulting/maxirmx_test_gem
69
+ source_code_uri: https://github.com/sw-consulting/maxirmx_test_gem
56
70
  post_install_message:
57
71
  rdoc_options: []
58
72
  require_paths:
@@ -68,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
82
  - !ruby/object:Gem::Version
69
83
  version: '0'
70
84
  requirements: []
71
- rubygems_version: 3.3.7
85
+ rubygems_version: 3.5.22
72
86
  signing_key:
73
87
  specification_version: 4
74
88
  summary: Test gem