procfs2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9f375fcd2d93a0c3a12c604830459e97eda2d4c744b8e07287755dd034e32630
4
+ data.tar.gz: cad7c93a47748b62840015a1bceb80d9c731d32999f8c5ad322558173d4b5599
5
+ SHA512:
6
+ metadata.gz: 7dfdfe59866bf4783b82c0a22b8fdd9faae9bccec54fb118a59ef216775f2b7f8d4df4dbd0edbe2eea4b8eec57f791363e93ad8cb703c4f02a596552771a3dce
7
+ data.tar.gz: 25797138a244a267e4d8cf36959c4429c7a4d3d24369bfefefe97a8403fab419cbcc0d53950b44e710971b80ef323a1dd261463901f395601e841aee67886f86
data/.rubocop.yml ADDED
@@ -0,0 +1,24 @@
1
+ require:
2
+ - rubocop-minitest
3
+ - rubocop-rake
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 3.0
7
+ NewCops: enable
8
+
9
+ Gemspec/DevelopmentDependencies:
10
+ Enabled: false
11
+
12
+ Layout/LineLength:
13
+ Max: 100
14
+
15
+ Style/Documentation:
16
+ Enabled: false
17
+
18
+ # Style/StringLiterals:
19
+ # Enabled: true
20
+ # EnforcedStyle: double_quotes
21
+
22
+ # Style/StringLiteralsInInterpolation:
23
+ # Enabled: true
24
+ # EnforcedStyle: double_quotes
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Thomas Tych
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,64 @@
1
+ # Procfs2
2
+
3
+ Browse /proc fs on Linux.
4
+
5
+ This is a draft version.
6
+
7
+
8
+ ## Installation
9
+
10
+ Manual install, with:
11
+
12
+ $ gem install procfs2
13
+
14
+ Add to Gemfile with:
15
+
16
+ $ bundle add procfs2
17
+
18
+
19
+ ## Usage
20
+
21
+ This is a draft version.
22
+
23
+ It may change or not.
24
+
25
+ Comments / PR welcome !
26
+
27
+ Example of usage:
28
+
29
+ ``` ruby
30
+ @p = Procfs2.proc
31
+
32
+ puts @p
33
+ puts @p.version._path
34
+ puts @p.version._raw_content
35
+ puts @p.version.version
36
+ puts @p.version.timestamp
37
+
38
+ puts @p.pid('self').fd._path
39
+ puts @p.pid('self').fd.id(0)
40
+
41
+ puts @p.pid(1091714).fd.id(3).type
42
+ puts @p.pid(1091714).fd.select { |fd| fd.type == 'socket' }
43
+ puts @p.pid(1091714).fd.select { |fd| fd.type == 'socket' }.map { |fd| fd.inode }
44
+
45
+ puts @p.net.tcp.by_inode(2235042).id
46
+ puts @p.net.tcp.by_inode(2235042).remote_address
47
+ puts @p.net.tcp.by_inode(2235042).remote_port
48
+ puts @p.net.tcp.by_inode(2235042).state_str
49
+ ```
50
+
51
+
52
+ ## Contributing
53
+
54
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/procfs2.
55
+
56
+
57
+ ## References
58
+
59
+ - https://www.kernel.org/doc/html/latest/filesystems/proc.html
60
+
61
+
62
+ ## License
63
+
64
+ 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,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+
5
+ require 'minitest/test_task'
6
+ Minitest::TestTask.create
7
+
8
+ require 'rubocop/rake_task'
9
+ RuboCop::RakeTask.new
10
+
11
+ require 'bump/tasks'
12
+
13
+ task default: %i[test rubocop]
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Procfs2
4
+ class Error < StandardError
5
+ end
6
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'proc_module'
4
+ require_relative 'proc_version'
5
+ require_relative 'proc_pid'
6
+ require_relative 'proc_net'
7
+
8
+ module Procfs2
9
+ class Proc < ProcModule
10
+ attr_reader :root
11
+
12
+ def initialize(root:)
13
+ @root = root
14
+
15
+ super(parent: nil)
16
+ end
17
+
18
+ def _path
19
+ root.to_s
20
+ end
21
+
22
+ provide ProcVersion
23
+ provide ProcPid
24
+ provide ProcNet
25
+ end
26
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'proc_item'
4
+ require_relative 'proc_fd_id'
5
+
6
+ module Procfs2
7
+ class ProcFd < ProcItem
8
+ LABEL = :fd
9
+
10
+ def _load_content
11
+ @_data = []
12
+ Dir.foreach(_path) do |fd_entry|
13
+ next if ['.', '..'].include?(fd_entry)
14
+
15
+ fd_path = File.join(_path, fd_entry)
16
+ fd_stat = File.stat(fd_path)
17
+
18
+ @_data << ProcFdId.new(id: fd_entry, path: fd_path, stat: fd_stat)
19
+ end
20
+ end
21
+
22
+ def id(id)
23
+ return unless _data
24
+
25
+ _data.find { |element| element.id.to_s == id.to_s }
26
+ end
27
+
28
+ def each(&block)
29
+ _data&.each(&block)
30
+ end
31
+
32
+ include Enumerable
33
+ end
34
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Procfs2
4
+ class ProcFdId
5
+ attr_reader :id, :_path, :_stat
6
+
7
+ def initialize(id:, path:, stat:)
8
+ @id = id
9
+ @_path = path
10
+ @_stat = stat
11
+ end
12
+
13
+ def type
14
+ _stat&.ftype
15
+ end
16
+
17
+ def inode
18
+ _stat.ino
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Procfs2
4
+ class ProcItem
5
+ attr_reader :_parent, :_raw_content, :_data
6
+
7
+ def initialize(parent:)
8
+ @_parent = parent
9
+ @_data = nil
10
+
11
+ _initialize_content
12
+ end
13
+
14
+ def _filename
15
+ self.class::LABEL.to_s
16
+ end
17
+
18
+ def _path
19
+ File.join([_parent&._path, _filename].compact)
20
+ end
21
+
22
+ def _raw_content
23
+ @_raw_content ||= File.read(_path) if File.file?(_path)
24
+ @_raw_content ||= ''
25
+ @_raw_content
26
+ end
27
+
28
+ private
29
+
30
+ def _initialize_content
31
+ _load_content
32
+ _parse_content
33
+ end
34
+
35
+ def _load_content
36
+ raise Procfs2::Error, "proc resource at `#{_path}` does not exist" unless File.exist?(_path)
37
+
38
+ _raw_content
39
+ end
40
+
41
+ def _parse_content; end
42
+
43
+ def method_missing(method_name, *args, **kwargs)
44
+ return unless _data
45
+
46
+ return _data[method_name.to_sym] if _data.key?(method_name.to_sym)
47
+ return _data[method_name.to_s] if _data.key?(method_name.to_s)
48
+
49
+ super
50
+ end
51
+
52
+ class << self
53
+ def build(parent:)
54
+ new(parent: parent)
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'proc_item'
4
+
5
+ module Procfs2
6
+ class ProcModule < ProcItem
7
+ class << self
8
+ def provide(component, as: nil)
9
+ component_label = as || component::LABEL
10
+ define_method component_label do |*args, **kwargs|
11
+ component.build(*args, parent: self, **kwargs)
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'proc_module'
4
+ require_relative 'proc_net_tcp'
5
+
6
+ module Procfs2
7
+ class ProcNet < ProcModule
8
+ LABEL = :net
9
+
10
+ provide ProcNetTcp
11
+ end
12
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'proc_item'
4
+ require_relative 'proc_net_tcp_socket'
5
+
6
+ module Procfs2
7
+ class ProcNetTcp < ProcItem
8
+ LABEL = :tcp
9
+
10
+ def _load_content
11
+ @_data = []
12
+
13
+ lines = _raw_content.lines
14
+ lines.shift
15
+
16
+ @_data = lines.map { |socket_line| ProcNetTcpSocket.build_from_line(socket_line) }
17
+ end
18
+
19
+ def by_id(id)
20
+ @_data.find { |socket| socket.id == id.to_i }
21
+ end
22
+
23
+ def by_inode(inode)
24
+ @_data.find { |socket| socket.inode == inode.to_i }
25
+ end
26
+
27
+ def each(&block)
28
+ _data&.each(&block)
29
+ end
30
+
31
+ include Enumerable
32
+ end
33
+ end
@@ -0,0 +1,106 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Procfs2
4
+ class ProcNetTcpSocket
5
+ HEADERS = %i[
6
+ id
7
+ local_address_port
8
+ remote_address_port
9
+ state
10
+ transmit_receive_queue
11
+ timer_and_jiffies
12
+ unrecovered_rto_timeouts
13
+ uid
14
+ unanswered_0_window_probes
15
+ inode
16
+ socket_reference_count
17
+ socket_location
18
+ retransmit_timeout
19
+ soft_clock_predicted_tick
20
+ ack_pingpong
21
+ sending_congestion_window
22
+ slow_start_size_threshold
23
+ ].freeze
24
+
25
+ STATE_STR = {
26
+ 0 => 'UNKNOWN',
27
+ 1 => 'ESTABLISHED',
28
+ 2 => 'SYN',
29
+ 3 => 'SYN_RECV',
30
+ 4 => 'FIN_WAIT1',
31
+ 5 => 'FIN_WAIT2',
32
+ 6 => 'TIME_WAIT',
33
+ 7 => 'CLOSE',
34
+ 8 => 'CLOSE_WAIT',
35
+ 9 => 'LAST_ACK',
36
+ 10 => 'LISTEN',
37
+ 11 => 'CLOSING',
38
+ 12 => 'NEW_SYN_RECV',
39
+ 13 => 'MAX_STATE'
40
+ }.freeze
41
+
42
+ attr_reader :id, :local_address, :local_port, :remote_address, :remote_port, :state,
43
+ :transmit_queue, :receive_queue, :uid, :inode
44
+
45
+ def initialize(id:, local_address:, local_port:, remote_address:, remote_port:, state:,
46
+ transmit_queue:, receive_queue:, uid:, inode:, **extra)
47
+ @id = id
48
+ @local_address = local_address
49
+ @local_port = local_port
50
+ @remote_address = remote_address
51
+ @remote_port = remote_port
52
+ @state = state
53
+ @transmit_queue = transmit_queue
54
+ @receive_queue = receive_queue
55
+ @uid = uid
56
+ @inode = inode
57
+
58
+ @extra = extra
59
+ end
60
+
61
+ def type
62
+ 'tcp'
63
+ end
64
+
65
+ def state_str
66
+ STATE_STR[state]
67
+ end
68
+
69
+ class << self
70
+ def build_from_line(line)
71
+ info = HEADERS.zip(line.strip.split).to_h
72
+ options = {}
73
+
74
+ options[:id] = info[:id].chomp(':').to_i
75
+ options[:local_address], options[:local_port] = parse_address_hex(info[:local_address_port])
76
+ options[:remote_address], options[:remote_port] = parse_address_hex(info[:remote_address_port])
77
+ options[:state] = info[:state].hex
78
+ options[:transmit_queue], options[:receive_queue] = info[:transmit_receive_queue].split(':').map(&:hex)
79
+ options[:timer_active], options[:jiffries] = info[:timer_and_jiffies].split(':').map(&:hex)
80
+ options[:unrecovered_rto_timeouts] = info[:unrecovered_rto_timeouts].hex
81
+ options[:uid] = info[:uid].to_i
82
+ options[:unanswered_0_window_probes] = info[:unanswered_0_window_probes].hex
83
+ options[:inode] = info[:inode].to_i
84
+ options[:socket_reference_count] = info[:socket_reference_count].to_i
85
+ options[:socket_location] = info[:socket_location]
86
+ options[:retransmit_timeout] = info[:retransmit_timeout].to_i
87
+ options[:soft_clock_predicted_tick] = info[:soft_clock_predicted_tick].to_i
88
+ options[:ack_pingpong] = info[:ack_pingpong].to_i
89
+ options[:sending_congestion_window] = info[:sending_congestion_window].to_i
90
+ options[:slow_start_size_threshold] = info[:slow_start_size_threshold].to_i
91
+
92
+ new(**options)
93
+ end
94
+
95
+ def parse_address_hex(address_port_hex)
96
+ address_hex, port_hex = address_port_hex.split(':')
97
+ address = [address_hex[6..7],
98
+ address_hex[5..4],
99
+ address_hex[3..2],
100
+ address_hex[1..0]].map(&:hex).join('.')
101
+ port = port_hex.hex
102
+ [address, port]
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'proc_module'
4
+ require_relative 'proc_fd'
5
+
6
+ module Procfs2
7
+ class ProcPid < ProcModule
8
+ LABEL = :pid
9
+
10
+ attr_reader :pid
11
+
12
+ def initialize(pid:, parent:)
13
+ @pid = pid
14
+ super(parent: parent)
15
+ end
16
+
17
+ def _filename
18
+ pid.to_s
19
+ end
20
+
21
+ provide ProcFd
22
+
23
+ class << self
24
+ def build(pid, parent:)
25
+ new(pid: pid, parent: parent)
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'proc_item'
4
+
5
+ module Procfs2
6
+ class ProcVersion < ProcItem
7
+ LABEL = :version
8
+
9
+ VERSION_RE = /
10
+ (?<kernel>\w+)
11
+ \sversion\s
12
+ (?<version>[\w.-]+)
13
+ \s
14
+ \((?<user>\w+)@(?<host>[\w.-]+)\)
15
+ \s
16
+ \((?<gcc_version>[\w\s\(\).,-]+)\)
17
+ \s
18
+ (?<kernel_type>[\w#\s-]+)
19
+ \s
20
+ (?<timestamp>\w+\s+\w+\s+\d+\s+[\d:]+\s+\w+\s+\d+)
21
+ /x
22
+
23
+ def _parse_content
24
+ return unless _raw_content
25
+ return unless (match = _raw_content.match(VERSION_RE))
26
+
27
+ @_data = match.names.zip(match.captures).to_h
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Procfs2
4
+ VERSION = '0.1.0'
5
+ end
data/lib/procfs2.rb ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'procfs2/version'
4
+ require_relative 'procfs2/error'
5
+ require_relative 'procfs2/proc'
6
+
7
+ module Procfs2
8
+ ROOT = '/proc'
9
+
10
+ def self.proc(root: ROOT)
11
+ Proc.new(root: root)
12
+ end
13
+ end
data/sig/procfs2.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Procfs2
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,217 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: procfs2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas Tych
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-05-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bump
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.10.0
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.10.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.5.6
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.5.6
41
+ - !ruby/object:Gem::Dependency
42
+ name: byebug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '11.1'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 11.1.3
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '11.1'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 11.1.3
61
+ - !ruby/object:Gem::Dependency
62
+ name: minitest
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '5.16'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '5.16'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rake
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '13.1'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '13.1'
89
+ - !ruby/object:Gem::Dependency
90
+ name: reek
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '6.1'
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 6.1.4
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: '6.1'
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: 6.1.4
109
+ - !ruby/object:Gem::Dependency
110
+ name: rubocop
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '1.56'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '1.56'
123
+ - !ruby/object:Gem::Dependency
124
+ name: rubocop-minitest
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: 0.35.0
130
+ type: :development
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: 0.35.0
137
+ - !ruby/object:Gem::Dependency
138
+ name: rubocop-rake
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: 0.6.0
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: 0.6.0
151
+ - !ruby/object:Gem::Dependency
152
+ name: simplecov
153
+ requirement: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: 0.22.0
158
+ type: :development
159
+ prerelease: false
160
+ version_requirements: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - "~>"
163
+ - !ruby/object:Gem::Version
164
+ version: 0.22.0
165
+ description:
166
+ email:
167
+ - thomas.tych@gmail.com
168
+ executables: []
169
+ extensions: []
170
+ extra_rdoc_files: []
171
+ files:
172
+ - ".rubocop.yml"
173
+ - LICENSE.txt
174
+ - README.md
175
+ - Rakefile
176
+ - lib/procfs2.rb
177
+ - lib/procfs2/error.rb
178
+ - lib/procfs2/proc.rb
179
+ - lib/procfs2/proc_fd.rb
180
+ - lib/procfs2/proc_fd_id.rb
181
+ - lib/procfs2/proc_item.rb
182
+ - lib/procfs2/proc_module.rb
183
+ - lib/procfs2/proc_net.rb
184
+ - lib/procfs2/proc_net_tcp.rb
185
+ - lib/procfs2/proc_net_tcp_socket.rb
186
+ - lib/procfs2/proc_pid.rb
187
+ - lib/procfs2/proc_version.rb
188
+ - lib/procfs2/version.rb
189
+ - sig/procfs2.rbs
190
+ homepage: https://gitlab.com/ttych/procfs2
191
+ licenses:
192
+ - MIT
193
+ metadata:
194
+ homepage_uri: https://gitlab.com/ttych/procfs2
195
+ source_code_uri: https://gitlab.com/ttych/procfs2
196
+ changelog_uri: https://gitlab.com/ttych/procfs2/CHANGELOG.md
197
+ rubygems_mfa_required: 'true'
198
+ post_install_message:
199
+ rdoc_options: []
200
+ require_paths:
201
+ - lib
202
+ required_ruby_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: 3.0.0
207
+ required_rubygems_version: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ requirements: []
213
+ rubygems_version: 3.5.9
214
+ signing_key:
215
+ specification_version: 4
216
+ summary: read procfs or /proc pseudo-filesystem.
217
+ test_files: []