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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e7e747b02cc0869ce137660bebe934510e93def930cc59986e2613dc1c939a0
4
- data.tar.gz: 2ec7a9c521540156b1a4ccb3164cdec6a87017cf807a7f3048eb3b9418e5302a
3
+ metadata.gz: 255f4a684ee49123f2acbe5abc15309f68f513bcc3ac8186c0bdab0b5b1af330
4
+ data.tar.gz: 6b942d330af15b3fb6f450c6254498c16e4b5cfffbe836f935d1ac556c9d52c5
5
5
  SHA512:
6
- metadata.gz: b34d5a3ab60ba7da2e80a12349f578beaeda9eeca8014dd8cfab6edc499af300a05405a7a74160a0abad828ddd61a0c1322bcd4501518246bf4ab8c7024abbd3
7
- data.tar.gz: 84d47934871fa119e29c2bb24cd6892bc83ce9dc925ab3307e02d96cde55069b6de486184d6c40a050390ac322933ece9f288fa0a965dd7141a55c1398b00f35
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 < ::StandardError ; end
17
- class NgHttpServerNotFound < ::StandardError ; end
18
- class NgHttpServerNotExecutable < ::StandardError ; end
19
- class NodeModulesDirectoryNotFound < ::StandardError ; end
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
@@ -1,3 +1,3 @@
1
1
  module CapybaraSpa
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara_spa
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
  - Zach Dennis