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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48267e3d6147c0fa23c27a54e53895a0830e61a6
4
- data.tar.gz: 47c15e957323c220e9348c0736247f3a2f67215d
3
+ metadata.gz: 53c910b709838d8e022deb2c867374c83015e637
4
+ data.tar.gz: ea9f80befdfa384e8d3bbd514b10e13b8c2cdb4c
5
5
  SHA512:
6
- metadata.gz: 211018b6b73db62671b34a2d31b2455479f9af9652d56351291674def10ef63be24299df32049800708c26b03ef1fa3be3df79d345e0d3c029ad1eb14bb868ab
7
- data.tar.gz: 71947f8e26a230990bb6cd2b1035d89ce6b029deb811dba1431498877fb8cad18f20967fae34f9a5fc770aadd7ac8fbd8e010f9ce767ce2e3dde60fb20bb88a7
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.test_mode && STORE.settings.test_url != headers.url
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('../error.log')
73
+ logger = Logger.new('log/error.log')
74
74
  errors.each do |e|
75
75
  logger.error(e)
76
76
  end
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.37"
2
+ VERSION = "0.1.38"
3
3
  end
@@ -11,8 +11,7 @@ class HeadersTest < Minitest::Test
11
11
 
12
12
  def test_initialize_env
13
13
  env = get_env
14
- h = Wovnrb::Headers.new(env, {})
15
- binding.pry
14
+ #h = Wovnrb::Headers.new(env, {})
16
15
  #assert_equal(''
17
16
  end
18
17
 
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.37
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-11 00:00:00.000000000 Z
12
+ date: 2015-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogumbo