maxirmx_test_gem 0.1.2-x86_64-linux → 0.1.9-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f5f5319478804eb36c6071c6c35d98c9873bdf04775f1a5adebfc0c364f148e
4
- data.tar.gz: 6e23b29640a11072af4c40a0f0af2be7ee9f03e5b7e77dc2a90771fccf196cf8
3
+ metadata.gz: bb499012670c79d8d9aed1b9e6613858b2b5d829bf6cb3345353a1c15fe741cc
4
+ data.tar.gz: 4a0fdde4f7ef977c64d132b852908970b716d137fb9d38dc4870e9018c3479c1
5
5
  SHA512:
6
- metadata.gz: 9b8f9430aaffe28e959dbf04e1e6cbc8462e67d09e771dea2aafd3eab123347d89439aef69dbdc6373f4ec07568a8b38d83cdccf7a882ead40de830839373520
7
- data.tar.gz: 8830b26dddb3879f21004da8a34d6a925ddd79aa845d90cdb8f8b6447a8022052459a80f1352ca4415b25a0ddff1b3c6acbfb540999b91d0da3fb00bf52b3cb9
6
+ metadata.gz: 102b9a7e90600f1e4371cc9cde1639b3dcd3c8a207575494bcc5d577062a0558f1651ba9c364566dd86ad5fa74068e50bc2881a4147ff08502caab1db3b4514e
7
+ data.tar.gz: d2a96e8e48e2074430b8fa668f8a92d8692fd8237443d9f8c209f75c68d769f1c9a1ed72b6c98989ca31c1101772fa08d8be5c124a0487003ac6649dab48807e
@@ -2,6 +2,7 @@ name: build
2
2
 
3
3
  on:
4
4
  push:
5
+ branches: [ main ]
5
6
  pull_request:
6
7
  workflow_dispatch:
7
8
 
@@ -10,32 +11,30 @@ jobs:
10
11
  runs-on: ubuntu-latest
11
12
 
12
13
  steps:
13
- - uses: actions/checkout@v3
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
14
16
 
15
- - uses: ruby/setup-ruby@v1
17
+ - name: Install Ruby
18
+ uses: ruby/setup-ruby@v1
16
19
  with:
17
20
  bundler-cache: true
18
- ruby-version: 3.1
19
-
20
- - run: bundle install
21
+ ruby-version: 3.3
21
22
 
22
- - run: bundle exec rake build
23
+ - name: Install bundle
24
+ run: bundle install
23
25
 
24
- - uses: actions/upload-artifact@v2
26
+ - name: Build gem
27
+ run: bundle exec rake build
28
+
29
+ - uses: actions/upload-artifact@v4
25
30
  with:
26
31
  name: pkg-ruby
27
32
  path: pkg/*.gem
28
33
 
29
- - run: rm pkg/*.gem
30
-
31
- - run: bundle exec rake --tasks
32
-
33
- - run: bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
34
-
35
- - uses: actions/upload-artifact@v2
36
- with:
37
- name: pkg-x86_64-linux
38
- path: pkg/*.gem
34
+ - name: Build gem with native extension
35
+ run: |
36
+ rm pkg/*.gem
37
+ bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
39
38
 
40
39
  alpine:
41
40
  runs-on: ubuntu-latest
@@ -46,18 +45,15 @@ jobs:
46
45
  - name: Install packages
47
46
  run: |
48
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
49
 
50
- - uses: actions/checkout@v3
50
+ - name: Checkout
51
+ uses: actions/checkout@v4
51
52
 
52
- - run: gem install bundler
53
-
54
- - run: bundle install
55
-
56
- - run: bundle exec rake --tasks
57
-
58
- - run: bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
53
+ - name: Install bundle
54
+ run: |
55
+ gem install bundler
56
+ bundle install
59
57
 
60
- - uses: actions/upload-artifact@v2
61
- with:
62
- name: pkg-x86_64-linux-musl
63
- path: pkg/*.gem
58
+ - name: Build gem with native extension
59
+ run: bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
@@ -8,26 +8,28 @@ on:
8
8
  Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
9
9
  required: true
10
10
  default: 'patch'
11
- push:
12
- tags: [ v* ]
11
+ # push:
12
+ # tags: [ v* ]
13
+ permissions:
14
+ contents: write
13
15
 
14
16
  jobs:
15
17
  bump:
16
- runs-on: ubuntu-18.04
18
+ runs-on: ubuntu-22.04
17
19
  steps:
18
- - uses: actions/checkout@v2
19
- with:
20
- submodules: recursive
20
+ - name: Checkout
21
+ uses: actions/checkout@v4
21
22
 
22
23
  - uses: ruby/setup-ruby@v1
23
24
  with:
24
- ruby-version: '3.0'
25
+ ruby-version: 3.3
25
26
 
26
- - if: ${{ github.event_name == 'workflow_dispatch' }}
27
+ - if: ${{ github.event_name == 'workflow_dispatch' }}
27
28
  run: |
28
- git config user.name github-actions
29
- git config user.email github-actions@github.com
29
+ git config user.name maxirmx
30
+ git config user.email maxirmx@sw.consulting
30
31
  gem install gem-release
32
+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git
31
33
  gem bump --version ${{ github.event.inputs.next_version }} --tag --push
32
34
 
33
35
  ubuntu:
@@ -35,32 +37,39 @@ jobs:
35
37
  needs: bump
36
38
 
37
39
  steps:
38
- - uses: actions/checkout@v3
40
+ - name: Checkout
41
+ uses: actions/checkout@v4
39
42
 
40
- - uses: ruby/setup-ruby@v1
43
+ - name: Install Ruby
44
+ uses: ruby/setup-ruby@v1
41
45
  with:
42
46
  bundler-cache: true
43
- ruby-version: 3.1
44
-
45
- - run: bundle install
47
+ ruby-version: 3.3
48
+
49
+ - name: Install bundle
50
+ run: bundle install
46
51
 
47
- - run: bundle exec rake build
52
+ - name: Build gem
53
+ run: bundle exec rake build
48
54
 
49
- - uses: actions/upload-artifact@v2
55
+ - name: Upload artifacts
56
+ uses: actions/upload-artifact@v4
50
57
  with:
51
58
  name: pkg-ruby
52
59
  path: pkg/*.gem
60
+ retention-days: 1
53
61
 
54
- - run: rm pkg/*.gem
55
-
56
- - run: bundle exec rake --tasks
57
-
58
- - run: bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
62
+ - name: Build gem with native extension
63
+ run: |
64
+ rm pkg/*.gem
65
+ bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
59
66
 
60
- - uses: actions/upload-artifact@v2
67
+ - name: Upload artifacts
68
+ uses: actions/upload-artifact@v4
61
69
  with:
62
70
  name: pkg-x86_64-linux
63
71
  path: pkg/*.gem
72
+ retention-days: 1
64
73
 
65
74
  alpine:
66
75
  runs-on: ubuntu-latest
@@ -69,53 +78,51 @@ jobs:
69
78
  image: alpine:latest
70
79
 
71
80
  steps:
72
- - name: Install packages
73
- run: |
74
- apk --no-cache --upgrade add build-base cmake git bash ruby-dev
75
-
76
- - uses: actions/checkout@v3
77
-
78
- - run: gem install bundler
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
79
85
 
80
- - run: bundle install
86
+ - name: Checkout
87
+ uses: actions/checkout@v4
81
88
 
82
- - run: bundle exec rake --tasks
89
+ - name: Install bundle
90
+ run: |
91
+ gem install bundler
92
+ bundle install
83
93
 
84
- - run: bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
94
+ - name: Build gem with native extension
95
+ run: bundle exec rake gem:native:$(ruby -e "puts RUBY_PLATFORM")
85
96
 
86
- - uses: actions/upload-artifact@v2
87
- with:
88
- name: pkg-x86_64-linux-musl
89
- path: pkg/*.gem
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
90
103
 
91
104
  publish:
92
105
  runs-on: ubuntu-latest
93
106
  needs: [ubuntu, alpine]
94
107
  steps:
95
- - uses: actions/download-artifact@v2
108
+ - name: Install Ruby
109
+ uses: ruby/setup-ruby@v1
96
110
  with:
97
- name: pkg-ruby
98
- path: pkg
111
+ bundler-cache: true
112
+ ruby-version: 3.3
99
113
 
100
- - uses: actions/download-artifact@v2
114
+ - name: Download artifacts
115
+ uses: actions/download-artifact@v4
101
116
  with:
102
- name: pkg-x86_64-linux
117
+ pattern: pkg-*
103
118
  path: pkg
104
119
 
105
- - uses: actions/download-artifact@v2
106
- with:
107
- name: pkg-x86_64-linux-musl
108
- path: pkg
109
-
110
- - uses: ruby/setup-ruby@v1
111
- with:
112
- ruby-version: '3.1'
113
-
114
- - run: ls -l pkg/
120
+ - name: List downloaded artifacts
121
+ run: find pkg -name "*.gem" | sort
115
122
 
116
123
  - name: Publish to rubygems.org
117
124
  env:
118
- RUBYGEMS_API_KEY: ${{ secrets.MAXIRMX_RUBYGEM_API_KEY }}
125
+ RUBYGEMS_API_KEY: ${{ secrets.MAXIRMX_TEST_GEM_API_KEY }}
119
126
  run: |
120
127
  mkdir -p ~/.gem
121
128
  cat > ~/.gem/credentials << EOF
@@ -124,4 +131,7 @@ jobs:
124
131
  EOF
125
132
  chmod 0600 ~/.gem/credentials
126
133
  gem signin
127
- for gem in pkg/*.gem; do gem push $gem -V; done
134
+ for gem in $(find pkg -name "*.gem"); do
135
+ echo "Publishing $gem"
136
+ gem push $gem -V
137
+ done
data/.gitignore CHANGED
@@ -12,3 +12,6 @@
12
12
  *.a
13
13
  mkmf.log
14
14
  Gemfile.lock
15
+
16
+ .rspec_status
17
+ .vscode
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Maxim [maxirmx] Samsonov
3
+ Copyright (c) 2022-2025 Maxim [maxirmx] Samsonov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -4,36 +4,6 @@
4
4
 
5
5
  This is a test gem. Nothing interesting, folks.
6
6
 
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'maxirmx_test_gem'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install maxirmx_test_gem
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/maxirmx_test_gem.
36
-
37
7
  ## License
38
8
 
39
9
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -12,9 +12,9 @@ public:
12
12
  extern "C"
13
13
  void Init_maxirmx_test_gem(void)
14
14
  {
15
- Module rb_mMaxirmxTestGem = define_module("MaxirmxTestGem");
15
+ Module rb_mTestGem = define_module("TestGem");
16
16
  Data_Type<Hello> rb_cHello =
17
- define_class_under<Hello>(rb_mMaxirmxTestGem, "Hello")
17
+ define_class_under<Hello>(rb_mTestGem, "Hello")
18
18
  .define_constructor(Constructor<Hello>())
19
19
  .define_method("hello", &Hello::hello);
20
20
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module MaxirmxTestGem
4
- VERSION = "0.1.2"
3
+ module TestGem
4
+ VERSION = "0.1.9"
5
5
  end
@@ -3,7 +3,7 @@
3
3
  require_relative "maxirmx_test_gem/version"
4
4
  require_relative "maxirmx_test_gem/maxirmx_test_gem"
5
5
 
6
- module MaxirmxTestGem
6
+ module TestGem
7
7
  class Error < StandardError; end
8
8
  # Your code goes here...
9
9
  end
@@ -4,13 +4,13 @@ require_relative "lib/maxirmx_test_gem/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "maxirmx_test_gem"
7
- spec.version = MaxirmxTestGem::VERSION
7
+ spec.version = TestGem::VERSION
8
8
  spec.authors = ["Maxim [maxirmx] Samsonov"]
9
- spec.email = ["m.samsonov@computer.org"]
9
+ spec.email = ["maxirmx@sw.consulting"]
10
10
 
11
11
  spec.summary = "Test gem"
12
- spec.description = "Test gem to validate musl-compatible packaging"
13
- spec.homepage = "https://github.com/maxirmx/maxirmx_test_gem"
12
+ spec.description = "Test gem"
13
+ spec.homepage = "https://github.com/sw-consulting/maxirmx_test_gem"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
16
16
 
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.require_paths = ["lib"]
29
29
  spec.extensions = ["ext/maxirmx_test_gem/extconf.rb"]
30
30
 
31
- spec.add_runtime_dependency "rice", "~> 4.0.4"
31
+ spec.add_runtime_dependency "rice", "~> 4.0"
32
32
 
33
33
  spec.add_development_dependency "rspec", "~> 3.11"
34
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
6
6
  authors:
7
7
  - Maxim [maxirmx] Samsonov
8
- autorequire:
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,9 +38,9 @@ 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: []
@@ -61,13 +61,13 @@ files:
61
61
  - lib/maxirmx_test_gem/maxirmx_test_gem.so
62
62
  - lib/maxirmx_test_gem/version.rb
63
63
  - maxirmx_test_gem.gemspec
64
- homepage: https://github.com/maxirmx/maxirmx_test_gem
64
+ homepage: https://github.com/sw-consulting/maxirmx_test_gem
65
65
  licenses:
66
66
  - MIT
67
67
  metadata:
68
- homepage_uri: https://github.com/maxirmx/maxirmx_test_gem
69
- source_code_uri: https://github.com/maxirmx/maxirmx_test_gem
70
- post_install_message:
68
+ homepage_uri: https://github.com/sw-consulting/maxirmx_test_gem
69
+ source_code_uri: https://github.com/sw-consulting/maxirmx_test_gem
70
+ post_install_message:
71
71
  rdoc_options: []
72
72
  require_paths:
73
73
  - lib
@@ -82,8 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.3.7
86
- signing_key:
85
+ rubygems_version: 3.5.22
86
+ signing_key:
87
87
  specification_version: 4
88
88
  summary: Test gem
89
89
  test_files: []