pstree 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2429e1d084cac9859aaa8677db294d46d95c99fa6d2c56f550782ce33a195447
4
- data.tar.gz: 307882fe91950b9d5176ab73034c27765833f8c6927593603ef413e6318f1368
3
+ metadata.gz: d8de7f08591e54e2af49ad0d5c779735a0f1c7979137b1b4dc21420b43e3d952
4
+ data.tar.gz: b3ea7e35f07949e14f6cb8ca9909b1f0cfed59ca041d5e82a5362a6436ea486f
5
5
  SHA512:
6
- metadata.gz: b3b5616d54fbeba092270820559bdb0cff8d56955183db5793af12afccf41db76741e5c102efa227fac481abd88051520ac79893af2eac5d86b8c4e366e9c457
7
- data.tar.gz: 4fe3d17d87130083f37dffe188f766e030d4df8c3f353a2a5ee3bfe46c34aa9b4b53dc47a02e12aab34a00232fb1b61db1c74d0bdbfad6123537ad9b57aaf3ba
6
+ metadata.gz: 0add077fd833f7437d3453ec0b56fe66d17adf366d7db98b6b4b6fb52110c3688bc5dd4c7ba20a100ae2a88b139f95c013e1f2e07f9ab43e885632cebf87d462
7
+ data.tar.gz: 1e2f5243524f03346f3eb1d450c21c59b79573146afb1c787924e1bad5e33d659cdc6aa3b92cd796cc0a56de7aa912fed5d3aac82193aa051b94e48155818b6f
data/CHANGES.md ADDED
@@ -0,0 +1,51 @@
1
+ # Changes
2
+
3
+ ## 2024-09-24 v0.4.0
4
+
5
+ + Supports display of forrest now if more than one `PID` was given as arguments.
6
+ + Removed obsolete variable `code`.
7
+ + Update dependencies and version information:
8
+ - Remove `simplecov` development dependency
9
+ - Update `gem_hadar` development dependency to `~> **1.17.1**`
10
+ - Removed ruby **3.2.3** from `.tool-versions` file
11
+
12
+ ## 2024-03-15 v0.3.1
13
+
14
+ * **Changes for version **1.0**:
15
+ + Use `github` as homepage.
16
+ + Create `codeql-analysis.yml`.
17
+ + Update `gemspec`.
18
+ + Configure `asdf`.
19
+
20
+ ## 2019-04-15 v0.3.0
21
+
22
+ * Convert `rdoc README` to markdown
23
+ * Only recurse into this one subtree correctly
24
+ * Merge changes from `github.com:flori/pstree`
25
+ + Support UTF-8 output and use it by default (default encoding changed to **UTF-8**)
26
+ + Update code to use new default encoding (**UTF-8**)
27
+
28
+ ## 2017-11-07 v0.2.0
29
+
30
+ * **Support UTF-8 output and use it by default**
31
+ + Added support for UTF-8 output
32
+ + Changed default output encoding to UTF-8
33
+ * **Cleanup code**
34
+ + Improved code organization and structure
35
+ * **stop ruby 1.9 from whining**
36
+ + Updated code to be compatible with Ruby 1.9
37
+
38
+ ## 2014-02-06 v0.1.0
39
+
40
+ * **Bumped gem_hadar dependency**:
41
+ + Updated `gem_hadar` dependency to use the latest version
42
+ * **Dependency on new version of gem_hadar**:
43
+ + Updated `gem_hadar` dependency to use a new version (**1.0.0**)
44
+ * **Cleanup code**:
45
+ + Improved code organization and readability
46
+ * **Fix stupid ruby warning**:
47
+ + Resolved a Ruby warning issue
48
+
49
+ ## 2013-05-15 v0.0.0
50
+
51
+ * Start
data/Rakefile CHANGED
@@ -16,6 +16,4 @@ GemHadar do
16
16
  ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.rvmrc', 'coverage'
17
17
  readme 'README.md'
18
18
  executables << 'ruby-pstree'
19
-
20
- development_dependency 'simplecov'
21
19
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.4.0
data/bin/ruby-pstree CHANGED
@@ -2,4 +2,7 @@
2
2
 
3
3
  require 'pstree'
4
4
 
5
- puts PSTree.new(ARGV.shift)
5
+ pids = ARGV.empty? ? [ 0 ] : ARGV
6
+ pids.each do |pid|
7
+ puts PSTree.new(pid)
8
+ end
@@ -1,6 +1,6 @@
1
1
  class PSTree
2
2
  # PSTree version
3
- VERSION = '0.3.1'
3
+ VERSION = '0.4.0'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
data/lib/pstree.rb CHANGED
@@ -64,7 +64,6 @@ class PSTree
64
64
  @child_count = [ 0 ]
65
65
  @process = {}
66
66
  @pstree = Hash.new { |h,k| h[k] = [] }
67
- pid = @root_pid.zero? ? nil : @root_pid
68
67
  psoutput = `/bin/ps axww -o ppid,pid,user,command`
69
68
  psoutput.each_line do |line|
70
69
  next if line !~ /^\s*\d+/
data/pstree.gemspec CHANGED
@@ -1,27 +1,26 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: pstree 0.3.1 ruby lib
2
+ # stub: pstree 0.4.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "pstree".freeze
6
- s.version = "0.3.1"
6
+ s.version = "0.4.0".freeze
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Florian Frank".freeze]
11
- s.date = "2024-03-15"
11
+ s.date = "2024-09-24"
12
12
  s.description = "This library uses the output of the ps command to creaste process tree data structure for the current host.".freeze
13
13
  s.email = "flori@ping.de".freeze
14
14
  s.executables = ["ruby-pstree".freeze]
15
15
  s.extra_rdoc_files = ["README.md".freeze, "lib/pstree.rb".freeze, "lib/pstree/version.rb".freeze]
16
- s.files = [".github/workflows/codeql-analysis.yml".freeze, ".gitignore".freeze, ".tool-versions".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/ruby-pstree".freeze, "lib/pstree.rb".freeze, "lib/pstree/version.rb".freeze, "pstree.gemspec".freeze]
16
+ s.files = [".github/workflows/codeql-analysis.yml".freeze, ".gitignore".freeze, "CHANGES.md".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/ruby-pstree".freeze, "lib/pstree.rb".freeze, "lib/pstree/version.rb".freeze, "pstree.gemspec".freeze]
17
17
  s.homepage = "https://github.com/flori/pstree".freeze
18
18
  s.licenses = ["GPL-2".freeze]
19
19
  s.rdoc_options = ["--title".freeze, "Pstree - Ruby library that builds a process tree of this host".freeze, "--main".freeze, "README.md".freeze]
20
- s.rubygems_version = "3.4.19".freeze
20
+ s.rubygems_version = "3.5.18".freeze
21
21
  s.summary = "Ruby library that builds a process tree of this host".freeze
22
22
 
23
23
  s.specification_version = 4
24
24
 
25
- s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.14.0"])
26
- s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
25
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.17.1".freeze])
27
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pstree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-15 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.14.0
19
+ version: 1.17.1
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: 1.14.0
27
- - !ruby/object:Gem::Dependency
28
- name: simplecov
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: 1.17.1
41
27
  description: This library uses the output of the ps command to creaste process tree
42
28
  data structure for the current host.
43
29
  email: flori@ping.de
@@ -51,7 +37,7 @@ extra_rdoc_files:
51
37
  files:
52
38
  - ".github/workflows/codeql-analysis.yml"
53
39
  - ".gitignore"
54
- - ".tool-versions"
40
+ - CHANGES.md
55
41
  - Gemfile
56
42
  - README.md
57
43
  - Rakefile
@@ -83,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
69
  - !ruby/object:Gem::Version
84
70
  version: '0'
85
71
  requirements: []
86
- rubygems_version: 3.4.19
72
+ rubygems_version: 3.5.18
87
73
  signing_key:
88
74
  specification_version: 4
89
75
  summary: Ruby library that builds a process tree of this host
data/.tool-versions DELETED
@@ -1 +0,0 @@
1
- ruby 3.2.3