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 +4 -4
- data/lib/cangrejo/modes/local.rb +5 -1
- data/lib/cangrejo/support/launcher.rb +3 -2
- data/lib/cangrejo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b217f333e5111e3a1dd8bfac641827c159b8fb83
|
|
4
|
+
data.tar.gz: 057af301b7610a08f2b2347742f692280b85df11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7e46ee3630a9612ba6b107af63fdf11000af998e23ed776685578545b904ac18df55e3646ec9a9d9d3a8bc90fded0cdd666ccef58531ed12fb75dda26411094
|
|
7
|
+
data.tar.gz: 8e80a0e12a6e1b543910202b99638fbe3c0b273e1eab75f7d60b34a7a5a579b7231f3f150c2f9de2413b4c66f2737ef1b5af1091d1e035f249588b1d84d0d59e
|
data/lib/cangrejo/modes/local.rb
CHANGED
|
@@ -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 #{
|
|
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
|
|
data/lib/cangrejo/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|