haml-transpiler-server 1.2.0 → 1.3.0
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/README.md +10 -1
- data/lib/haml-transpiler-server/cli.rb +4 -0
- 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: daa020a547232d1702122d7751ace194a2171ebc
|
4
|
+
data.tar.gz: 0caf319110b5113275d0c9221b8d7e7af57353a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 870d4de746451532634458b006bd08941d06683f33caf3b74dacc970ea4e47657e5953006aaeb02b5a83326f3b2d30a55f3b0cfd2f8c21e3b379ae7c02826717
|
7
|
+
data.tar.gz: 9d92a7683a4cde237a8a55c73a5e493d528b6a223135861f163981b9c98b66e5a6e5fab38c99c2773c3c0c9142f4e63f996e6a6c62d5491deef1c14b0b689a31
|
data/README.md
CHANGED
@@ -32,7 +32,11 @@ Usage is simple:
|
|
32
32
|
It will start an HTTP server on port 5487.
|
33
33
|
|
34
34
|
Performing an HTTP POST request to `/content` with `content` param set to a
|
35
|
-
valid HAML string will return the HTML version of it in the body.
|
35
|
+
valid HAML string will return the HTML version of it in the body. For example:
|
36
|
+
|
37
|
+
curl -X POST -F 'content=%div hello world' 'http://127.0.0.1:5487/content'
|
38
|
+
|
39
|
+
Will output `<div>hello world</div>`.
|
36
40
|
|
37
41
|
Performing an HTTP POST request to `/path` with `path` param set to a _full_
|
38
42
|
file path with where the server is hosted will return the HTML version of the
|
@@ -41,6 +45,11 @@ content of the file, if it's valid HAML.
|
|
41
45
|
If any error is raised, a generic `500` code is reported, with error message
|
42
46
|
and backtrace as body.
|
43
47
|
|
48
|
+
You can also test if the server is running by checking if the `/test` endpoint
|
49
|
+
is reachable:
|
50
|
+
|
51
|
+
curl 'http://127.0.0.1:5487/test'
|
52
|
+
|
44
53
|
## Configuration
|
45
54
|
|
46
55
|
The gem starts in development/production/test based on `RACK_ENV` environment
|
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.3.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-08-
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|