haml-transpiler-server 1.1.0 → 1.2.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: 16a243954988bb95bc5b6c8016ef3cde52d9d722
4
- data.tar.gz: caf38fb6f0433835a49052d0568825d3ae3281da
3
+ metadata.gz: a5ea39049fb0826b19849d9adbb8b9a8811d4e95
4
+ data.tar.gz: 98134e8dbf3f646ca607948c8f901cfe55ea4aea
5
5
  SHA512:
6
- metadata.gz: 3f728e6d101e7336c120a0cd394f9706d1305c2a7d396e5f0171034e5179215c6950f9dc99a35d767c843b489cfa08fe4f1e0837b6f43b45ae8356dd84c054c3
7
- data.tar.gz: 064d982731722645ada6816f9e59be42ca40c7fd432f65b6197e3e241114ed314c29925a89709f2f249390cd54c6ff582e95e44d67566b9895e77fe4b66a2e25
6
+ metadata.gz: 2b23be9608ee1b37ad537b0e464ee5701175b6f6e72a73c3f9b48c1f5f3ca1cc5b1e56a757c4c5bce05856212e47503577d0a7246999953e7fd086e84aad910b
7
+ data.tar.gz: ff3d1b1e57f4065a532c427b7d52679a98dd0b0d71e99625e06303277538cab7d083d983158a912608ee20be7e19c3bf39b4d888d8c0b218e98ae14113426c0f
data/README.md CHANGED
@@ -8,6 +8,10 @@ Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
10
  gem 'haml-transpiler-server'
11
+ # And one of the followings
12
+ gem 'puma'
13
+ gem 'thin'
14
+ gem 'webrick'
11
15
  ```
12
16
 
13
17
  And then execute:
@@ -17,6 +21,7 @@ And then execute:
17
21
  Or install it yourself as:
18
22
 
19
23
  $ gem install haml-transpiler-server
24
+ $ gem install thin # or puma or webrick
20
25
 
21
26
  ## Usage
22
27
 
@@ -49,6 +54,9 @@ By default, the server binds to `0.0.0.0`, but you can change it by setting
49
54
 
50
55
  `HAMLTS_PIDFILE` can be used to configure pidfile location.
51
56
 
57
+ `HAMLTS_SERVER` can be used to configure which server to use. By default it
58
+ tries in sequence `puma`, `thin` and `webrick`.
59
+
52
60
  ## Development
53
61
 
54
62
  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.
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "rspec", "~> 3.0"
24
24
  spec.add_development_dependency "rack-test", "~> 0.6"
25
25
  spec.add_dependency "sinatra", "~> 1.4"
26
- spec.add_dependency "puma", "~> 3.2"
27
26
  spec.add_dependency "haml"
28
27
  spec.add_dependency "tilt"
29
28
  end
@@ -7,7 +7,7 @@ module HamlTranspilerServer
7
7
  use Rack::Logger
8
8
 
9
9
  configure do
10
- set :server, :puma
10
+ set :server, (ENV["HAMLTS_SERVER"] || [:puma, :thin, :webrick])
11
11
  set :port, (ENV["HAMLTS_PORT"] || 5487).to_i
12
12
  set :bind, ENV["HAMLTS_BIND"] || "0.0.0.0"
13
13
  set :lock, false
@@ -1,3 +1,3 @@
1
1
  module HamlTranspilerServer
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.2.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.1.0
4
+ version: 1.2.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-28 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.4'
83
- - !ruby/object:Gem::Dependency
84
- name: puma
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.2'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '3.2'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: haml
99
85
  requirement: !ruby/object:Gem::Requirement