lgm 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/lgm +2 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e8ea21a3dcc620efae91855370468b2acff1c2b
4
- data.tar.gz: 619e4ba6ea023ec477575f3280e17d2f4683dd52
3
+ metadata.gz: fcf16f47af3611f29cece9b6f9ce32f597ca2d8e
4
+ data.tar.gz: dfbd1d5267cbb28699258547c349b8f8ee690598
5
5
  SHA512:
6
- metadata.gz: 95bdf2087d5155b13033ec74fb03c053446982bc7f75b852781c995758ebf53e1f35050563fb31ea92588420a8dc559b9e3f1947566a25b5a599782f810d61ef
7
- data.tar.gz: a719488ac42fdf562dae87fede3f4af2498ffc1cf04213bd376817f31b27abc80b8ab9c0ab86b2e6ca1556246d96e50e4e49e8f36880dd2775995439dad70571
6
+ metadata.gz: 64e6983984a6655390a9a33ed84c4f3cf91445e3d46d9394c3071bede29f463dfaeff59fff7e3204734c5505f8710be4a511a70573a85f4f251e9f92a70f240c
7
+ data.tar.gz: 4c3138ec65caef8a480f16bb13e82800dd5f21c2ccf533720e9265c9fa3614a80f20d1a73ef9b7f59dfe8518f176fa0f0f2dbc3526ff9f1c7d14c1306c6c5f23
data/bin/lgm CHANGED
@@ -4,14 +4,11 @@ require_relative '../server/constants'
4
4
  require 'fileutils'
5
5
  FileUtils.mkdir_p LGM_DIR
6
6
 
7
- Thread.new do
8
- `redis-server --unixsocket #{LGM_DIR}/redis.sock --port 0 --dir #{LGM_DIR} --appendonly yes`
9
- end
7
+ redis_pid = spawn "redis-server --unixsocket #{LGM_DIR}/redis.sock --port 0 --dir #{LGM_DIR} --appendonly yes > /dev/null"
8
+ at_exit { `kill #{redis_pid}` }
10
9
 
11
10
  require 'puma'
12
11
  require_relative '../server/app'
13
- at_exit { R.shutdown }
14
-
15
12
 
16
13
  root = File.dirname __dir__
17
14
  server = Puma::Server.new App.new "#{root}/static/dist"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lgm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoly Chernow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-30 00:00:00.000000000 Z
11
+ date: 2018-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hobby