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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87eabfa8d0c83dd5448c3418805623e0322eac365a31effc157e37d96dcdb205
4
- data.tar.gz: 689724dac0774a37b97899f85fa2f7eedd5effe1d3e01cae5e4606047c38df89
3
+ metadata.gz: 1d0fb74ff83b646fc0abdbbad624257304311fa98ea5204cce96d12957572432
4
+ data.tar.gz: 8a51db8a8638d7d160b6a34d924244d4a28056168f3aea4341abf9d6fe890576
5
5
  SHA512:
6
- metadata.gz: 4a4a209a463bb2076a671c96db52c0e5e0a12ad12e3915508d496eb89a18f2be305d729883ee0e64aba9050ed8c7cb3a42531067915428163e325c2f1401759c
7
- data.tar.gz: 884c8aab69d1e2a90ef6c1c8f98985d920adb89eb692ddb39363d0f7765e86073aa08d3382d0759a070bf6a20916164de6945f71421ce377533f963c1cf8fb5f
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
@@ -4,17 +4,17 @@ os:
4
4
  - osx
5
5
 
6
6
  before_install:
7
- - gem install bundler -v 1.12.5
7
+ - gem install bundler -v 1.17.3
8
8
 
9
9
  rvm:
10
- - 2.2.0
11
- - 2.5.0
10
+ - 2.2
11
+ - 2.6
12
12
  - ruby-head
13
- - jruby-19mode
14
- - rbx-19mode
13
+ - jruby-head
14
+ - truffleruby
15
15
 
16
16
  matrix:
17
17
  allow_failures:
18
18
  - rvm: ruby-head
19
- - rvm: rbx-19mode
20
- - rvm: jruby-19mode
19
+ - rvm: jruby-head
20
+ - rvm: truffleruby
@@ -1,3 +1,9 @@
1
+ ## Master - unreleased
2
+
3
+ ## 0.2.5
4
+
5
+ - Use new sys-proctable interface (https://github.com/schneems/get_process_mem/pull/36)
6
+
1
7
  ## 0.2.4
2
8
 
3
9
  - Use FFI to speed up memory lookup on Mac (darwin) by roughly 12x (#32)
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.png?branch=master)](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.
@@ -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.0"
24
- gem.add_development_dependency "rake", "~> 10.1"
25
- gem.add_development_dependency "test-unit", "~> 3.1.0"
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
@@ -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}`
@@ -1,3 +1,3 @@
1
1
  class GetProcessMem
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
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-07-08 00:00:00.000000000 Z
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.0'
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.0'
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: '10.1'
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: '10.1'
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.1.0
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.1.0
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