cypress_rails 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc774eee5532ad17f97100e095d6b22b09b46edc
4
- data.tar.gz: 309f738180e7214345a3df694797f8fd1afc5238
3
+ metadata.gz: c212de353dc00cfe2301b732d84de95c2e0df047
4
+ data.tar.gz: 5c7721559a16191db9d1c7eae4667ea732af2617
5
5
  SHA512:
6
- metadata.gz: '067649ab8ecdfb4d268da1e3c530d4d769357fb03edd9957b2bf381b2bfecad28ab1f89616f717c29f292ede56a6a33603309b567567ddb7076111fb6c6bb3d3'
7
- data.tar.gz: d05a69989befd487b2a338922ff73e932aee4522c5e11c1149f76798ecce3365063192f2b752167b18fd5d650aa348094069b3b7622a00e471619d864c07f42e
6
+ metadata.gz: 13c4cb8cf964ece2ce08f7dac3225d407bbbf0f42bf13aff3fa9bbfe58f3d6afca10ca11fdb700512ed57377d21d2e94fb7b52fca2a4ba8dedbd46e0377e9ba7
7
+ data.tar.gz: c70752e25f1a41dc43b51fc27fecaf661d6fced473709a97f192519d8ec174cb53989ddf7129738af1b0a6bf2f5eecc82dc66a04c122ef154e18fdb9d593be33
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.4.2 / 2018-05-25
2
+
3
+ * add --record to cypress when CYPRESS_RECORD_KEY is present in #run method
4
+
1
5
  ### 0.4.1 / 2018-05-23
2
6
 
3
7
  * renamed `seeds` to `scripts`
@@ -11,13 +11,15 @@ module CypressRails
11
11
  end
12
12
 
13
13
  def run
14
+ command = [bin_path, "run", "-P #{tests_path}"]
15
+ command << "--record" if ENV.fetch("CYPRESS_RECORD_KEY", false)
14
16
  pid = Process.spawn(
15
17
  {
16
18
  "CYPRESS_app_host" => host,
17
19
  "CYPRESS_app_port" => port.to_s,
18
20
  "CYPRESS_baseUrl" => "http://#{host}:#{port}"
19
21
  },
20
- [bin_path, "run", "-P #{tests_path}"].join(" "),
22
+ command.join(" "),
21
23
  out: output,
22
24
  err: [:child, :out]
23
25
  )
@@ -2,5 +2,5 @@
2
2
 
3
3
  module CypressRails
4
4
  # cypress_rails version
5
- VERSION = "0.4.1"
5
+ VERSION = "0.4.2"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cypress_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Szymon Szeliga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-23 00:00:00.000000000 Z
11
+ date: 2018-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor