getargv 0.3.9-universal-darwin → 0.3.11-universal-darwin

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: 9d30b1845310bd8ee122a2beb39da76733d17423ed0efd4cb34a11d572372202
4
- data.tar.gz: e889b08cd36fd2e89290536a21ca628fb9fd5590fb5286aa22d7f493a6761036
3
+ metadata.gz: d3c2572fb40717f179c5cd5db1e5efd2306b770c90539ece9684073ffcaec32f
4
+ data.tar.gz: 68148a5b7639ee4d013db8ed99fe2a59121db3377a246ab784cfd0c42119a26d
5
5
  SHA512:
6
- metadata.gz: 228acdfab12a4f04710795114c8b0e197d6041f0b1562675ccc5bc6e90815722fe25150f739d009757e050709d7b7965e114dd59b32446b9a365d004b4710a11
7
- data.tar.gz: c64ac35485de5b71675314c67c7e1dbe338e9f42e013fcbb980f55e12f72fd7eeec706faafa40584b8798311983f757f71e6ec9b8f91aaeaffd7fb058437c406
6
+ metadata.gz: c0c8562a4e87d369a6d8be7f9faa5d4cd4d0cfa7ffa60e2fd21cda866919fee0d1043dc35d76eaa2a149f965f18eba03444ddbe5ac0d5c3610ad66bd9314b1e4
7
+ data.tar.gz: 99c14207797dd7752154c49d69d071e0a3807ec9705e6f6a6ca9a1691d7cd6fc446bdcdfcba13ca6db5e7df7ea924642b2df5d0229b65d22ce87495498d89c17
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getargv (0.3.9-universal-darwin)
4
+ getargv (0.3.11-universal-darwin)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  BSD 3-Clause License
2
2
 
3
- Copyright (c) 2022, 2023, 2024 Camden Narzt <getargv@narzt.cam>. All rights reserved.
3
+ Copyright (c) 2022, 2023, 2024, 2025 Camden Narzt <getargv@narzt.cam>. All rights reserved.
4
4
 
5
5
  Redistribution and use in source and binary forms, with or without
6
6
  modification, are permitted provided that the following conditions are met:
@@ -0,0 +1 @@
1
+ 79f730046a21f367317e8744ead8b6932d0e29d48201f91f52e0f8421ecd969133af648f065cf9fe0cf80d0be460ebebbdf8ce07bfb12ba524a6eebc29da822a
@@ -0,0 +1 @@
1
+ 9c40cb9434fb19f0b261cff362d025f5198551320152f5f96da6896c60df32a5a49cafeec8fde944c0b762413bfced770f19938e9f59fd0144b41baa6547c0ff
@@ -2,7 +2,7 @@
2
2
 
3
3
  // https://ruby-doc.org/3.2.0/extension_rdoc.html
4
4
 
5
- VALUE rb_mGetargv;
5
+ static VALUE rb_mGetargv;
6
6
 
7
7
  /*
8
8
  * call-seq:
@@ -26,7 +26,7 @@ VALUE rb_mGetargv;
26
26
  * Getargv.get_argv_of_pid(Process.pid, Encoding.default_external, true) #=> "ruby -e..."
27
27
  * Getargv.get_argv_of_pid(Process.pid, Encoding.default_external, false, 1) #=> "-e..."
28
28
  */
29
- static VALUE ruby_get_argv_of_pid(int argc, VALUE *argv, VALUE self) {
29
+ static VALUE ruby_get_argv_of_pid(int argc, const VALUE *argv, VALUE self) {
30
30
  rb_check_arity(argc, 2, 4);
31
31
  Check_Type(argv[0], T_FIXNUM);
32
32
  rb_pid_t pid = NUM2PIDT(argv[0]);
@@ -1,10 +1,20 @@
1
1
  #ifndef GETARGV_RUBY_H
2
- #define GETARGV_RUBY_H 1
2
+ #define GETARGV_RUBY_H
3
3
 
4
- #include "ruby.h"
5
- #include "ruby/encoding.h"
4
+ #include <ruby.h>
5
+ #include <ruby/encoding.h>
6
6
  #include <libgetargv.h>
7
7
  #include <stddef.h>
8
8
  #include <sys/errno.h>
9
9
 
10
+ #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
11
+ #if (__STDC_VERSION__ < 202311L)
12
+ #include <stdbool.h>
13
+ #endif
14
+ #else
15
+ typedef enum { false, true } bool;
16
+ #endif
17
+
18
+ void Init_getargv_ruby(void);
19
+
10
20
  #endif /* GETARGV_RUBY_H */
@@ -3,5 +3,5 @@
3
3
  module Getargv
4
4
  ##
5
5
  # The version of the gem
6
- VERSION = "0.3.9"
6
+ VERSION = "0.3.11"
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getargv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.11
5
5
  platform: universal-darwin
6
6
  authors:
7
7
  - Camden Narzt
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bump
@@ -130,7 +130,7 @@ description: |2
130
130
 
131
131
  To limit the getargv gem to Apple OSs add it to your Gemfile like so:
132
132
 
133
- gem "getargv", "~> 0.3.9", platforms: :ruby, install_if: RbConfig::CONFIG["host_os"].include?("darwin")
133
+ gem "getargv", "~> 0.3.11", platforms: :ruby, install_if: RbConfig::CONFIG["host_os"].include?("darwin")
134
134
  email:
135
135
  - getargv@narzt.cam
136
136
  executables: []
@@ -139,8 +139,8 @@ extensions:
139
139
  extra_rdoc_files:
140
140
  - README.md
141
141
  - ext/getargv_ruby/getargv_ruby.c
142
- - lib/getargv_ruby/version.rb
143
142
  - lib/getargv_ruby.rb
143
+ - lib/getargv_ruby/version.rb
144
144
  files:
145
145
  - ".standard.yml"
146
146
  - CHANGELOG.md
@@ -152,6 +152,8 @@ files:
152
152
  - checksums/getargv-0.1.0-x86_64-darwin-21.gem.sha512
153
153
  - checksums/getargv-0.2.0-universal-darwin.gem.sha512
154
154
  - checksums/getargv-0.3.0-universal-darwin.gem.sha512
155
+ - checksums/getargv-0.3.10-universal-darwin.gem.sha512
156
+ - checksums/getargv-0.3.11-universal-darwin.gem.sha512
155
157
  - checksums/getargv-0.3.2-universal-darwin.gem.sha512
156
158
  - checksums/getargv-0.3.3-universal-darwin.gem.sha512
157
159
  - checksums/getargv-0.3.4-universal-darwin.gem.sha512
@@ -202,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
204
  requirements:
203
205
  - macOS
204
206
  - libgetargv installed
205
- rubygems_version: 3.6.2
207
+ rubygems_version: 3.6.9
206
208
  specification_version: 4
207
209
  summary: This gem allows you to query the arguments of other processes on macOS.
208
210
  test_files: []