process-path 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +5 -16
- data/.gitignore +3 -0
- data/.rubocop.yml +2 -14
- data/.rubocop_todo.yml +1 -2
- data/.ruby-version +1 -1
- data/Gemfile +2 -1
- data/bin/console +4 -3
- data/lib/process/path/version.rb +1 -1
- data/process-path.gemspec +1 -1
- data/renovate.json +5 -0
- metadata +8 -9
- data/.github/workflows/publish-rubygems.yml +0 -25
- data/Gemfile.lock +0 -69
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0dff0424ce27501e4d95a875dbb9c472e89638e7eefa78b553e2851f4d8d1f9
|
4
|
+
data.tar.gz: 5907ad972bd99848f74b5665bda98f33e9b8c05ef2f5edfa7751aac991e479f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eb02bd5d52958a01bab9858368d78aa0e8543549db86ca66b09a61375665c842a4edd5e7ab66807f858433689d0ae44e0c073819502fd03e238f57dfba1a157
|
7
|
+
data.tar.gz: b509a7535efa599427050b01296d2f90a40783186e3928cdb5bd395a5e113a6c9fcc2be2c4f30486c22f77ac6b4b0105413599f9c6b6674b75a186afc390c95b
|
data/.github/workflows/ruby.yml
CHANGED
@@ -9,9 +9,8 @@ name: Ruby
|
|
9
9
|
|
10
10
|
on:
|
11
11
|
push:
|
12
|
-
branches: [
|
12
|
+
branches: [ main ]
|
13
13
|
pull_request:
|
14
|
-
branches: [ master ]
|
15
14
|
|
16
15
|
jobs:
|
17
16
|
test:
|
@@ -19,23 +18,13 @@ jobs:
|
|
19
18
|
fail-fast: false
|
20
19
|
matrix:
|
21
20
|
os: [ubuntu, macos]
|
22
|
-
ruby: [2.
|
21
|
+
ruby: [2.7, 3.0.4, 3.1] # Explicitly specifying 3.0.4 because specifying 3.0 will cause 3.1.2 to be used
|
23
22
|
runs-on: ${{ matrix.os }}-latest
|
24
23
|
steps:
|
25
|
-
- uses: actions/checkout@
|
24
|
+
- uses: actions/checkout@v3
|
26
25
|
- uses: ruby/setup-ruby@v1
|
27
26
|
with:
|
28
27
|
ruby-version: ${{ matrix.ruby }}
|
29
|
-
|
30
|
-
|
31
|
-
run: |
|
32
|
-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
33
|
-
chmod +x ./cc-test-reporter
|
34
|
-
./cc-test-reporter before-build
|
35
|
-
- run: bundle install --jobs 4 --retry 3
|
28
|
+
bundler-cache: true
|
29
|
+
- run: bundle install --jobs 2 --retry 3
|
36
30
|
- run: bundle exec rake
|
37
|
-
- name: Publish code coverage
|
38
|
-
if: ${{ matrix.os == 'ubuntu' && matrix.ruby == '2.6' }}
|
39
|
-
run: |
|
40
|
-
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
|
41
|
-
./cc-test-reporter after-build -r ${{secrets.CC_TEST_REPORTER_ID}}
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
1
3
|
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
2
4
|
# configuration file. It makes it possible to enable/disable
|
3
5
|
# certain cops (checks) and to alter their behavior if they accept
|
@@ -8,17 +10,3 @@
|
|
8
10
|
# where the inspected file is and continue its way up to the root directory.
|
9
11
|
#
|
10
12
|
# See https://docs.rubocop.org/rubocop/configuration
|
11
|
-
|
12
|
-
inherit_from: .rubocop_todo.yml
|
13
|
-
|
14
|
-
AllCops:
|
15
|
-
RubyInterpreters:
|
16
|
-
- ruby
|
17
|
-
TargetRubyVersion: 2.6
|
18
|
-
NewCops: enable
|
19
|
-
Exclude:
|
20
|
-
- 'bin/*'
|
21
|
-
|
22
|
-
Lint/AmbiguousBlockAssociation:
|
23
|
-
Exclude:
|
24
|
-
- 'spec/**/*'
|
data/.rubocop_todo.yml
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2021-06-25 15:59:13 UTC using RuboCop version 1.17.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.2
|
data/Gemfile
CHANGED
@@ -5,8 +5,9 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in process-path.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
+
gem 'panolint', require: false
|
8
9
|
gem 'pry'
|
9
10
|
gem 'rake', require: false
|
10
11
|
gem 'rspec'
|
11
12
|
gem 'rubocop', require: false
|
12
|
-
gem 'simplecov',
|
13
|
+
gem 'simplecov', require: false
|
data/bin/console
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
|
-
require
|
4
|
-
require
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'process/path'
|
5
6
|
|
6
7
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
8
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -10,5 +11,5 @@ require "process/path"
|
|
10
11
|
# require "pry"
|
11
12
|
# Pry.start
|
12
13
|
|
13
|
-
require
|
14
|
+
require 'irb'
|
14
15
|
IRB.start(__FILE__)
|
data/lib/process/path/version.rb
CHANGED
data/process-path.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = 'Process::Path is a small library to get the path of the currently running process.'
|
13
13
|
spec.homepage = 'https://github.com/yagihiro/process-path'
|
14
14
|
spec.license = 'MIT'
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
17
|
|
18
18
|
# Specify which files should be added to the gem when it is released.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process-path
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroki Yagita
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Process::Path is a small library to get the path of the currently running
|
14
14
|
process.
|
@@ -19,7 +19,6 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- ".github/FUNDING.yml"
|
22
|
-
- ".github/workflows/publish-rubygems.yml"
|
23
22
|
- ".github/workflows/ruby.yml"
|
24
23
|
- ".gitignore"
|
25
24
|
- ".rspec"
|
@@ -29,7 +28,6 @@ files:
|
|
29
28
|
- ".travis.yml"
|
30
29
|
- CODE_OF_CONDUCT.md
|
31
30
|
- Gemfile
|
32
|
-
- Gemfile.lock
|
33
31
|
- LICENSE.txt
|
34
32
|
- README.md
|
35
33
|
- Rakefile
|
@@ -41,12 +39,13 @@ files:
|
|
41
39
|
- lib/process/path/osx.rb
|
42
40
|
- lib/process/path/version.rb
|
43
41
|
- process-path.gemspec
|
42
|
+
- renovate.json
|
44
43
|
homepage: https://github.com/yagihiro/process-path
|
45
44
|
licenses:
|
46
45
|
- MIT
|
47
46
|
metadata:
|
48
47
|
homepage_uri: https://github.com/yagihiro/process-path
|
49
|
-
post_install_message:
|
48
|
+
post_install_message:
|
50
49
|
rdoc_options: []
|
51
50
|
require_paths:
|
52
51
|
- lib
|
@@ -54,15 +53,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
53
|
requirements:
|
55
54
|
- - ">="
|
56
55
|
- !ruby/object:Gem::Version
|
57
|
-
version: 2.
|
56
|
+
version: 2.7.0
|
58
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
58
|
requirements:
|
60
59
|
- - ">="
|
61
60
|
- !ruby/object:Gem::Version
|
62
61
|
version: '0'
|
63
62
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
65
|
-
signing_key:
|
63
|
+
rubygems_version: 3.3.7
|
64
|
+
signing_key:
|
66
65
|
specification_version: 4
|
67
66
|
summary: Process::Path is a small library to get the path of the currently running
|
68
67
|
process.
|
@@ -1,25 +0,0 @@
|
|
1
|
-
name: Push Ruby Gem to rubygems.org.
|
2
|
-
|
3
|
-
|
4
|
-
on:
|
5
|
-
workflow_dispatch:
|
6
|
-
inputs:
|
7
|
-
name:
|
8
|
-
description: 'Input short release note or some useful messages.'
|
9
|
-
required: true
|
10
|
-
default: ''
|
11
|
-
|
12
|
-
jobs:
|
13
|
-
build:
|
14
|
-
name: Build + Publish
|
15
|
-
runs-on: ubuntu-latest
|
16
|
-
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v2
|
19
|
-
|
20
|
-
- name: Publish to Rubygems
|
21
|
-
uses: cadwallion/publish-rubygems-action@v1.0.0
|
22
|
-
env:
|
23
|
-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
24
|
-
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
25
|
-
RELEASE_COMMAND: rake release
|
data/Gemfile.lock
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
process-path (0.1.2)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
ast (2.4.1)
|
10
|
-
coderay (1.1.3)
|
11
|
-
diff-lcs (1.4.4)
|
12
|
-
docile (1.3.2)
|
13
|
-
json (2.3.1)
|
14
|
-
method_source (1.0.0)
|
15
|
-
parallel (1.19.2)
|
16
|
-
parser (2.7.1.4)
|
17
|
-
ast (~> 2.4.1)
|
18
|
-
pry (0.13.1)
|
19
|
-
coderay (~> 1.1)
|
20
|
-
method_source (~> 1.0)
|
21
|
-
rainbow (3.0.0)
|
22
|
-
rake (13.0.1)
|
23
|
-
regexp_parser (1.7.1)
|
24
|
-
rexml (3.2.5)
|
25
|
-
rspec (3.9.0)
|
26
|
-
rspec-core (~> 3.9.0)
|
27
|
-
rspec-expectations (~> 3.9.0)
|
28
|
-
rspec-mocks (~> 3.9.0)
|
29
|
-
rspec-core (3.9.2)
|
30
|
-
rspec-support (~> 3.9.3)
|
31
|
-
rspec-expectations (3.9.2)
|
32
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.9.0)
|
34
|
-
rspec-mocks (3.9.1)
|
35
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
36
|
-
rspec-support (~> 3.9.0)
|
37
|
-
rspec-support (3.9.3)
|
38
|
-
rubocop (0.89.0)
|
39
|
-
parallel (~> 1.10)
|
40
|
-
parser (>= 2.7.1.1)
|
41
|
-
rainbow (>= 2.2.2, < 4.0)
|
42
|
-
regexp_parser (>= 1.7)
|
43
|
-
rexml
|
44
|
-
rubocop-ast (>= 0.1.0, < 1.0)
|
45
|
-
ruby-progressbar (~> 1.7)
|
46
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
47
|
-
rubocop-ast (0.3.0)
|
48
|
-
parser (>= 2.7.1.4)
|
49
|
-
ruby-progressbar (1.10.1)
|
50
|
-
simplecov (0.17.1)
|
51
|
-
docile (~> 1.1)
|
52
|
-
json (>= 1.8, < 3)
|
53
|
-
simplecov-html (~> 0.10.0)
|
54
|
-
simplecov-html (0.10.2)
|
55
|
-
unicode-display_width (1.7.0)
|
56
|
-
|
57
|
-
PLATFORMS
|
58
|
-
ruby
|
59
|
-
|
60
|
-
DEPENDENCIES
|
61
|
-
process-path!
|
62
|
-
pry
|
63
|
-
rake
|
64
|
-
rspec
|
65
|
-
rubocop
|
66
|
-
simplecov (~> 0.17.0)
|
67
|
-
|
68
|
-
BUNDLED WITH
|
69
|
-
2.1.4
|