twproxy 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -3
- data/lib/twproxy/proxy.rb +3 -3
- data/twproxy.gemspec +4 -4
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a807cf4f2466eb72d877b5a994c9277cc49265b4
|
4
|
+
data.tar.gz: c5701bf184a8ebbdbc875e88d8be1d6adc1c54b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c098cc5d8733a5f24e49544a4a26d66b9a1e0d65f7b7cb3503a8791e8f3773389e52a10dffb5e60dacf498196152a2d9ed0aae3fa34a419ff834a03319353a7
|
7
|
+
data.tar.gz: e8c6ae8daf1d3945ce5499e6f671c825067d2578fcefaf0a61158864731dfb4999ea418b56aeda6e950a1e55e08137604e9c7e0add386eb0f6d63223483f544b
|
data/Gemfile
CHANGED
data/lib/twproxy/proxy.rb
CHANGED
@@ -49,8 +49,8 @@ class TWProxy < Sinatra::Base
|
|
49
49
|
token = Digest::SHA1.hexdigest(
|
50
50
|
"#{params["user"]}#{hashed_pass}#{settings.auth}"
|
51
51
|
)
|
52
|
-
response.set_cookie("auth", value: token,
|
53
|
-
secure: settings.enable_ssl,
|
52
|
+
response.set_cookie("auth", value: token,
|
53
|
+
secure: settings.enable_ssl,
|
54
54
|
expires: (Date.today >> 1).to_time,
|
55
55
|
httponly: true)
|
56
56
|
|
@@ -90,7 +90,7 @@ class TWProxy < Sinatra::Base
|
|
90
90
|
resp = http.request(req)
|
91
91
|
|
92
92
|
status resp.code
|
93
|
-
headers({"Etag" => resp["Etag"]})
|
93
|
+
headers({"Etag" => resp["Etag"]}) unless resp["Etag"].nil?
|
94
94
|
resp.body
|
95
95
|
end
|
96
96
|
|
data/twproxy.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "twproxy"
|
3
|
-
s.version = "0.1.
|
4
|
-
s.date = "
|
3
|
+
s.version = "0.1.1"
|
4
|
+
s.date = "2020-03-22"
|
5
5
|
s.summary = "TiddlyWiki Proxy"
|
6
6
|
s.description = "An authenticated proxy for TiddlyWiki"
|
7
7
|
s.authors = ["Steve Gattuso"]
|
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.license = "MIT"
|
12
12
|
s.executables << 'twproxy'
|
13
13
|
|
14
|
-
s.add_dependency 'sinatra', '~>
|
15
|
-
s.add_dependency 'haml', '~>
|
14
|
+
s.add_dependency 'sinatra', '~> 2.0'
|
15
|
+
s.add_dependency 'haml', '~> 5.0'
|
16
16
|
s.add_dependency 'rotp', '~> 2.1'
|
17
17
|
end
|
18
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twproxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Gattuso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: haml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '5.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '5.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rotp
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.
|
90
|
+
rubygems_version: 2.6.13
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: TiddlyWiki Proxy
|