diffend-monitor 0.2.46 → 0.2.48

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: d7a9ce0136a3adc532898cdabc5972be7ed152c0479a7ad724ec66a5a563777a
4
- data.tar.gz: ece9ff8f2226deff51cb670b0cb985247fd4b497d0538015d736192bb0548b01
3
+ metadata.gz: 53e7694c009effe48d47ad40863501bd42434e10d9fd4a40f9b40ebf85fbb540
4
+ data.tar.gz: e1e74ff81452167d5893cc4ebe152ebfeaa4617ec663fcf113d192e39c35c6c4
5
5
  SHA512:
6
- metadata.gz: a2b69a6ca6aacb8a99d45c6333f6da252b4a952d939d704b75f6d122e9cb5c383bb222992488226ebc3a400bd9db91a310365279141d612524c191b67a5b2d69
7
- data.tar.gz: fe78cb956b12566737ab17dd092c2a42eab82cafd9dd5ca81f409978b0f837c28b4ff99d0617aeae847085390dc173736f3786d31d5973b54f856cfa7cc35261
6
+ metadata.gz: 5fb4329c9133d223aae72982edf949bad347082e607fcb968df930d925f8cff366ae27d4b066195d9bb4db8c72ac616dbed040670ed9fa3225100a94955e8d62
7
+ data.tar.gz: faec1b6b4f224add7641e79aab3bdceb0a2d6644e69a6d2364c323b24da97b10ca8131ebcc344438910983649c1aa478964896631eb6e77926262f9f75a39c36
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased][master]
3
+ ## [0.2.48] (2021-05-31)
4
+ - Add Windows host user detection
5
+
6
+ ## [0.2.47] (2021-05-31)
7
+ - Bundler 2.2.18 support
8
+ - Bundler 2.2.19 support
9
+ - Windows support
4
10
 
5
11
  ## [0.2.46] (2021-05-05)
6
12
  - Optimized file selection to make releases smaller and easier to read through.
data/diffend.gemspec CHANGED
@@ -14,7 +14,7 @@ files_locations = %w[
14
14
  ]
15
15
 
16
16
  Gem::Specification.new do |spec|
17
- spec.name = 'diffend-monitor'
17
+ spec.name = 'diffend'
18
18
  spec.version = Diffend::VERSION
19
19
  spec.authors = ['Tomasz Pajor', 'Maciej Mensfeld']
20
20
  spec.email = ['contact@diffend.io']
@@ -7,6 +7,11 @@ module Diffend
7
7
  module LocalContext
8
8
  # Module responsible for building host information from local context
9
9
  module Host
10
+ # Regexp that checks if we're running under Windows
11
+ WINDOWS_REGEXP = /cygwin|mswin|mingw|bccwin|wince|emx/
12
+
13
+ private_constant :WINDOWS_REGEXP
14
+
10
15
  class << self
11
16
  # Build host information
12
17
  #
@@ -24,7 +29,7 @@ module Diffend
24
29
  'version' => uname[:version]
25
30
  },
26
31
  'tags' => tags,
27
- 'user' => Etc.getpwuid(Process.uid).name,
32
+ 'user' => Etc.getpwuid(Process.uid)&.name || ENV['USERNAME'],
28
33
  'pid' => Process.pid
29
34
  }.freeze
30
35
  end
@@ -36,7 +41,7 @@ module Diffend
36
41
  # @return [Hash]
37
42
  def command
38
43
  if File.exist?($PROGRAM_NAME)
39
- if defined?(JRUBY_VERSION)
44
+ if defined?(JRUBY_VERSION) || WINDOWS_REGEXP =~ RUBY_PLATFORM
40
45
  name = $PROGRAM_NAME.split('/').last.strip
41
46
  command = "#{name} #{ARGV.join(' ')}"
42
47
  else
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Diffend
4
4
  # Current version
5
- VERSION = '0.2.46'
5
+ VERSION = '0.2.48'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diffend-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.46
4
+ version: 0.2.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Pajor
@@ -35,7 +35,7 @@ cert_chain:
35
35
  2DND//YJUikn1zwbz1kT70XmHd97B4Eytpln7K+M1u2g1pHVEPW4owD/ammXNpUy
36
36
  nt70FcDD4yxJQ+0YNiHd0N8IcVBM1TMIVctMNQ==
37
37
  -----END CERTIFICATE-----
38
- date: 2021-05-05 00:00:00.000000000 Z
38
+ date: 2021-05-31 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: bundler
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubygems_version: 3.2.15
133
+ rubygems_version: 3.2.19
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: OSS supply chain security and management platform
metadata.gz.sig CHANGED
Binary file