nonnative 1.53.0 → 1.54.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64af28e950a344ef821dbe75028136dc1d79a7fa6a6abfb388b4428e44e11d98
4
- data.tar.gz: 15e4681afc473711a5b78329680636b3adb082517bd5b0adb5da11e9d8c8a552
3
+ metadata.gz: 63eddb7da58ac327d06fe7c5c4afa9e7fe02ee87c1d85bf647487eb9f9c8ada1
4
+ data.tar.gz: f0d9a156314a157a214964eea33a9dda849bd16958a46477752b4cf4ff9f9658
5
5
  SHA512:
6
- metadata.gz: e5cb7c08078df70ca47d49941e29207594fbe1b118048e925c5c433265328f4e1792688f54a483d67ffc35745d46e7f1f6f7e94bcfbe632c18ba443e1bc0eae2
7
- data.tar.gz: b1d4715e7557ef4e949a92c01acfaca7bff28ed56d3eda5bb6fa05249a945bb4790673e0aa7076ba00e4e376dccabb8b24f7524ed2536d7643a4b84813302354
6
+ metadata.gz: 01a312147ae7fe1682cf69153e474644ad97c8c1e65c8794e96c688119026f48ca03acaf6711ab0fdc22a05c3ab3fd1afd5d2481b04126c4dcebdf30854fba68
7
+ data.tar.gz: 813c64155f262fc3751bb405bd31093dbf8527b286d41fb69a58fc63ddcb37d60eaf527e21e9e1f278e27ce589dff9497b2df91d5c1cca590564f39d17e1b683
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
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.54.0](https://github.com/alexfalkowski/nonnative/compare/v1.53.0...v1.54.0) (2021-10-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * only add less than for memory ([#99](https://github.com/alexfalkowski/nonnative/issues/99)) ([fed4929](https://github.com/alexfalkowski/nonnative/commit/fed4929a157982adcfbefac9a79f593289234418))
11
+
5
12
  ## [1.53.0](https://github.com/alexfalkowski/nonnative/compare/v1.52.0...v1.53.0) (2021-10-11)
6
13
 
7
14
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.53.0)
4
+ nonnative (1.54.0)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.5)
6
6
  cucumber (>= 7, < 8)
7
7
  get_process_mem (~> 0.2.1)
data/README.md CHANGED
@@ -121,7 +121,7 @@ end
121
121
  With cucumber you can also verify how much memory is used by the process:
122
122
 
123
123
  ```cucumber
124
- Then the process 'start_1' should consume '<=' '20mb' of memory
124
+ Then the process 'start_1' should consume less than '25mb' of memory
125
125
  ```
126
126
 
127
127
  ### Servers
@@ -30,22 +30,11 @@ Then('I should reset the proxy for service {string}') do |name|
30
30
  service.proxy.reset
31
31
  end
32
32
 
33
- Then('the process {string} should consume {string} {string} of memory') do |name, op, mem|
33
+ Then('the process {string} should consume less than {string} of memory') do |name, mem|
34
34
  process = Nonnative.pool.process_by_name(name)
35
35
  _, size, type = mem.split(/(\d+)/)
36
36
  actual = process.memory.send(type)
37
37
  size = size.to_i
38
38
 
39
- case op
40
- when '='
41
- expect(actual).to eq(size)
42
- when '<'
43
- expect(actual).to be < size
44
- when '<='
45
- expect(actual).to be <= size
46
- when '>'
47
- expect(actual).to be > size
48
- when '>='
49
- expect(actual).to be >= size
50
- end
39
+ expect(actual).to be < size
51
40
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.53.0'
4
+ VERSION = '1.54.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nonnative
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.53.0
4
+ version: 1.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Falkowski