capybara_spa 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara_spa/server/ng_static_server.rb +6 -4
- data/lib/capybara_spa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 255f4a684ee49123f2acbe5abc15309f68f513bcc3ac8186c0bdab0b5b1af330
|
4
|
+
data.tar.gz: 6b942d330af15b3fb6f450c6254498c16e4b5cfffbe836f935d1ac556c9d52c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bb18b51fb30a17043685808c1405a0b0ae67b02bd2adfebeca5197376bf7889867b1f991d9b40fa37f01aa6c14a7c6c311945bf72ae107c7a437e22fce9733e
|
7
|
+
data.tar.gz: 0ec570c654aa125d6c2fb1e0aa25a126d09c3950d7d4e11ad4067cdd208ace99502bd23d2d5b7521d20696b5c1e17c9650c17eef91b5ec0c0c3a673a00739a17
|
@@ -2,6 +2,8 @@ require 'logger'
|
|
2
2
|
|
3
3
|
module CapybaraSpa
|
4
4
|
module Server
|
5
|
+
class Error < ::StandardError ; end
|
6
|
+
|
5
7
|
# CapybaraSpa::Server::NgStaticServer is a class that wraps running
|
6
8
|
# a static Angular app using angular-http-server. It can take the
|
7
9
|
# following environment variables:
|
@@ -13,10 +15,10 @@ module CapybaraSpa
|
|
13
15
|
# * NG_PORT: what port to run the Angular app on. Defaults to 5001.
|
14
16
|
#
|
15
17
|
class NgStaticServer
|
16
|
-
class NgAppNotFound <
|
17
|
-
class NgHttpServerNotFound <
|
18
|
-
class NgHttpServerNotExecutable <
|
19
|
-
class NodeModulesDirectoryNotFound <
|
18
|
+
class NgAppNotFound < Error ; end
|
19
|
+
class NgHttpServerNotFound < Error ; end
|
20
|
+
class NgHttpServerNotExecutable < Error ; end
|
21
|
+
class NodeModulesDirectoryNotFound < Error ; end
|
20
22
|
|
21
23
|
attr_accessor :build_path, :http_server_bin_path, :log_file, :pid_file, :port
|
22
24
|
attr_accessor :pid
|
data/lib/capybara_spa/version.rb
CHANGED