nonnative 1.55.0 → 1.57.0

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: 79bdca40e04cd36c05a4c55decc071e3b2b9eaedd6e86705137ed6ce3b4bfb17
4
- data.tar.gz: 9b6e731b3b5e03a33d8741d02c25a2362d28a827b4b68b0ab6815456c9879fc7
3
+ metadata.gz: 3d9620b9a9416b10419818af1325090b652954957e61cb2af8145350c67cbda8
4
+ data.tar.gz: 53f816756bc6d2012765a673b38940767adca626f05db397009b8e7fdb12a68e
5
5
  SHA512:
6
- metadata.gz: 3be9c8ce41dc33c6d48a509d5949802ae93ad184d58280963b6dde931c596f7a2314be67a77d799c011834547d9a02ff93d99ab40a14ce773b01b8f2018604a8
7
- data.tar.gz: af509161aae16e936e702da20baf7d86fc68f79802577eb9c01f3ef9d144e5b038378f0d835a8ab6902888590750475d8792dc61ec8f193c64e861e35c46c0c7
6
+ metadata.gz: 01e32801f3bb31a582448a7631be074e52dd6b862aecd55c0c8d9b290760cfadb5c9d661b4d28ee0333d783813c574b7f57298dd840b671c728664a5203ec4f0
7
+ data.tar.gz: eb5fc0b72af274bcb5c8d60805cdb7fe110f7001ff52a9eff8ac992572f551cb71e90163ff25c2e3913abc97f9003895b125705a4f5ab2484ee2be49f96bb1cc
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ AllCops:
4
4
  NewCops: enable
5
5
 
6
6
  Layout/LineLength:
7
- Max: 160
7
+ Max: 165
8
8
 
9
9
  Metrics/MethodLength:
10
10
  Max: 20
data/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.57.0](https://github.com/alexfalkowski/nonnative/compare/v1.56.1...v1.57.0) (2022-03-28)
6
+
7
+
8
+ ### Features
9
+
10
+ * **go:** make sure we generate a unique file ([#111](https://github.com/alexfalkowski/nonnative/issues/111)) ([d260baf](https://github.com/alexfalkowski/nonnative/commit/d260baf8801e73660052d095935de67bbdca207c))
11
+
12
+ ### [1.56.1](https://github.com/alexfalkowski/nonnative/compare/v1.56.0...v1.56.1) (2022-03-28)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **process:** use key for env ([#110](https://github.com/alexfalkowski/nonnative/issues/110)) ([48f1959](https://github.com/alexfalkowski/nonnative/commit/48f1959cb36047ed88e1407313ef4828182142eb))
18
+
19
+ ## [1.56.0](https://github.com/alexfalkowski/nonnative/compare/v1.55.0...v1.56.0) (2022-03-28)
20
+
21
+
22
+ ### Features
23
+
24
+ * **process:** make sure we honour existing env variables ([#109](https://github.com/alexfalkowski/nonnative/issues/109)) ([b601974](https://github.com/alexfalkowski/nonnative/commit/b601974b50e8df7cc16dd0bd5c32a16f462b1053))
25
+
5
26
  ## [1.55.0](https://github.com/alexfalkowski/nonnative/compare/v1.54.4...v1.55.0) (2022-03-25)
6
27
 
7
28
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.55.0)
4
+ nonnative (1.57.0)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.5)
6
6
  cucumber (>= 7, < 8)
7
7
  get_process_mem (~> 0.2.1)
@@ -17,10 +17,11 @@ module Nonnative
17
17
  attr_reader :exec, :output
18
18
 
19
19
  def flags(cmd, params)
20
+ suffix = SecureRandom.alphanumeric(4)
20
21
  m = File.basename(exec, File.extname(exec))
21
22
  p = params.gsub(/\W/, '')
22
23
  name = [m, cmd, p].reject(&:empty?).join('-')
23
- path = "#{output}/#{name}"
24
+ path = "#{output}/#{name}-#{suffix}"
24
25
 
25
26
  [
26
27
  "-test.cpuprofile=#{path}-cpu.prof",
@@ -55,6 +55,10 @@ module Nonnative
55
55
  environment = service.environment || {}
56
56
  environment = environment.transform_keys(&:to_s).transform_values(&:to_s)
57
57
 
58
+ environment.each_key do |k|
59
+ environment[k] = ENV[k] || environment[k]
60
+ end
61
+
58
62
  spawn(environment, service.command, %i[out err] => [service.log, 'a'])
59
63
  end
60
64
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.55.0'
4
+ VERSION = '1.57.0'
5
5
  end
data/lib/nonnative.rb CHANGED
@@ -4,6 +4,7 @@ require 'socket'
4
4
  require 'timeout'
5
5
  require 'yaml'
6
6
  require 'open3'
7
+ require 'securerandom'
7
8
 
8
9
  require 'grpc'
9
10
  require 'sinatra'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nonnative
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.55.0
4
+ version: 1.57.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Falkowski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2022-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby