getargv 0.3.9-universal-darwin → 0.3.10-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 +4 -4
- data/Gemfile.lock +1 -1
- data/LICENSE.txt +1 -1
- data/checksums/getargv-0.3.10-universal-darwin.gem.sha512 +1 -0
- data/ext/getargv_ruby/getargv_ruby.c +2 -2
- data/ext/getargv_ruby/getargv_ruby.h +13 -3
- data/lib/getargv_ruby/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71a580bfc3315c6589cf21ceeaaca32f9d5849fd10a91c4ca39d1596db7486b8
|
4
|
+
data.tar.gz: 1f4c30dde187a79dc9540f84e57a8db0ae2ae4fdf54fefbc99850c7f56b3237d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9a7cfa5f994eea80a9f50d017e9a1bf6748548f7777a500060e1a4bade6d1063e847b16eb3cc8df1186b8db7abed7a4590c6366254e235a38e969f7e0d798be
|
7
|
+
data.tar.gz: b39aa9553f1656542a62bea0ac24b8cb265f8888c1c84d1b37a175efa7689900552dd19f197721262592c0feddf73e714bd3b9b2b571e0bb82d2e20bd24c23a3
|
data/Gemfile.lock
CHANGED
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
|
@@ -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
|
2
|
+
#define GETARGV_RUBY_H
|
3
3
|
|
4
|
-
#include
|
5
|
-
#include
|
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 */
|
data/lib/getargv_ruby/version.rb
CHANGED
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.
|
4
|
+
version: 0.3.10
|
5
5
|
platform: universal-darwin
|
6
6
|
authors:
|
7
7
|
- Camden Narzt
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
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.
|
133
|
+
gem "getargv", "~> 0.3.10", 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,7 @@ 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
|
155
156
|
- checksums/getargv-0.3.2-universal-darwin.gem.sha512
|
156
157
|
- checksums/getargv-0.3.3-universal-darwin.gem.sha512
|
157
158
|
- checksums/getargv-0.3.4-universal-darwin.gem.sha512
|
@@ -202,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
203
|
requirements:
|
203
204
|
- macOS
|
204
205
|
- libgetargv installed
|
205
|
-
rubygems_version: 3.6.
|
206
|
+
rubygems_version: 3.6.7
|
206
207
|
specification_version: 4
|
207
208
|
summary: This gem allows you to query the arguments of other processes on macOS.
|
208
209
|
test_files: []
|