getargv 0.3.0-universal-darwin → 0.3.2-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: 2322eb1493c8417628f9bbad0992e5cf3e832a34288f696f3e0bdc3e89f013e9
4
- data.tar.gz: 2cd45cb20c6f866e02870e5d2a31e5f47f66eb661a48943b304d2972d44d86bc
3
+ metadata.gz: 3e96a8e966aba77c4866aa2b4b5bfb2510649104e2d1f420177756a03537f114
4
+ data.tar.gz: 2439eb33bc7b2a88151452ba304a1e5e60dec8759bb44bdbdf5b6276e0509094
5
5
  SHA512:
6
- metadata.gz: 9c25871ce6640727c3a65fc4ee1b4169cccf78561f663d4e8f89a119d5458e9e517fd400acbf8b82390c6820d1cd7b157be85f2ffe61a2802ea6faae38b6a62d
7
- data.tar.gz: d569a6f6d9445c6b1612f9040b78c4e67d84bec93478f118cbf86897882693332b1ff11160c526a0ed2efd78218e7c1bdefc2eb00dafc49295bd241e71ada5a3
6
+ metadata.gz: '08b15f84a44de63fa95d6f7bf4ba1ae30f31088ea125461e850e018502f444a6b6cba5fbd4752ad2314c6c45c366b83217900e0aa6ad90ca292bd0c2d54c3f57'
7
+ data.tar.gz: 5e244ee6ba33536dff1ac56730aa324e31a735e9ba7e06700a8b459350847a6310c428414cf0d0b0e54035517bea986bfd03b2d2c0fef555b4282d31bd4b1f28
data/CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
- ## [Unreleased]
1
+ ## [0.3.1] - Unreleased
2
+
3
+ - Fix type signatures that changed in 0.3.0.
4
+
5
+ ## [0.3.0] - 2023-03-08
6
+
7
+ - Add RBS type signatures.
8
+ - Use libgetargv-provided free_* functions to protect against alternate compilers.
9
+ - Require user to pass in encoding for string-producing functions.
10
+
11
+ ## [0.2.0] - 2023-01-05
2
12
 
3
13
  - Adjust platform in gemspec to allow any darwin plaftorm
4
14
 
data/Gemfile.lock CHANGED
@@ -1,109 +1,123 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getargv (0.3.0-universal-darwin)
4
+ getargv (0.3.2-universal-darwin)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
10
  backport (1.2.0)
11
- benchmark (0.2.1)
11
+ benchmark (0.3.0)
12
+ bump (0.10.0)
12
13
  diff-lcs (1.5.0)
13
14
  e2mmap (0.1.0)
14
- jaro_winkler (1.5.4)
15
- json (2.6.3)
15
+ jaro_winkler (1.5.6)
16
+ json (2.7.1)
16
17
  kramdown (2.4.0)
17
18
  rexml
18
19
  kramdown-parser-gfm (1.1.0)
19
20
  kramdown (~> 2.0)
20
- language_server-protocol (3.17.0.2)
21
- minitest (5.17.0)
22
- nokogiri (1.14.0-arm64-darwin)
21
+ language_server-protocol (3.17.0.3)
22
+ lint_roller (1.1.0)
23
+ minitest (5.20.0)
24
+ nokogiri (1.16.0-arm64-darwin)
23
25
  racc (~> 1.4)
24
- nokogiri (1.14.0-x86_64-darwin)
26
+ nokogiri (1.16.0-x86_64-darwin)
25
27
  racc (~> 1.4)
26
- parallel (1.22.1)
27
- parser (3.2.0.0)
28
+ parallel (1.24.0)
29
+ parser (3.2.2.4)
28
30
  ast (~> 2.4.1)
29
- psych (5.0.1)
31
+ racc
32
+ psych (5.1.2)
30
33
  stringio
31
- racc (1.6.2)
34
+ racc (1.7.3)
32
35
  rainbow (3.1.1)
33
- rake (13.0.6)
34
- rake-compiler (1.2.1)
36
+ rake (13.1.0)
37
+ rake-compiler (1.2.5)
35
38
  rake
36
- rbs (2.8.3)
37
- rdoc (6.5.0)
39
+ rbs (2.8.4)
40
+ rdoc (6.6.2)
38
41
  psych (>= 4.0.0)
39
- regexp_parser (2.6.1)
42
+ regexp_parser (2.8.3)
40
43
  reverse_markdown (2.1.1)
41
44
  nokogiri
42
- rexml (3.2.5)
43
- rubocop (1.42.0)
45
+ rexml (3.2.6)
46
+ rubocop (1.59.0)
44
47
  json (~> 2.3)
48
+ language_server-protocol (>= 3.17.0)
45
49
  parallel (~> 1.10)
46
- parser (>= 3.1.2.1)
50
+ parser (>= 3.2.2.4)
47
51
  rainbow (>= 2.2.2, < 4.0)
48
52
  regexp_parser (>= 1.8, < 3.0)
49
53
  rexml (>= 3.2.5, < 4.0)
50
- rubocop-ast (>= 1.24.1, < 2.0)
54
+ rubocop-ast (>= 1.30.0, < 2.0)
51
55
  ruby-progressbar (~> 1.7)
52
- unicode-display_width (>= 1.4.0, < 3.0)
53
- rubocop-ast (1.24.1)
54
- parser (>= 3.1.1.0)
55
- rubocop-performance (1.15.2)
56
- rubocop (>= 1.7.0, < 2.0)
57
- rubocop-ast (>= 0.4.0)
58
- ruby-progressbar (1.11.0)
59
- sdoc (2.6.0)
56
+ unicode-display_width (>= 2.4.0, < 3.0)
57
+ rubocop-ast (1.30.0)
58
+ parser (>= 3.2.1.0)
59
+ rubocop-performance (1.20.1)
60
+ rubocop (>= 1.48.1, < 2.0)
61
+ rubocop-ast (>= 1.30.0, < 2.0)
62
+ ruby-progressbar (1.13.0)
63
+ sdoc (2.6.1)
60
64
  rdoc (>= 5.0)
61
- solargraph (0.48.0)
65
+ solargraph (0.50.0)
62
66
  backport (~> 1.2)
63
67
  benchmark
64
- bundler (>= 1.17.2)
68
+ bundler (~> 2.0)
65
69
  diff-lcs (~> 1.4)
66
70
  e2mmap
67
71
  jaro_winkler (~> 1.5)
68
72
  kramdown (~> 2.3)
69
73
  kramdown-parser-gfm (~> 1.1)
70
74
  parser (~> 3.0)
71
- reverse_markdown (>= 1.0.5, < 3)
72
- rubocop (>= 0.52)
75
+ rbs (~> 2.0)
76
+ reverse_markdown (~> 2.0)
77
+ rubocop (~> 1.38)
73
78
  thor (~> 1.0)
74
79
  tilt (~> 2.0)
75
80
  yard (~> 0.9, >= 0.9.24)
76
- standard (1.21.1)
81
+ standard (1.33.0)
77
82
  language_server-protocol (~> 3.17.0.2)
78
- rubocop (= 1.42.0)
79
- rubocop-performance (= 1.15.2)
80
- stringio (3.0.4)
81
- thor (1.2.1)
82
- tilt (2.0.11)
83
- unicode-display_width (2.4.2)
84
- webrick (1.7.0)
85
- yard (0.9.28)
86
- webrick (~> 1.7.0)
83
+ lint_roller (~> 1.0)
84
+ rubocop (~> 1.59.0)
85
+ standard-custom (~> 1.0.0)
86
+ standard-performance (~> 1.3)
87
+ standard-custom (1.0.2)
88
+ lint_roller (~> 1.0)
89
+ rubocop (~> 1.50)
90
+ standard-performance (1.3.0)
91
+ lint_roller (~> 1.1)
92
+ rubocop-performance (~> 1.20.1)
93
+ stringio (3.1.0)
94
+ thor (1.3.0)
95
+ tilt (2.3.0)
96
+ unicode-display_width (2.5.0)
97
+ yard (0.9.34)
87
98
 
88
99
  PLATFORMS
89
100
  arm64-darwin-19
90
101
  arm64-darwin-20
91
102
  arm64-darwin-21
92
103
  arm64-darwin-22
104
+ arm64-darwin-23
93
105
  x86_64-darwin-19
94
106
  x86_64-darwin-20
95
107
  x86_64-darwin-21
96
108
  x86_64-darwin-22
109
+ x86_64-darwin-23
97
110
 
98
111
  DEPENDENCIES
112
+ bump (~> 0.10)
99
113
  getargv!
100
- minitest (~> 5.0)
101
- rake (~> 13.0)
114
+ minitest (~> 5.20)
115
+ rake (~> 13.1)
102
116
  rake-compiler
103
117
  rbs
104
118
  sdoc
105
119
  solargraph
106
- standard (~> 1.3)
120
+ standard (~> 1.33)
107
121
 
108
122
  BUNDLED WITH
109
- 2.3.26
123
+ 2.5.3
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <h1><img src="logo.svg" width="200" alt="getargv"></h1>
2
2
 
3
- [![Ruby](https://github.com/getargv/getargv_ruby/actions/workflows/main.yml/badge.svg)](https://github.com/getargv/getargv_ruby/actions/workflows/main.yml)
3
+ [![Ruby](https://github.com/getargv/getargv.rb/actions/workflows/main.yml/badge.svg)](https://github.com/getargv/getargv.rb/actions/workflows/main.yml)
4
4
  [![Gem Version](https://badge.fury.io/rb/getargv.svg)](https://badge.fury.io/rb/getargv)
5
5
 
6
6
  This gem allows you to query the arguments of other processes on macOS.
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/getargv/getargv_ruby.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/getargv/getargv.rb.
36
36
 
37
37
  ## License
38
38
 
data/Rakefile CHANGED
@@ -1,7 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "bump/tasks"
3
4
  require "bundler/gem_tasks"
5
+ require "rake/extensiontask"
4
6
  require "rake/testtask"
7
+ require "rdoc/task"
8
+ require "sdoc"
9
+ require "standard/rake"
5
10
 
6
11
  Rake::TestTask.new(:test) do |t|
7
12
  t.libs << "test"
@@ -9,21 +14,13 @@ Rake::TestTask.new(:test) do |t|
9
14
  t.test_files = FileList["test/**/test_*.rb"]
10
15
  end
11
16
 
12
- require "standard/rake"
13
-
14
- require "rake/extensiontask"
15
-
17
+ task default: %i[clobber compile test standard]
16
18
  task build: :compile
17
19
 
18
20
  Rake::ExtensionTask.new("getargv_ruby") do |ext|
19
21
  ext.lib_dir = "lib/getargv_ruby"
20
22
  end
21
23
 
22
- task default: %i[clobber compile test standard]
23
-
24
- require "sdoc"
25
- require "rdoc/task"
26
-
27
24
  RDoc::Task.new do |rdoc|
28
25
  rdoc.main = "README.md"
29
26
  rdoc.rdoc_dir = "doc"
@@ -0,0 +1 @@
1
+ 524fbd05c61b71c10687ace7b88d4bee13be100fe8465e2483c63beabfa68ec9d790833e3de90dd5d94a6b88d9a40e0c760a38f94b266e86de18ce2f82a61c5d
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- temporary_hack = "delete this line when https://github.com/testdouble/standard/pull/498 lands in a release" # rubocop:disable Lint/UselessAssignment
4
-
5
3
  def darwin_check
6
4
  require "pathname"
7
5
  src = $srcdir || __dir__ # standard:disable Style/GlobalVars
data/getargv_ruby.gemspec CHANGED
@@ -29,9 +29,9 @@ Gem::Specification.new do |spec|
29
29
  spec.requirements << "libgetargv installed"
30
30
 
31
31
  spec.metadata["homepage_uri"] = spec.homepage
32
- spec.metadata["source_code_uri"] = "https://github.com/getargv/getargv_ruby"
33
- spec.metadata["changelog_uri"] = "https://github.com/getargv/getargv_ruby/blob/CHANGELOG.md"
34
- spec.metadata["bug_tracker_uri"] = "https://github.com/getargv/getargv_ruby/issues"
32
+ spec.metadata["source_code_uri"] = "https://github.com/getargv/getargv.rb"
33
+ spec.metadata["changelog_uri"] = "https://github.com/getargv/getargv.rb/blob/CHANGELOG.md"
34
+ spec.metadata["bug_tracker_uri"] = "https://github.com/getargv/getargv.rb/issues"
35
35
  spec.metadata["funding_uri"] = "https://github.com/sponsors/CamJN"
36
36
  spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/getargv/Getargv"
37
37
 
@@ -56,13 +56,14 @@ Gem::Specification.new do |spec|
56
56
  spec.rdoc_options << "--inline-source"
57
57
  spec.rdoc_options << "--exclude=ext/*/extconf.rb"
58
58
 
59
- spec.add_development_dependency "rake", "~> 13.0"
59
+ spec.add_development_dependency "bump", "~> 0.10"
60
+ spec.add_development_dependency "minitest", "~> 5.20"
61
+ spec.add_development_dependency "rake", "~> 13.1"
60
62
  spec.add_development_dependency "rake-compiler"
61
- spec.add_development_dependency "minitest", "~> 5.0"
62
- spec.add_development_dependency "standard", "~> 1.3"
63
- spec.add_development_dependency "solargraph"
64
- spec.add_development_dependency "sdoc"
65
63
  spec.add_development_dependency "rbs"
64
+ spec.add_development_dependency "sdoc"
65
+ spec.add_development_dependency "solargraph"
66
+ spec.add_development_dependency "standard", "~> 1.33"
66
67
 
67
68
  # Uncomment to register a new dependency of your gem
68
69
  # spec.add_dependency "example-gem", "~> 1.0"
@@ -3,5 +3,5 @@
3
3
  module Getargv
4
4
  ##
5
5
  # The version of the gem
6
- VERSION = "0.3.0"
6
+ VERSION = "0.3.2"
7
7
  end
data/sig/getargv_ruby.rbs CHANGED
@@ -1,8 +1,8 @@
1
1
  # See the writing guide of rbs: https://github.com/ruby/rbs#guides
2
2
  module Getargv
3
3
  VERSION: String
4
- public def get_argv_and_argc_of_pid: (Integer pid) -> Array[String]
4
+ public def get_argv_and_argc_of_pid: (Integer pid, Encoding enc) -> Array[String]
5
5
  alias get_argv_of_pid_as_array get_argv_and_argc_of_pid
6
- public def get_argv_of_pid: (Integer pid, ?boolish nuls, ?Integer skip) -> String
6
+ public def get_argv_of_pid: (Integer pid, Encoding enc, ?boolish nuls, ?Integer skip) -> String
7
7
  alias get_argv_of_pid_as_string get_argv_of_pid
8
8
  end
metadata CHANGED
@@ -1,73 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getargv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: universal-darwin
6
6
  authors:
7
7
  - Camden Narzt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: bump
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '13.0'
19
+ version: '0.10'
20
20
  type: :development
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: '13.0'
26
+ version: '0.10'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake-compiler
28
+ name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '5.20'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '5.20'
41
41
  - !ruby/object:Gem::Dependency
42
- name: minitest
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.0'
47
+ version: '13.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '5.0'
54
+ version: '13.1'
55
55
  - !ruby/object:Gem::Dependency
56
- name: standard
56
+ name: rake-compiler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.3'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.3'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: solargraph
70
+ name: rbs
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rbs
98
+ name: solargraph
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: standard
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.33'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.33'
111
125
  description: |2
112
126
  Getargv is a gem that allows you to query the arguments of other processes as an array or string.
113
127
 
@@ -117,7 +131,7 @@ description: |2
117
131
 
118
132
  To limit the getargv gem to Apple OSs add it to your Gemfile like so:
119
133
 
120
- gem "getargv", "~> 0.3.0", platforms: :ruby, install_if: RbConfig::CONFIG["host_os"].include?("darwin")
134
+ gem "getargv", "~> 0.3.2", platforms: :ruby, install_if: RbConfig::CONFIG["host_os"].include?("darwin")
121
135
  email:
122
136
  - getargv@narzt.cam
123
137
  executables: []
@@ -138,6 +152,7 @@ files:
138
152
  - Rakefile
139
153
  - checksums/getargv-0.1.0-x86_64-darwin-21.gem.sha512
140
154
  - checksums/getargv-0.2.0-universal-darwin.gem.sha512
155
+ - checksums/getargv-0.3.0-universal-darwin.gem.sha512
141
156
  - ext/getargv_ruby/extconf.rb
142
157
  - ext/getargv_ruby/getargv_ruby.c
143
158
  - ext/getargv_ruby/getargv_ruby.h
@@ -151,9 +166,9 @@ licenses:
151
166
  - BSD-3-Clause
152
167
  metadata:
153
168
  homepage_uri: https://getargv.narzt.cam/
154
- source_code_uri: https://github.com/getargv/getargv_ruby
155
- changelog_uri: https://github.com/getargv/getargv_ruby/blob/CHANGELOG.md
156
- bug_tracker_uri: https://github.com/getargv/getargv_ruby/issues
169
+ source_code_uri: https://github.com/getargv/getargv.rb
170
+ changelog_uri: https://github.com/getargv/getargv.rb/blob/CHANGELOG.md
171
+ bug_tracker_uri: https://github.com/getargv/getargv.rb/issues
157
172
  funding_uri: https://github.com/sponsors/CamJN
158
173
  documentation_uri: https://rubydoc.info/gems/getargv/Getargv
159
174
  post_install_message:
@@ -181,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
196
  requirements:
182
197
  - macOS
183
198
  - libgetargv installed
184
- rubygems_version: 3.1.6
199
+ rubygems_version: 3.5.3
185
200
  signing_key:
186
201
  specification_version: 4
187
202
  summary: This gem allows you to query the arguments of other processes on macOS.