gnouch 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gnouch/requestor.rb +2 -0
- metadata +4 -4
data/lib/gnouch/requestor.rb
CHANGED
@@ -7,6 +7,7 @@ module Gnouch
|
|
7
7
|
class Requestor
|
8
8
|
|
9
9
|
def request(request)
|
10
|
+
request[2]["Content-type"] = "application/json"
|
10
11
|
response = http request
|
11
12
|
status, headers, body = response
|
12
13
|
if (200..204).cover? status
|
@@ -17,6 +18,7 @@ module Gnouch
|
|
17
18
|
end
|
18
19
|
|
19
20
|
def block_request(request)
|
21
|
+
request[1]["Content-type"] = "application/json"
|
20
22
|
response = http request
|
21
23
|
status, headers, body = response
|
22
24
|
if (200..204).cover? status
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gnouch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kim Dalsgaard
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-26 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|