jist 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jist.rb +3 -1
- metadata +2 -2
data/lib/jist.rb
CHANGED
@@ -5,7 +5,7 @@ require 'json'
|
|
5
5
|
# It just gists.
|
6
6
|
module Jist
|
7
7
|
|
8
|
-
VERSION = '0.9.
|
8
|
+
VERSION = '0.9.2'
|
9
9
|
|
10
10
|
# Exception tag for errors raised while gisting.
|
11
11
|
module Error; end
|
@@ -72,6 +72,7 @@ module Jist
|
|
72
72
|
|
73
73
|
request = Net::HTTP::Post.new(url)
|
74
74
|
request.body = JSON.dump(json)
|
75
|
+
request.content_type = 'application/json'
|
75
76
|
|
76
77
|
retried = false
|
77
78
|
|
@@ -118,6 +119,7 @@ module Jist
|
|
118
119
|
:note => "The jist gem",
|
119
120
|
:note_url => "https://github.com/ConradIrwin/jist"
|
120
121
|
})
|
122
|
+
request.content_type = 'application/json'
|
121
123
|
request.basic_auth(username, password)
|
122
124
|
|
123
125
|
response = http(request)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|