cangrejo 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a723a1a4c56c4230ae09448180e50a0ad9770354
4
- data.tar.gz: f75825bd4b6de38c78036f1c00cfc3391bcbedbf
3
+ metadata.gz: b217f333e5111e3a1dd8bfac641827c159b8fb83
4
+ data.tar.gz: 057af301b7610a08f2b2347742f692280b85df11
5
5
  SHA512:
6
- metadata.gz: 83e26e7054ad22b6011b07d764a538fe4f5b03738cfeec8a7a117b51963ee05626fb7cac32bffdc2daaaf8189af5e57996bc85306bedb7bf9b8214dcbd4f31be
7
- data.tar.gz: a31b2190c998a5f88bde610d895e233a3ae21ca60beb0c4bbe51e82eb33cc3200f954ce74445883420ce3d8ae747993d74cebf66436e40c0e24d36d6e862c252
6
+ metadata.gz: c7e46ee3630a9612ba6b107af63fdf11000af998e23ed776685578545b904ac18df55e3646ec9a9d9d3a8bc90fded0cdd666ccef58531ed12fb75dda26411094
7
+ data.tar.gz: 8e80a0e12a6e1b543910202b99638fbe3c0b273e1eab75f7d60b34a7a5a579b7231f3f150c2f9de2413b4c66f2737ef1b5af1091d1e035f249588b1d84d0d59e
@@ -22,10 +22,14 @@ module Cangrejo
22
22
  private
23
23
 
24
24
  def init_launcher
25
- @launcher = Support::Launcher.new @path
25
+ @launcher = Support::Launcher.new @path, launcher_options
26
26
  @launcher.launch
27
27
  end
28
28
 
29
+ def launcher_options
30
+ ['--no-reload']
31
+ end
32
+
29
33
  def init_rest_client
30
34
  RestClient::JsonResource.new Net::SocketUri.new(@launcher.host, '/api/state')
31
35
  end
@@ -2,8 +2,9 @@ module Cangrejo
2
2
  module Support
3
3
  class Launcher
4
4
 
5
- def initialize(_path)
5
+ def initialize(_path, _options=nil)
6
6
  @path = _path
7
+ @options = _options || []
7
8
  select_socket_file
8
9
  end
9
10
 
@@ -14,7 +15,7 @@ module Cangrejo
14
15
  def launch
15
16
  gem_path = File.join(@path, 'Gemfile')
16
17
  # TODO: for some reason, the gemfile path must be specified here, maybe because of rbenv?
17
- @pid = Process.spawn({ 'BUNDLE_GEMFILE' => gem_path }, "bin/crabfarm s --host #{host} --no-reload", chdir: @path)
18
+ @pid = Process.spawn({ 'BUNDLE_GEMFILE' => gem_path }, "bin/crabfarm s --host=#{host} #{@options.join(' ')}", chdir: @path)
18
19
  wait_for_socket
19
20
  end
20
21
 
@@ -1,3 +1,3 @@
1
1
  module Cangrejo
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cangrejo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-20 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client