nonnative 1.53.0 → 1.54.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/nonnative/cucumber.rb +2 -13
- data/lib/nonnative/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63eddb7da58ac327d06fe7c5c4afa9e7fe02ee87c1d85bf647487eb9f9c8ada1
|
4
|
+
data.tar.gz: f0d9a156314a157a214964eea33a9dda849bd16958a46477752b4cf4ff9f9658
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
124
|
+
Then the process 'start_1' should consume less than '25mb' of memory
|
125
125
|
```
|
126
126
|
|
127
127
|
### Servers
|
data/lib/nonnative/cucumber.rb
CHANGED
@@ -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
|
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
|
-
|
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
|
data/lib/nonnative/version.rb
CHANGED