cypress_rails 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +62 -0
  3. data/.gitignore +3 -0
  4. data/README.md +1 -1
  5. data/bin/cypress-rails +5 -0
  6. data/cypress_rails.gemspec +5 -3
  7. data/lib/cypress_rails/cli.rb +61 -0
  8. data/lib/cypress_rails/runner.rb +31 -0
  9. data/lib/cypress_rails/server.rb +8 -15
  10. data/lib/cypress_rails/version.rb +1 -1
  11. data/lib/cypress_rails.rb +1 -23
  12. data/spec/cypress_rails/runner_spec.rb +83 -0
  13. data/spec/cypress_rails/server_spec.rb +10 -11
  14. data/spec/spec_helper.rb +2 -0
  15. data/spec/support/dummy_failing/config.ru +19 -0
  16. data/spec/support/dummy_failing/cypress/integration/basic_spec.js +10 -0
  17. data/spec/support/dummy_failing/cypress/plugins/index.js +17 -0
  18. data/spec/support/dummy_failing/cypress/support/commands.js +25 -0
  19. data/spec/support/dummy_failing/cypress/support/index.js +20 -0
  20. data/spec/support/dummy_failing/cypress.json +1 -0
  21. data/spec/support/dummy_failing/package.json +14 -0
  22. data/spec/support/dummy_failing/yarn.lock +1018 -0
  23. data/spec/support/dummy_passing/config.ru +19 -0
  24. data/spec/support/dummy_passing/cypress/integration/basic_spec.js +10 -0
  25. data/spec/support/dummy_passing/cypress/plugins/index.js +17 -0
  26. data/spec/support/dummy_passing/cypress/support/commands.js +25 -0
  27. data/spec/support/dummy_passing/cypress/support/index.js +20 -0
  28. data/spec/support/dummy_passing/cypress.json +1 -0
  29. data/spec/support/dummy_passing/package.json +14 -0
  30. data/spec/support/dummy_passing/yarn.lock +1018 -0
  31. metadata +82 -18
  32. data/.travis.yml +0 -9
  33. data/spec/support/dummy/config.ru +0 -10
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cypress_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
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-04 00:00:00.000000000 Z
11
+ date: 2018-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.20.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.20.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,30 +56,30 @@ dependencies:
42
56
  name: pry
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ">="
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '0'
61
+ version: 0.11.3
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ">="
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '0'
68
+ version: 0.11.3
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rack
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ">="
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '0'
75
+ version: 2.0.5
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ">="
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '0'
82
+ version: 2.0.5
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +126,16 @@ dependencies:
112
126
  name: rubocop
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - ">="
129
+ - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '0'
131
+ version: 0.55.0
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - ">="
136
+ - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '0'
138
+ version: 0.55.0
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: rubygems-tasks
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -136,30 +150,64 @@ dependencies:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0.2'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rspec_junit_formatter
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.3.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.3.0
139
167
  description: Easily run a test server for cypress to query against
140
168
  email: szymon@szeliga.co
141
- executables: []
169
+ executables:
170
+ - cypress-rails
142
171
  extensions: []
143
172
  extra_rdoc_files: []
144
173
  files:
174
+ - ".circleci/config.yml"
145
175
  - ".document"
146
176
  - ".gitignore"
147
177
  - ".rdoc_options"
148
178
  - ".rspec"
149
179
  - ".rubocop.yml"
150
- - ".travis.yml"
151
180
  - ChangeLog.md
152
181
  - Gemfile
153
182
  - LICENSE.txt
154
183
  - README.md
155
184
  - Rakefile
185
+ - bin/cypress-rails
156
186
  - cypress_rails.gemspec
157
187
  - lib/cypress_rails.rb
188
+ - lib/cypress_rails/cli.rb
189
+ - lib/cypress_rails/runner.rb
158
190
  - lib/cypress_rails/server.rb
159
191
  - lib/cypress_rails/version.rb
192
+ - spec/cypress_rails/runner_spec.rb
160
193
  - spec/cypress_rails/server_spec.rb
161
194
  - spec/spec_helper.rb
162
- - spec/support/dummy/config.ru
195
+ - spec/support/dummy_failing/config.ru
196
+ - spec/support/dummy_failing/cypress.json
197
+ - spec/support/dummy_failing/cypress/integration/basic_spec.js
198
+ - spec/support/dummy_failing/cypress/plugins/index.js
199
+ - spec/support/dummy_failing/cypress/support/commands.js
200
+ - spec/support/dummy_failing/cypress/support/index.js
201
+ - spec/support/dummy_failing/package.json
202
+ - spec/support/dummy_failing/yarn.lock
203
+ - spec/support/dummy_passing/config.ru
204
+ - spec/support/dummy_passing/cypress.json
205
+ - spec/support/dummy_passing/cypress/integration/basic_spec.js
206
+ - spec/support/dummy_passing/cypress/plugins/index.js
207
+ - spec/support/dummy_passing/cypress/support/commands.js
208
+ - spec/support/dummy_passing/cypress/support/index.js
209
+ - spec/support/dummy_passing/package.json
210
+ - spec/support/dummy_passing/yarn.lock
163
211
  - spec/support/matchers/be_open_port.rb
164
212
  homepage: https://rubygems.org/gems/cypress_rails
165
213
  licenses:
@@ -186,7 +234,23 @@ signing_key:
186
234
  specification_version: 4
187
235
  summary: Integrate cypress.io with your rails app
188
236
  test_files:
237
+ - spec/cypress_rails/runner_spec.rb
189
238
  - spec/cypress_rails/server_spec.rb
190
239
  - spec/spec_helper.rb
191
- - spec/support/dummy/config.ru
240
+ - spec/support/dummy_failing/config.ru
241
+ - spec/support/dummy_failing/cypress.json
242
+ - spec/support/dummy_failing/cypress/integration/basic_spec.js
243
+ - spec/support/dummy_failing/cypress/plugins/index.js
244
+ - spec/support/dummy_failing/cypress/support/commands.js
245
+ - spec/support/dummy_failing/cypress/support/index.js
246
+ - spec/support/dummy_failing/package.json
247
+ - spec/support/dummy_failing/yarn.lock
248
+ - spec/support/dummy_passing/config.ru
249
+ - spec/support/dummy_passing/cypress.json
250
+ - spec/support/dummy_passing/cypress/integration/basic_spec.js
251
+ - spec/support/dummy_passing/cypress/plugins/index.js
252
+ - spec/support/dummy_passing/cypress/support/commands.js
253
+ - spec/support/dummy_passing/cypress/support/index.js
254
+ - spec/support/dummy_passing/package.json
255
+ - spec/support/dummy_passing/yarn.lock
192
256
  - spec/support/matchers/be_open_port.rb
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- ---
2
- language: ruby
3
- rvm:
4
- - 2.0
5
- - 2.1
6
- - 2.2
7
- - 2.3
8
- - 2.4
9
- - 2.5
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- run ->(_env) {
4
- sleep 1
5
- [
6
- 200,
7
- { "Content-Type" => "text/html" },
8
- ["OK"]
9
- ]
10
- }