sys-proc 1.0.3 → 1.0.4

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
  SHA1:
3
- metadata.gz: 1bcc8b6bd546ca6d565638df6ca3ac8ec2b419c5
4
- data.tar.gz: 159379690cb78402bbe03341fa2bc86913c2d85d
3
+ metadata.gz: ef430fcc11653031cddb758f6c437226d8f68bf2
4
+ data.tar.gz: 80f41aef12dc56df8a65d1747fe78d10fa33dcb4
5
5
  SHA512:
6
- metadata.gz: 28cccca1fcb80dc68777f6e069833636d288ccdea23d0549028a800f23f5b68e319f692b85f13fa65d0b8b69b3e58d4d36b2da6cf6aa3e72bbae890fdd2a29da
7
- data.tar.gz: 2251be20300284c2a58238594242dac00c8d2d338777056855ce11265b83edf962ae73155705a9e334fa1ad8f3d2ac10548d486dd4dc7be3027cfaafa749c299
6
+ metadata.gz: a12621872b2b9a640d63c0f64d471cb1edc2db6a6dbd0c9164d738f0594592e38a877692dfecf6a7c813ea503b2c2ad7b43f55a4e1c8124886456e71f6a94cdc
7
+ data.tar.gz: ebd2f9fd1e2506a0dad2f5ce111ce7e70dc470aec4c553168fbb021c49df5c08d2c415595dba267cedbbe1543135a841fbdecf5a1e3642db739cb23942809079
@@ -8,7 +8,7 @@
8
8
  # This is free software: you are free to change and redistribute it.
9
9
  # There is NO WARRANTY, to the extent permitted by law.
10
10
 
11
- if Pathname.new(__dir__).join('..', 'Gemfile.lock').file?
11
+ if File.file?("#{__dir__}/../Gemfile.lock")
12
12
  require 'rubygems'
13
13
  require 'bundler'
14
14
 
@@ -17,31 +17,35 @@ end
17
17
 
18
18
  $LOAD_PATH.unshift __dir__
19
19
 
20
- if 'development' == ENV['PROJECT_MODE']
21
- require 'bundler/setup' if Kernel.const_defined?('Bundle')
22
-
23
- require 'pp'
24
- begin
25
- require 'coderay'
26
- require 'pry/color_printer'
27
- rescue LoadError => e
28
- warn('%s: %s' % [caller[0], e.message])
29
- end
30
-
31
- # Outputs obj to out in pretty printed format of width columns in width.
32
- #
33
- # If out is omitted, ``STDOUT`` is assumed.
34
- # If width is omitted, ``79`` is assumed.
35
- #
36
- # @param [Object] obj
37
- # @param [IO] out
38
- # @param [Fixnum] width
39
- # @see http://ruby-doc.org/stdlib-2.2.0/libdoc/pp/rdoc/PP.html
40
- def pp(obj, out = STDOUT, width = 79)
41
- args = [obj, out, width].compact
42
- colorable = (out.isatty and Kernel.const_defined?('Pry::ColorPrinter'))
43
-
44
- (colorable ? Pry::ColorPrinter : PP).pp(*args)
20
+ if File.file?("#{__dir__}/../Gemfile.lock")
21
+ if 'development' == ENV['PROJECT_MODE']
22
+ require 'bundler/setup'
23
+
24
+ require 'pp'
25
+ begin
26
+ require 'coderay'
27
+ require 'pry/color_printer'
28
+ rescue LoadError => e
29
+ # rubocop:disable Performance/Caller
30
+ warn('%s: %s' % [caller[0], e.message])
31
+ # rubocop:enable Performance/Caller
32
+ end
33
+
34
+ # Outputs obj to out in pretty printed format of width columns in width.
35
+ #
36
+ # If out is omitted, ``STDOUT`` is assumed.
37
+ # If width is omitted, ``79`` is assumed.
38
+ #
39
+ # @param [Object] obj
40
+ # @param [IO] out
41
+ # @param [Fixnum] width
42
+ # @see http://ruby-doc.org/stdlib-2.2.0/libdoc/pp/rdoc/PP.html
43
+ def pp(obj, out = STDOUT, width = 79)
44
+ args = [obj, out, width].compact
45
+ colorable = (out.isatty and Kernel.const_defined?('Pry::ColorPrinter'))
46
+
47
+ (colorable ? Pry::ColorPrinter : PP).pp(*args)
48
+ end
45
49
  end
46
50
  end
47
51
 
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  major: 1
3
3
  minor: 0
4
- patch: 3
4
+ patch: 4
5
5
  authors: ['Dimitri Arrigoni']
6
6
  email: 'dimitri@arrigoni.me'
7
- date: '2017-08-05'
8
- summary: 'An interface providing cross-platform process operations'
9
- description: 'An interface providing cross-platform process operations'
7
+ date: '2017-08-06'
8
+ summary: 'A cross-platform interface to customize the process name'
9
+ description: 'A cross-platform interface to customize the process name'
10
10
  licenses: ['GPL-3.0']
11
11
  license_header: 'Copyright (C) 2017 Dimitri Arrigoni <dimitri@arrigoni.me>
12
12
  License GPLv3+: GNU GPL version 3 or later
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sys-proc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitri Arrigoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-05 00:00:00.000000000 Z
11
+ date: 2017-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -220,7 +220,7 @@ dependencies:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: '3.6'
223
- description: An interface providing cross-platform process operations
223
+ description: A cross-platform interface to customize the process name
224
224
  email: dimitri@arrigoni.me
225
225
  executables: []
226
226
  extensions: []
@@ -271,5 +271,5 @@ rubyforge_project:
271
271
  rubygems_version: 2.5.1
272
272
  signing_key:
273
273
  specification_version: 4
274
- summary: An interface providing cross-platform process operations
274
+ summary: A cross-platform interface to customize the process name
275
275
  test_files: []