textbringer-http_client 0.0.1 → 0.0.2
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 +15 -22
- data/lib/textbringer/http_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b1b0d309ab7a0992c6d29c0da987bf5755c3313b89947cdd9befb8ecd374437
|
|
4
|
+
data.tar.gz: 9ce9d732f065885608fde17c40ac08f2fd64e035408a2da7b6820fd2e49b439c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e7fb1ee8497368e5e20bf9a93b7d5b1073224d78a8f6556367709510885474216b921001876e115714f5d56f52dc3dbfce0eeb0dbfe42e576cc983c379a6ed1
|
|
7
|
+
data.tar.gz: 9466c7a8883dcd1a22440d35dc2768a9a442459dfd3e58cc97b0017d31c84dbf21426a16c116a82c3804d4a47124f348dca00827fa44b7428bfcadd9dfbce74d
|
data/README.md
CHANGED
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
# textbringer-
|
|
1
|
+
# textbringer-http_client
|
|
2
2
|
|
|
3
|
-
[
|
|
4
|
-
|
|
5
|
-
[GhostText](https://github.com/GhostText/GhostText) plugin for [Textbringer](https://github.com/shugo/textbringer).
|
|
3
|
+
HTTP client plugin for [Textbringer](https://github.com/shugo/textbringer).
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
9
|
-
$ gem install textbringer-
|
|
10
|
-
|
|
11
|
-
## Configuration
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
# The host of the GhostText server.
|
|
15
|
-
CONFIG[:ghost_text_host] = "127.0.0.1"
|
|
16
|
-
# The port of the GhostText server.
|
|
17
|
-
CONFIG[:ghost_text_port] = 4001
|
|
18
|
-
```
|
|
7
|
+
$ gem install textbringer-http_client
|
|
19
8
|
|
|
20
9
|
## Usage
|
|
21
10
|
|
|
22
|
-
Type `M-x
|
|
23
|
-
|
|
24
|
-
## Development
|
|
11
|
+
Type `M-x send_http_request` to send an HTTP request, for example, in the following buffer:
|
|
25
12
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
```
|
|
14
|
+
POST http://localhost:4000/graphql
|
|
15
|
+
Content-Type: application/json
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
"query":"query todo{ todo(id: 1) { id content } }",
|
|
19
|
+
"variables":null,
|
|
20
|
+
"operationName":"todo"
|
|
21
|
+
}
|
|
22
|
+
```
|
|
29
23
|
|
|
30
24
|
## Contributing
|
|
31
25
|
|
|
32
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/shugo/textbringer-
|
|
33
|
-
|
|
26
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/shugo/textbringer-http_client.
|
|
34
27
|
|
|
35
28
|
## License
|
|
36
29
|
|