-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from zombocom/schneems/update-deps
Update dependencies and housekeeping
- Loading branch information
Showing
11 changed files
with
138 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.6 | ||
- 2.7 | ||
- 3.0 | ||
- 3.1 | ||
- 3.2 | ||
- 3.3 | ||
- head | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Ruby linting | ||
run: bundle exec standardrb | ||
- name: test | ||
run: bundle exec rake test | ||
continue-on-error: ${{ matrix.ruby == 'head' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruby_version: 2.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
source "https://rubygems.org" | ||
gem 'sys-proctable' | ||
gem "sys-proctable" | ||
|
||
gemspec | ||
|
||
gem "standard" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
# encoding: UTF-8 | ||
require "bundler/gem_tasks" | ||
|
||
require 'bundler/gem_tasks' | ||
require "rake" | ||
require "rake/testtask" | ||
|
||
require 'rake' | ||
require 'rake/testtask' | ||
task default: [:test] | ||
|
||
task :default => [:test] | ||
|
||
test_task = Rake::TestTask.new(:test) do |t| | ||
t.libs << 'lib' | ||
t.libs << 'test' | ||
t.pattern = 'test/**/*_test.rb' | ||
Rake::TestTask.new(:test) do |t| | ||
t.libs << "lib" | ||
t.libs << "test" | ||
t.pattern = "test/**/*_test.rb" | ||
t.verbose = false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
# -*- encoding: utf-8 -*- | ||
lib = File.expand_path('../lib', __FILE__) | ||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'get_process_mem/version' | ||
require "get_process_mem/version" | ||
|
||
Gem::Specification.new do |gem| | ||
gem.name = "get_process_mem" | ||
gem.version = GetProcessMem::VERSION | ||
gem.authors = ["Richard Schneeman"] | ||
gem.email = ["[email protected]"] | ||
gem.description = %q{ Get memory usage of a process in Ruby } | ||
gem.summary = %q{ Use GetProcessMem to find out the amount of RAM used by any process } | ||
gem.homepage = "https://github.com/schneems/get_process_mem" | ||
gem.license = "MIT" | ||
gem.name = "get_process_mem" | ||
gem.version = GetProcessMem::VERSION | ||
gem.authors = ["Richard Schneeman"] | ||
gem.email = ["[email protected]"] | ||
gem.description = " Get memory usage of a process in Ruby " | ||
gem.summary = " Use GetProcessMem to find out the amount of RAM used by any process " | ||
gem.homepage = "https://github.com/schneems/get_process_mem" | ||
gem.license = "MIT" | ||
|
||
gem.files = `git ls-files`.split($/) | ||
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } | ||
gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) | ||
gem.files = `git ls-files`.split($/) | ||
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) } | ||
gem.require_paths = ["lib"] | ||
|
||
gem.required_ruby_version = ">= 2.6" | ||
|
||
gem.add_dependency "ffi", "~> 1.0" | ||
gem.add_dependency "bigdecimal", ">= 2.0" | ||
|
||
gem.add_development_dependency "sys-proctable", "~> 1.2" | ||
gem.add_development_dependency "rake", "~> 12" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.