scorn 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -0
- data/lib/scorn.rb +3 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cebb2eff53282bd30d083de64a8ed4ed2beba5fe05b6b61d2faf2c32dea4ed91
|
4
|
+
data.tar.gz: bfd2381a856f11c5ebe4f278a25d207b76ef1ab5415ac2c448e68f5766c259ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45151e4ce0f25e4213d6fdd645bf09ce93df55f1a5bbe9036927884cbe555fc45189a3fa0b0724efc8520eded294944e38d76395cf05bcc07ff52276c33049a5
|
7
|
+
data.tar.gz: 1523769e1a4bf6efa6132d0e3c9bedb81cb7580c28d48918f226cdc5ca73c128937440df6fbafb7ce468fd10b3127cdbdaadf2080442e3b23bdd25128c30cdbd
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/scorn.rb
CHANGED
@@ -10,7 +10,7 @@ require 'net/http'
|
|
10
10
|
|
11
11
|
module Scorn
|
12
12
|
|
13
|
-
VERSION = '0.3.
|
13
|
+
VERSION = '0.3.1'
|
14
14
|
|
15
15
|
class << self
|
16
16
|
|
@@ -35,7 +35,7 @@ module Scorn
|
|
35
35
|
|
36
36
|
@user_agent =
|
37
37
|
opts[:user_agent] ||
|
38
|
-
"
|
38
|
+
"scorn #{VERSION} - " +
|
39
39
|
[ 'Ruby', RUBY_VERSION, RUBY_RELEASE_DATE, RUBY_PLATFORM ].join(' ')
|
40
40
|
|
41
41
|
@ssl_verify_mode =
|
@@ -101,8 +101,6 @@ module Scorn
|
|
101
101
|
when :post then Net::HTTP::Post.new(u)
|
102
102
|
else fail ArgumentError.new("HTTP #{type} not implemented")
|
103
103
|
end
|
104
|
-
req.instance_eval { @header.clear }
|
105
|
-
def req.set_header(k, v); @header[k] = [ v ]; end
|
106
104
|
|
107
105
|
headers.each do |k, v|
|
108
106
|
hk =
|
@@ -112,7 +110,7 @@ module Scorn
|
|
112
110
|
when :type then 'Content-Type'
|
113
111
|
else k.to_s
|
114
112
|
end
|
115
|
-
req
|
113
|
+
req[hk] = v
|
116
114
|
end
|
117
115
|
|
118
116
|
req
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mettraux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|