rspectacles 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -5
- data/lib/rspectacles/config.rb +2 -2
- data/lib/rspectacles/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d44e048cdd2464d2a9597d0df39747d69f68267e
|
4
|
+
data.tar.gz: 2638ad3033b75dc96223c949f8c8bc4ea04c49f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f996de3771c2547e1029bedce76a382ac1c0dee98a6a1ff3c890247866a740372dc75e02f30d75a204b3d1263dfc87c8012647a6e604313e6e56ac93d31e3de6
|
7
|
+
data.tar.gz: 68f7f7fe1c9f8aa5b4002970241ba33e7e3d5f81c9649bb9d8e9a96b294bc5a55375aa467460be7f448e7cb66cacde4d934e899d6375e5a7eed5e7fd0e56eff0
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -70,12 +70,9 @@ Start the server:
|
|
70
70
|
|
71
71
|
Configuration settings can all be set through environment variables:
|
72
72
|
|
73
|
-
# server settings
|
74
|
-
RSPECTACLES_PORT = 4567
|
75
|
-
|
76
73
|
# client settings
|
77
|
-
RSPECTACLES_URL
|
78
|
-
RSPECTACLES_RUN_KEY
|
74
|
+
RSPECTACLES_URL # where server is running
|
75
|
+
RSPECTACLES_RUN_KEY # set to log parallel builds to same report
|
79
76
|
RSPECTACLES_BATCH_SIZE = 1000
|
80
77
|
RSPECTACLES_TIMEOUT = 15
|
81
78
|
|
data/lib/rspectacles/config.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'ostruct'
|
2
2
|
require 'yaml'
|
3
3
|
require 'erb'
|
4
|
+
require 'securerandom'
|
4
5
|
|
5
6
|
module RSpectacles
|
6
7
|
class Config
|
@@ -10,9 +11,8 @@ module RSpectacles
|
|
10
11
|
|
11
12
|
def defaults
|
12
13
|
{
|
13
|
-
sinatra_port: ENV['RSPECTACLES_PORT'] || ENV['PORT'] || 4567,
|
14
14
|
batch_size: (ENV['RSPECTACLES_BATCH_SIZE'] || 1000).to_i,
|
15
|
-
last_run_primary_key: ENV['RSPECTACLES_RUN_KEY'] || ENV['CIRCLE_BUILD_NUM'] ||
|
15
|
+
last_run_primary_key: ENV['RSPECTACLES_RUN_KEY'] || ENV['CIRCLE_BUILD_NUM'] || SecureRandom.hex,
|
16
16
|
timeout: (ENV['RSPECTACLES_TIMEOUT'] || 15).to_i,
|
17
17
|
rspectacles_url: ENV['RSPECTACLES_URL']
|
18
18
|
}
|
data/lib/rspectacles/version.rb
CHANGED