get_process_mem 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/check_changelog.yml +12 -0
- data/.travis.yml +7 -7
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/get_process_mem.gemspec +3 -3
- data/lib/get_process_mem.rb +1 -1
- data/lib/get_process_mem/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d0fb74ff83b646fc0abdbbad624257304311fa98ea5204cce96d12957572432
|
4
|
+
data.tar.gz: 8a51db8a8638d7d160b6a34d924244d4a28056168f3aea4341abf9d6fe890576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3291519f57f2b44c5d8794098c5b87331bb49599f43ea1d06bc269560759e0e9ef0bb2318a4f1d261a4709634024cd00d0bb73bca559ff23440fb194cb25964
|
7
|
+
data.tar.gz: 4c16b205f3a20b0f1a7a2110bb3ee370918107f2a4e509a044f9ab0dc01cf8285a3042c5cc656c65a6bd50d6e5f5d68c5bd2e980915d42632bf0fbed3faccfa3
|
@@ -0,0 +1,12 @@
|
|
1
|
+
name: Check Changelog
|
2
|
+
|
3
|
+
on: [pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@v1
|
10
|
+
- name: Check that CHANGELOG is touched
|
11
|
+
run: |
|
12
|
+
cat $GITHUB_EVENT_PATH | jq .pull_request.title | grep -i '\[\(\(changelog skip\)\|\(ci skip\)\)\]' || git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md
|
data/.travis.yml
CHANGED
@@ -4,17 +4,17 @@ os:
|
|
4
4
|
- osx
|
5
5
|
|
6
6
|
before_install:
|
7
|
-
- gem install bundler -v 1.
|
7
|
+
- gem install bundler -v 1.17.3
|
8
8
|
|
9
9
|
rvm:
|
10
|
-
- 2.2
|
11
|
-
- 2.
|
10
|
+
- 2.2
|
11
|
+
- 2.6
|
12
12
|
- ruby-head
|
13
|
-
- jruby-
|
14
|
-
-
|
13
|
+
- jruby-head
|
14
|
+
- truffleruby
|
15
15
|
|
16
16
|
matrix:
|
17
17
|
allow_failures:
|
18
18
|
- rvm: ruby-head
|
19
|
-
- rvm:
|
20
|
-
- rvm:
|
19
|
+
- rvm: jruby-head
|
20
|
+
- rvm: truffleruby
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Get Process Memory
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/schneems/get_process_mem.
|
3
|
+
[![Build Status](https://travis-ci.org/schneems/get_process_mem.svg?branch=master)](https://travis-ci.org/schneems/get_process_mem)
|
4
4
|
[![Help Contribute to Open Source](https://www.codetriage.com/schneems/get_process_mem/badges/users.svg)](https://www.codetriage.com/schneems/get_process_mem)
|
5
5
|
|
6
6
|
Do you need to get the memory usage of a process? Great because this library does that.
|
data/get_process_mem.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
|
21
21
|
gem.add_dependency "ffi", "~> 1.0"
|
22
22
|
|
23
|
-
gem.add_development_dependency "sys-proctable", "~> 1.
|
24
|
-
gem.add_development_dependency "rake",
|
25
|
-
gem.add_development_dependency "test-unit", "~> 3
|
23
|
+
gem.add_development_dependency "sys-proctable", "~> 1.2"
|
24
|
+
gem.add_development_dependency "rake", "~> 12"
|
25
|
+
gem.add_development_dependency "test-unit", "~> 3"
|
26
26
|
end
|
data/lib/get_process_mem.rb
CHANGED
@@ -110,7 +110,7 @@ class GetProcessMem
|
|
110
110
|
# in low memory situations
|
111
111
|
def ps_memory
|
112
112
|
if RUNS_ON_WINDOWS
|
113
|
-
size = ProcTable.ps(pid).working_set_size
|
113
|
+
size = ProcTable.ps(pid: pid).working_set_size
|
114
114
|
number_to_bigdecimal(size)
|
115
115
|
else
|
116
116
|
mem = `ps -o rss= -p #{pid}`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: get_process_mem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Schneeman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -30,42 +30,42 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.2'
|
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: '1.
|
40
|
+
version: '1.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '12'
|
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: '
|
54
|
+
version: '12'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: test-unit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3
|
61
|
+
version: '3'
|
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: 3
|
68
|
+
version: '3'
|
69
69
|
description: " Get memory usage of a process in Ruby "
|
70
70
|
email:
|
71
71
|
- richard.schneeman+rubygems@gmail.com
|
@@ -73,6 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".github/workflows/check_changelog.yml"
|
76
77
|
- ".gitignore"
|
77
78
|
- ".travis.yml"
|
78
79
|
- CHANGELOG.md
|