wovnrb 0.1.37 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wovnrb.rb +1 -1
- data/lib/wovnrb/store.rb +2 -2
- data/lib/wovnrb/version.rb +1 -1
- data/test/lib/headers_test.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53c910b709838d8e022deb2c867374c83015e637
|
4
|
+
data.tar.gz: ea9f80befdfa384e8d3bbd514b10e13b8c2cdb4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e20028655f471bce65364b10d319046725e82ef30b7e86ea7210e8f5eb87517682ed4f799254760e26c9dfbabe338ad825c519946da691e0b39b149e632fe88
|
7
|
+
data.tar.gz: 02d0912575354f915cae2869b03f9869470367f446dddd6928a10e26c8a1480a28f1a7463a6e942770fdcc8de9578fd5615b7a81ad36d3b6a3d3265927c9afc9
|
data/lib/wovnrb.rb
CHANGED
@@ -22,7 +22,7 @@ module Wovnrb
|
|
22
22
|
end
|
23
23
|
@env = env
|
24
24
|
headers = Headers.new(env, STORE.settings)
|
25
|
-
if STORE.settings
|
25
|
+
if STORE.settings['test_mode'] && STORE.settings['test_url'] != headers.url
|
26
26
|
return @app.call(env)
|
27
27
|
end
|
28
28
|
# redirect if the path is set to the default language (for SEO purposes)
|
data/lib/wovnrb/store.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'redis'
|
2
2
|
require 'net/http'
|
3
|
-
require 'Logger'
|
3
|
+
require 'Logger' unless defined?(Logger)
|
4
4
|
|
5
5
|
module Wovnrb
|
6
6
|
|
@@ -70,7 +70,7 @@ module Wovnrb
|
|
70
70
|
end
|
71
71
|
# log errors
|
72
72
|
if errors.length > 0
|
73
|
-
logger = Logger.new('
|
73
|
+
logger = Logger.new('log/error.log')
|
74
74
|
errors.each do |e|
|
75
75
|
logger.error(e)
|
76
76
|
end
|
data/lib/wovnrb/version.rb
CHANGED
data/test/lib/headers_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wovnrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Sandford
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-08-
|
12
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogumbo
|