cypress-rails 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b753d03802970fd8e870d84825cf9338ddb220749a94776b059bc76efba15569
4
- data.tar.gz: '09f816ccaf74d9af77155079de053fa25c874bac8dfc7423852314a97be95a34'
3
+ metadata.gz: a14e87a5a70d81fe84303607d0927c51766fb088af7ec1939ba73e57319ecc8e
4
+ data.tar.gz: 4afd968f15e3074ce55d7d24cedaa0362b9542d4661f061debc76fbd8ffa212e
5
5
  SHA512:
6
- metadata.gz: b5e66032ab98b6e029485816713bb42eee64c3effccf35fd7b1d69cad84844b232156dc2bcde4413f0247946486aa2f129eb3201f0cbc4cb2ec1b2fc90675b61
7
- data.tar.gz: 87b6866d459c8e6a235e635e062ea687c8478e798d716b93a805f463441def37eb9d573f4b89a580b4f617c05a66fff30089ab3131ffe9e8c9d2ef18555eb1dd
6
+ metadata.gz: 2fe07821acc26a46e1480caf536d03d69f77e400e53fe28672930ec16ae62e55ddda54d1f296f57f5e1535c75c06c74a6221a3ca87f5cbb239236f3e3b0850dc
7
+ data.tar.gz: f3a026adf4ec214285eaf2fb004b9984d0bc2f1842495a7a6c6809e6363826ee951de8116380309e105ed887f541412aabe5a9c7980c4f2ce36e555ebcd567ee
@@ -34,9 +34,9 @@ jobs:
34
34
  # Yarn dependencies
35
35
  - restore_cache:
36
36
  keys:
37
- - v3-yarn-{{ checksum "example/an_app/package.json" }}
37
+ - v4-yarn-{{ checksum "example/an_app/yarn.lock" }}
38
38
  # fallback to using the latest cache if no exact match is found
39
- - v3-yarn-
39
+ - v4-yarn-
40
40
 
41
41
  - run: |
42
42
  cd example/an_app
@@ -46,7 +46,7 @@ jobs:
46
46
  paths:
47
47
  - example/an_app/node_modules
48
48
  - ~/.cache
49
- key: v3-yarn-{{ checksum "example/an_app/package.json" }}
49
+ key: v4-yarn-{{ checksum "example/an_app/yarn.lock" }}
50
50
 
51
51
  - run: bundle exec rake
52
52
  - run: ./script/test_example_app
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.4.1
4
+
5
+ * Add backcompat for Ruby 2.4
6
+ ([#47](https://github.com/testdouble/cypress-rails/pull/47))
7
+
3
8
  ## 0.4.0
4
9
 
5
10
  * Add a `CYPRESS_RAILS_HOST` option that allows a hostname to be specified (as
@@ -1,53 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cypress-rails (0.4.0)
4
+ cypress-rails (0.4.1)
5
5
  puma (>= 3.8.0)
6
6
  railties (>= 5.2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (6.0.3.2)
12
- actionview (= 6.0.3.2)
13
- activesupport (= 6.0.3.2)
11
+ actionpack (6.0.3.4)
12
+ actionview (= 6.0.3.4)
13
+ activesupport (= 6.0.3.4)
14
14
  rack (~> 2.0, >= 2.0.8)
15
15
  rack-test (>= 0.6.3)
16
16
  rails-dom-testing (~> 2.0)
17
17
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
- actionview (6.0.3.2)
19
- activesupport (= 6.0.3.2)
18
+ actionview (6.0.3.4)
19
+ activesupport (= 6.0.3.4)
20
20
  builder (~> 3.1)
21
21
  erubi (~> 1.4)
22
22
  rails-dom-testing (~> 2.0)
23
23
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
- activesupport (6.0.3.2)
24
+ activesupport (6.0.3.4)
25
25
  concurrent-ruby (~> 1.0, >= 1.0.2)
26
26
  i18n (>= 0.7, < 2)
27
27
  minitest (~> 5.1)
28
28
  tzinfo (~> 1.1)
29
29
  zeitwerk (~> 2.2, >= 2.2.2)
30
- ast (2.4.0)
30
+ ast (2.4.1)
31
31
  builder (3.2.4)
32
- concurrent-ruby (1.1.6)
32
+ concurrent-ruby (1.1.7)
33
33
  crass (1.0.6)
34
34
  erubi (1.9.0)
35
35
  i18n (1.8.5)
36
36
  concurrent-ruby (~> 1.0)
37
- jaro_winkler (1.5.4)
38
- loofah (2.6.0)
37
+ loofah (2.7.0)
39
38
  crass (~> 1.0.2)
40
39
  nokogiri (>= 1.5.9)
41
40
  method_source (1.0.0)
42
41
  mini_portile2 (2.4.0)
43
- minitest (5.14.0)
44
- nio4r (2.5.2)
42
+ minitest (5.14.2)
43
+ nio4r (2.5.4)
45
44
  nokogiri (1.10.10)
46
45
  mini_portile2 (~> 2.4.0)
47
- parallel (1.19.1)
48
- parser (2.7.1.2)
49
- ast (~> 2.4.0)
50
- puma (4.3.5)
46
+ parallel (1.19.2)
47
+ parser (2.7.1.5)
48
+ ast (~> 2.4.1)
49
+ puma (5.0.2)
51
50
  nio4r (~> 2.0)
52
51
  rack (2.2.3)
53
52
  rack-test (1.1.0)
@@ -57,29 +56,36 @@ GEM
57
56
  nokogiri (>= 1.6)
58
57
  rails-html-sanitizer (1.3.0)
59
58
  loofah (~> 2.3)
60
- railties (6.0.3.2)
61
- actionpack (= 6.0.3.2)
62
- activesupport (= 6.0.3.2)
59
+ railties (6.0.3.4)
60
+ actionpack (= 6.0.3.4)
61
+ activesupport (= 6.0.3.4)
63
62
  method_source
64
63
  rake (>= 0.8.7)
65
64
  thor (>= 0.20.3, < 2.0)
66
65
  rainbow (3.0.0)
67
66
  rake (13.0.1)
67
+ regexp_parser (1.8.1)
68
68
  rexml (3.2.4)
69
- rubocop (0.82.0)
70
- jaro_winkler (~> 1.5.1)
69
+ rubocop (0.92.0)
71
70
  parallel (~> 1.10)
72
- parser (>= 2.7.0.1)
71
+ parser (>= 2.7.1.5)
73
72
  rainbow (>= 2.2.2, < 4.0)
73
+ regexp_parser (>= 1.7)
74
74
  rexml
75
+ rubocop-ast (>= 0.5.0)
75
76
  ruby-progressbar (~> 1.7)
76
77
  unicode-display_width (>= 1.4.0, < 2.0)
77
- rubocop-performance (1.5.2)
78
- rubocop (>= 0.71.0)
78
+ rubocop-ast (0.7.0)
79
+ parser (>= 2.7.1.5)
80
+ strscan (>= 1.0.0)
81
+ rubocop-performance (1.8.1)
82
+ rubocop (>= 0.87.0)
83
+ rubocop-ast (>= 0.4.0)
79
84
  ruby-progressbar (1.10.1)
80
- standard (0.4.1)
81
- rubocop (~> 0.82.0)
82
- rubocop-performance (~> 1.5.2)
85
+ standard (0.7)
86
+ rubocop (= 0.92)
87
+ rubocop-performance (= 1.8.1)
88
+ strscan (1.0.3)
83
89
  thor (1.0.1)
84
90
  thread_safe (0.3.6)
85
91
  tzinfo (1.2.7)
@@ -1,7 +1,9 @@
1
1
  require_relative "env"
2
2
 
3
3
  module CypressRails
4
- class Config < Struct.new(:dir, :host, :port, :base_path, :transactional_server, :cypress_cli_opts, keyword_init: true)
4
+ class Config
5
+ attr_accessor :dir, :host, :port, :base_path, :transactional_server, :cypress_cli_opts
6
+
5
7
  def initialize(
6
8
  dir: Env.fetch("CYPRESS_RAILS_DIR", default: Dir.pwd),
7
9
  host: Env.fetch("CYPRESS_RAILS_HOST", default: "127.0.0.1"),
@@ -10,7 +12,12 @@ module CypressRails
10
12
  transactional_server: Env.fetch("CYPRESS_RAILS_TRANSACTIONAL_SERVER", type: :boolean, default: true),
11
13
  cypress_cli_opts: Env.fetch("CYPRESS_RAILS_CYPRESS_OPTS", default: "")
12
14
  )
13
- super
15
+ @dir = dir
16
+ @host = host
17
+ @port = port
18
+ @base_path = base_path
19
+ @transactional_server = transactional_server
20
+ @cypress_cli_opts = cypress_cli_opts
14
21
  end
15
22
 
16
23
  def to_s
@@ -1,3 +1,3 @@
1
1
  module CypressRails
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-02 00:00:00.000000000 Z
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -137,9 +137,7 @@ files:
137
137
  - lib/cypress-rails/starts_rails_server.rb
138
138
  - lib/cypress-rails/tracks_resets.rb
139
139
  - lib/cypress-rails/version.rb
140
- - node_modules/.yarn-integrity
141
140
  - script/test_example_app
142
- - yarn.lock
143
141
  homepage: https://github.com/testdouble/cypress-rails
144
142
  licenses:
145
143
  - MIT
@@ -1,10 +0,0 @@
1
- {
2
- "systemParams": "darwin-x64-72",
3
- "modulesFolders": [],
4
- "flags": [],
5
- "linkedModules": [],
6
- "topLevelPatterns": [],
7
- "lockfileEntries": {},
8
- "files": [],
9
- "artifacts": {}
10
- }
data/yarn.lock DELETED
@@ -1,4 +0,0 @@
1
- # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
- # yarn lockfile v1
3
-
4
-