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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86651c066205f13ba3d5440aafa439a4c238e129
4
- data.tar.gz: f1fcc3d17bbcb487a948cd55523c22613882928a
3
+ metadata.gz: 16a243954988bb95bc5b6c8016ef3cde52d9d722
4
+ data.tar.gz: caf38fb6f0433835a49052d0568825d3ae3281da
5
5
  SHA512:
6
- metadata.gz: 5d186761f790e84209636d47053f9d3ced8a4fe5c6bf3f1ee5b1ee3ace9f56ee4a06be730191a8ff45eada2bf7727476c0328074cddb507a89f67656791eab69
7
- data.tar.gz: 78553c758e9e08e410369a2bf20ba07f679795a9d99c4a3de6bd51f7fbe211f25a0b0f91015e8c679ca54ad0a91e59d6a4758843ae42daf58b3778874bdd885f
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, :puma
11
- set :port, (ENV["HAMLTS_PORT"] || 5487).to_i
12
- set :bind, ENV["HAMLTS_BIND"] || "0.0.0.0"
13
- set :lock, false
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
@@ -1,3 +1,3 @@
1
1
  module HamlTranspilerServer
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.1.0".freeze
3
3
  end
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.0.0
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-05 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler