-
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.
Adjust named regex group ``` $ be standardrb --fix standard: Use Ruby Standard Style (https://github.com/standardrb/standard) Rakefile:8:1: Lint/UselessAssignment: Useless assignment to variable - `test_task`. lib/get_process_mem.rb:99:18: Lint/MixedRegexpCaptureTypes: Do not mix named captures and numbered captures in a Regexp literal. ```
- Loading branch information
Showing
7 changed files
with
95 additions
and
102 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
source "https://rubygems.org" | ||
gem 'sys-proctable' | ||
gem "sys-proctable" | ||
|
||
gemspec | ||
|
||
|
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,22 @@ | ||
# -*- 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.5' | ||
gem.required_ruby_version = ">= 2.5" | ||
|
||
gem.add_dependency "ffi", "~> 1.0" | ||
gem.add_dependency "bigdecimal", ">= 2.0" | ||
|
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
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,10 +1,10 @@ | ||
Bundler.require | ||
|
||
require 'get_process_mem' | ||
require 'test/unit' | ||
require "get_process_mem" | ||
require "test/unit" | ||
|
||
def fixture_path(name = nil) | ||
path = Pathname.new(File.expand_path("../fixtures", __FILE__)) | ||
return path.join(name) if name | ||
path | ||
end | ||
end |