nonnative 0.6.1 → 0.7.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +8 -1
- data/lib/nonnative.rb +2 -3
- data/lib/nonnative/{cucumber.rb → before.rb} +2 -0
- data/lib/nonnative/configuration.rb +5 -0
- data/lib/nonnative/process.rb +1 -1
- data/lib/nonnative/startup.rb +7 -0
- data/lib/nonnative/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caaeeda0c8cfa9f73850eced4aeadc2fa602424f7d749ee28f2f2a9ec45dda10
|
4
|
+
data.tar.gz: 7ed9c8e94bfd34a4f714d0a8f9ea63142cda7c63c17810e00d88565d1e77c05d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee1f63623d00407e211f26b7878a1a8ef5fc56890d94c96a7a84f5e17ef2a450e60760de4e43b8fe9ef7762b33c7564cf254e2fe73852c99a0f7dd66f4c0ed1f
|
7
|
+
data.tar.gz: 0a94df8cc89e2a221f75c7c2cdf2c8f6233342f3e5eddaf348e5d2ae9273867b72c4c1865da982281c3991f150157a2c189830a3658b3a1d2a7d6f33d78fa383
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -30,7 +30,13 @@ Or install it yourself as:
|
|
30
30
|
|
31
31
|
## Usage
|
32
32
|
|
33
|
-
Configure nonnative with the
|
33
|
+
Configure nonnative with the following:
|
34
|
+
|
35
|
+
- Process that you want to start.
|
36
|
+
- A timeout value.
|
37
|
+
- Port to verify.
|
38
|
+
- The file you want STDOUT to be logged to.
|
39
|
+
- The strategy (Startup will start the process once and before will hook into cucumbers Before and After).
|
34
40
|
|
35
41
|
```ruby
|
36
42
|
require 'nonnative'
|
@@ -40,5 +46,6 @@ Nonnative.configure do |config|
|
|
40
46
|
config.timeout = 0.5
|
41
47
|
config.port = 12_321
|
42
48
|
config.file = 'logs/output'
|
49
|
+
config.strategy = :startup or :before
|
43
50
|
end
|
44
51
|
```
|
data/lib/nonnative.rb
CHANGED
@@ -3,12 +3,9 @@
|
|
3
3
|
require 'socket'
|
4
4
|
require 'timeout'
|
5
5
|
|
6
|
-
require 'cucumber'
|
7
|
-
|
8
6
|
require 'nonnative/version'
|
9
7
|
require 'nonnative/error'
|
10
8
|
require 'nonnative/configuration'
|
11
|
-
require 'nonnative/cucumber'
|
12
9
|
require 'nonnative/process'
|
13
10
|
require 'nonnative/logger'
|
14
11
|
|
@@ -24,6 +21,8 @@ module Nonnative
|
|
24
21
|
|
25
22
|
def configure
|
26
23
|
yield configuration if block_given?
|
24
|
+
|
25
|
+
require "nonnative/#{configuration.strategy}"
|
27
26
|
end
|
28
27
|
|
29
28
|
def start
|
data/lib/nonnative/process.rb
CHANGED
data/lib/nonnative/version.rb
CHANGED
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: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Falkowski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -143,11 +143,12 @@ files:
|
|
143
143
|
- bin/console
|
144
144
|
- bin/setup
|
145
145
|
- lib/nonnative.rb
|
146
|
+
- lib/nonnative/before.rb
|
146
147
|
- lib/nonnative/configuration.rb
|
147
|
-
- lib/nonnative/cucumber.rb
|
148
148
|
- lib/nonnative/error.rb
|
149
149
|
- lib/nonnative/logger.rb
|
150
150
|
- lib/nonnative/process.rb
|
151
|
+
- lib/nonnative/startup.rb
|
151
152
|
- lib/nonnative/version.rb
|
152
153
|
- nonnative.gemspec
|
153
154
|
homepage: https://github.com/alexfalkowski/nonnative
|