sinatra_request_body 0.0.2 → 0.0.3
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 -3
- data/lib/sinatra_request_body.rb +2 -0
- data/lib/sinatra_request_body/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: 35a86295f372b9de365fe35e09de2ed6dd34a7df
|
|
4
|
+
data.tar.gz: bacab809178e72a50fbd8d92dfb4db91af2f4cf1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66d7595fad01113e53dbce9d72adc43fd02bb7c1a46cbf4bcc74b95a9fc0cca5fb15ca651f27a19462787e17c2880ed141f44aaeb3539b909e16289d5fe616b5
|
|
7
|
+
data.tar.gz: 870755e6946c3ecaac27683cfa795e40d00f17aaa6a79de4fa946f95120a0dcb628972194dc641c852b74dc31c175bffbc26436c72aad99d5cf1785adcae766e
|
data/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# SinatraRequestBody
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Merge request body to params for sinatra
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
Add this line to your application's Gemfile:
|
|
8
8
|
|
|
9
|
-
```
|
|
9
|
+
```
|
|
10
10
|
gem 'sinatra_request_body'
|
|
11
11
|
```
|
|
12
12
|
|
|
@@ -20,7 +20,19 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
require 'sinatra_request_body'
|
|
24
|
+
|
|
25
|
+
register Sinatra::RequestBody
|
|
26
|
+
|
|
27
|
+
or work in your custom sinatra app
|
|
28
|
+
|
|
29
|
+
require 'sinatra_request_body'
|
|
30
|
+
|
|
31
|
+
class MyApp < Sinatra::Base
|
|
32
|
+
|
|
33
|
+
register Sinatra::RequestBody
|
|
34
|
+
|
|
35
|
+
end
|
|
24
36
|
|
|
25
37
|
## Contributing
|
|
26
38
|
|
data/lib/sinatra_request_body.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra_request_body
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- li-qiang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|