haml-transpiler-server 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/haml-transpiler-server/cli.rb +7 -4
- data/lib/haml-transpiler-server/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: 16a243954988bb95bc5b6c8016ef3cde52d9d722
|
4
|
+
data.tar.gz: caf38fb6f0433835a49052d0568825d3ae3281da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f728e6d101e7336c120a0cd394f9706d1305c2a7d396e5f0171034e5179215c6950f9dc99a35d767c843b489cfa08fe4f1e0837b6f43b45ae8356dd84c054c3
|
7
|
+
data.tar.gz: 064d982731722645ada6816f9e59be42ca40c7fd432f65b6197e3e241114ed314c29925a89709f2f249390cd54c6ff582e95e44d67566b9895e77fe4b66a2e25
|
data/README.md
CHANGED
@@ -47,6 +47,8 @@ variable.
|
|
47
47
|
By default, the server binds to `0.0.0.0`, but you can change it by setting
|
48
48
|
`HAMLTS_BIND` env variable.
|
49
49
|
|
50
|
+
`HAMLTS_PIDFILE` can be used to configure pidfile location.
|
51
|
+
|
50
52
|
## Development
|
51
53
|
|
52
54
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -7,10 +7,13 @@ module HamlTranspilerServer
|
|
7
7
|
use Rack::Logger
|
8
8
|
|
9
9
|
configure do
|
10
|
-
set :server,
|
11
|
-
set :port,
|
12
|
-
set :bind,
|
13
|
-
set :lock,
|
10
|
+
set :server, :puma
|
11
|
+
set :port, (ENV["HAMLTS_PORT"] || 5487).to_i
|
12
|
+
set :bind, ENV["HAMLTS_BIND"] || "0.0.0.0"
|
13
|
+
set :lock, false
|
14
|
+
pidfile = {}
|
15
|
+
pidfile.merge!(pidfile: ENV["HAMLTS_PIDFILE"]) if ENV["HAMLTS_PIDFILE"]
|
16
|
+
set :server_settings, {}.merge(pidfile)
|
14
17
|
end
|
15
18
|
|
16
19
|
post "/path" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml-transpiler-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fire-Dragon-DoL
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|