sys-proc 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/{src/lib → lib}/sys-proc.rb +6 -0
- data/{src/lib → lib}/sys/proc.rb +6 -0
- data/lib/sys/proc/concern.rb +13 -0
- data/{src/lib → lib}/sys/proc/concern/helper.rb +6 -0
- data/{src/lib → lib}/sys/proc/concern/static_instance.rb +6 -0
- data/{src/lib → lib}/sys/proc/concern/system.rb +6 -0
- data/{src/lib → lib}/sys/proc/concern/system/freebsd.rb +6 -0
- data/{src/lib → lib}/sys/proc/concern/system/generic.rb +6 -0
- data/{src/lib → lib}/sys/proc/concern/system/linux_gnu.rb +6 -0
- data/{src/lib → lib}/sys/proc/concern/versionable.rb +6 -0
- data/{src/lib → lib}/sys/proc/helper.rb +6 -0
- data/{src/lib → lib}/sys/proc/helper/inflector.rb +6 -0
- data/{src/lib → lib}/sys/proc/helper/lib_c.rb +6 -0
- data/{src/lib → lib}/sys/proc/helper/system.rb +6 -0
- data/{src/lib → lib}/sys/proc/helper/system/generic.rb +6 -0
- data/lib/sys/proc/system.rb +14 -0
- data/lib/sys/proc/system/freebsd.rb +14 -0
- data/{src/lib → lib}/sys/proc/system/freebsd/lib_c.rb +6 -0
- data/lib/sys/proc/system/linux_gnu.rb +14 -0
- data/{src/lib → lib}/sys/proc/system/linux_gnu/prctl.rb +6 -0
- data/{src/lib → lib}/sys/proc/version_info.yml +1 -1
- metadata +24 -23
- data/src/lib/sys/proc/concern.rb +0 -7
- data/src/lib/sys/proc/system.rb +0 -8
- data/src/lib/sys/proc/system/freebsd.rb +0 -8
- data/src/lib/sys/proc/system/linux_gnu.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5eb7eae1877661f309f8d3e78e22a6e9c5939db8
|
4
|
+
data.tar.gz: f061939396d5e30a22ff9c887807d4b568f4ddd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8da08033a708ba1f035f2c12b5f5780656ac1ff4f5eb561b81f0855f1fb46ad91585deb03c6e72942a2d9846a52d6f360aadb613473bd871067af1fb815edf3f
|
7
|
+
data.tar.gz: 80eeba1851b3a1db2c89e2b8db5d11ec7b479d6337a2f348344ea5555c16328b76b1b555f333d772dda88ff0651eaa2d4ae825bc31cf82362aa35457f43b866f
|
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
lib/**/*.rb --markup=markdown
|
data/{src/lib → lib}/sys-proc.rb
RENAMED
@@ -2,6 +2,12 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
# rubocop:enable Style/FileName
|
4
4
|
|
5
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
6
|
+
# License GPLv3+: GNU GPL version 3 or later
|
7
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
8
|
+
# This is free software: you are free to change and redistribute it.
|
9
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
10
|
+
|
5
11
|
$LOAD_PATH.unshift __dir__
|
6
12
|
|
7
13
|
if 'development' == ENV['PROJECT_MODE']
|
data/{src/lib → lib}/sys/proc.rb
RENAMED
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'English'
|
4
10
|
|
5
11
|
# The Sys module is only used as a namespace
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
9
|
+
require 'active_support/concern'
|
10
|
+
|
11
|
+
module Sys::Proc::Concern
|
12
|
+
|
13
|
+
end
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'sys/proc/concern'
|
4
10
|
require 'sys/proc/helper'
|
5
11
|
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'sys/proc/concern'
|
4
10
|
|
5
11
|
# Provides static accesses
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'sys/proc/concern'
|
4
10
|
require 'sys/proc/concern/helper'
|
5
11
|
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'sys/proc/concern/helper'
|
4
10
|
require 'sys/proc/concern/system'
|
5
11
|
require 'sys/proc/concern/system/generic'
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'sys/proc/concern/system'
|
4
10
|
|
5
11
|
# Provides generic methods
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'sys/proc/concern/helper'
|
4
10
|
require 'sys/proc/concern/system'
|
5
11
|
require 'sys/proc/concern/system/generic'
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'pathname'
|
4
10
|
|
5
11
|
require 'sys/proc/concern'
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'sys/proc'
|
4
10
|
|
5
11
|
# Provides access to helper classes
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'sys/proc/helper'
|
4
10
|
|
5
11
|
class Sys::Proc::Helper::Inflector
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'fiddle'
|
4
10
|
require 'sys/proc/helper'
|
5
11
|
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
# System helper
|
4
10
|
class Sys::Proc::Helper::System
|
5
11
|
# Identify operating system
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'sys/proc/helper/system'
|
4
10
|
|
5
11
|
# Provides access to ``Sys::Proc::Concerns::System::Generic`` methods
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
9
|
+
require 'sys/proc'
|
10
|
+
|
11
|
+
# OS specific namespace
|
12
|
+
module Sys::Proc::System
|
13
|
+
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
9
|
+
require 'sys/proc/system'
|
10
|
+
|
11
|
+
# Freebsd specific namespace
|
12
|
+
module Sys::Proc::System::Freebsd
|
13
|
+
|
14
|
+
end
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'fiddle'
|
4
10
|
require 'sys/proc/system/freebsd'
|
5
11
|
require 'sys/proc/concern/helper'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
9
|
+
require 'sys/proc/system'
|
10
|
+
|
11
|
+
# GNU/Linux specific namespace
|
12
|
+
module Sys::Proc::System::LinuxGnu
|
13
|
+
|
14
|
+
end
|
@@ -1,5 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
|
4
|
+
# License GPLv3+: GNU GPL version 3 or later
|
5
|
+
# <http://www.gnu.org/licenses/gpl.html>.
|
6
|
+
# This is free software: you are free to change and redistribute it.
|
7
|
+
# There is NO WARRANTY, to the extent permitted by law.
|
8
|
+
|
3
9
|
require 'fiddle'
|
4
10
|
require 'sys/proc/system/linux_gnu'
|
5
11
|
require 'sys/proc/concern/helper'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sys-proc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitri Arrigoni
|
@@ -240,27 +240,28 @@ executables: []
|
|
240
240
|
extensions: []
|
241
241
|
extra_rdoc_files: []
|
242
242
|
files:
|
243
|
-
-
|
244
|
-
-
|
245
|
-
-
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
249
|
-
-
|
250
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
-
|
254
|
-
-
|
255
|
-
-
|
256
|
-
-
|
257
|
-
-
|
258
|
-
-
|
259
|
-
-
|
260
|
-
-
|
261
|
-
-
|
262
|
-
-
|
263
|
-
-
|
243
|
+
- ".yardopts"
|
244
|
+
- lib/sys-proc.rb
|
245
|
+
- lib/sys/proc.rb
|
246
|
+
- lib/sys/proc/concern.rb
|
247
|
+
- lib/sys/proc/concern/helper.rb
|
248
|
+
- lib/sys/proc/concern/static_instance.rb
|
249
|
+
- lib/sys/proc/concern/system.rb
|
250
|
+
- lib/sys/proc/concern/system/freebsd.rb
|
251
|
+
- lib/sys/proc/concern/system/generic.rb
|
252
|
+
- lib/sys/proc/concern/system/linux_gnu.rb
|
253
|
+
- lib/sys/proc/concern/versionable.rb
|
254
|
+
- lib/sys/proc/helper.rb
|
255
|
+
- lib/sys/proc/helper/inflector.rb
|
256
|
+
- lib/sys/proc/helper/lib_c.rb
|
257
|
+
- lib/sys/proc/helper/system.rb
|
258
|
+
- lib/sys/proc/helper/system/generic.rb
|
259
|
+
- lib/sys/proc/system.rb
|
260
|
+
- lib/sys/proc/system/freebsd.rb
|
261
|
+
- lib/sys/proc/system/freebsd/lib_c.rb
|
262
|
+
- lib/sys/proc/system/linux_gnu.rb
|
263
|
+
- lib/sys/proc/system/linux_gnu/prctl.rb
|
264
|
+
- lib/sys/proc/version_info.yml
|
264
265
|
homepage: https://github.com/SwagDevOps/sys-proc
|
265
266
|
licenses:
|
266
267
|
- GPL-3.0
|
@@ -268,7 +269,7 @@ metadata: {}
|
|
268
269
|
post_install_message:
|
269
270
|
rdoc_options: []
|
270
271
|
require_paths:
|
271
|
-
-
|
272
|
+
- lib
|
272
273
|
required_ruby_version: !ruby/object:Gem::Requirement
|
273
274
|
requirements:
|
274
275
|
- - ">="
|
data/src/lib/sys/proc/concern.rb
DELETED
data/src/lib/sys/proc/system.rb
DELETED