twproxy 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a8cb551420006f80bcc98c12200e84d9f7085cf
4
- data.tar.gz: bec1947030cd4592e8a1cc0f8c6fb113ca813ddf
3
+ metadata.gz: 2231632b47e9c245c7f9c32a9057611d264bf648
4
+ data.tar.gz: 61cfb7db39a4912d3ef270924e44643f172fd2c1
5
5
  SHA512:
6
- metadata.gz: 98adf42d1334bf25d3e4ed54966e5809da71c9eb1f0aa0177eb7f58f2b49e4ab315a0c7fb64fa0119d11754fb9b331c3179525baecf0987b20bfc40395b8405b
7
- data.tar.gz: ac8a40a11e351c416adb8c93430cc594faccfe9cca6a81fc04a01bc2db068f143e30edb9af8fdbd5d18b1c17e74b467f28cd10f08aa09227817871f4414c1875
6
+ metadata.gz: 10c40a7fc29cd15dccb886e0d31fa580b85411d1092e354d5f37fbd69b71b4d84295dedb38c01076207b83297ffc274c6c8cd9f570693bd7bdcdc03de3149880
7
+ data.tar.gz: 9026423e6f95e823ee5fd1cf3fc42d556e38f92345baebc22d8770ffa318e9e376b6c174db344cf88ca21d2fa5944e655b15f8821e385649b5d350e0f5c748ed
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'sinatra', '~> 2.0'
4
- gem 'haml', '~> 5.0'
5
- gem 'rotp', '~> 2.1'
3
+ gem "sinatra"
4
+ gem "haml"
5
+ gem "rotp"
6
6
 
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"]}) unless resp["Etag"].nil?
93
+ headers({"Etag" => resp["Etag"]})
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.0.2"
4
- s.date = "2020-03-22"
3
+ s.version = "0.1.0"
4
+ s.date = "2016-04-09"
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', '~> 2.0'
15
- s.add_dependency 'haml', '~> 5.0'
14
+ s.add_dependency 'sinatra', '~> 1.4'
15
+ s.add_dependency 'haml', '~> 4.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.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Gattuso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-22 00:00:00.000000000 Z
11
+ date: 2016-04-09 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: '2.0'
19
+ version: '1.4'
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: '2.0'
26
+ version: '1.4'
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: '5.0'
33
+ version: '4.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: '5.0'
40
+ version: '4.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.6.13
90
+ rubygems_version: 2.4.8
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: TiddlyWiki Proxy