rspectacles 0.4.0 → 0.4.1

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
  SHA1:
3
- metadata.gz: 7ad15310a5b2e9712ce803911cd98521cb89bf16
4
- data.tar.gz: 7ac51e01e5634330dc9c5ff6f109ebc522d7fb83
3
+ metadata.gz: d44e048cdd2464d2a9597d0df39747d69f68267e
4
+ data.tar.gz: 2638ad3033b75dc96223c949f8c8bc4ea04c49f9
5
5
  SHA512:
6
- metadata.gz: 739fc4b1b8328491e6e97854718b607fad6e6c4ca3f6256689ad8cc39ff0ba1e70b1ce3358eb6edcaa769635e3286da4c60ecad63fcf309a1a67263005be8bd7
7
- data.tar.gz: 106d48147ffc87cf7e8416920cf7e7b1529694810c50ec0e3100320edd323be292eeb69f5c44ddad3ba6a0d6bcff5addfdcdb860f4bfb43f9b2c5b4580b1323b
6
+ metadata.gz: f996de3771c2547e1029bedce76a382ac1c0dee98a6a1ff3c890247866a740372dc75e02f30d75a204b3d1263dfc87c8012647a6e604313e6e56ac93d31e3de6
7
+ data.tar.gz: 68f7f7fe1c9f8aa5b4002970241ba33e7e3d5f81c9649bb9d8e9a96b294bc5a55375aa467460be7f448e7cb66cacde4d934e899d6375e5a7eed5e7fd0e56eff0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspectacles (0.4.0)
4
+ rspectacles (0.4.1)
5
5
  httparty
6
6
  pg
7
7
  puma
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 = nil
78
- RSPECTACLES_RUN_KEY = 'rspec-current-run'
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
 
@@ -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'] || 'rspec-current-run',
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
  }
@@ -1,3 +1,3 @@
1
1
  module RSpectacles
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspectacles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wheeler