wovnrb 0.1.25 → 0.1.26

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: 8ad06128651b058d3407c0f9b62d9db22809d819
4
- data.tar.gz: 5d21ebaabab456c034721e80d3b92a39615bb09e
3
+ metadata.gz: 9f110beeffebb50ef5d15b014db223e3e3f2ce35
4
+ data.tar.gz: 6b00c9b3e379ab78a1391411a042b673a1228d87
5
5
  SHA512:
6
- metadata.gz: 3114abd2754b1631058e6f98f451506c93a536a22df0485e4b4686ded849489ce3d05ad10ce21371c7ffa85e757894b4a58fdcfae0eee1fa08b3dbfd9c13b47b
7
- data.tar.gz: 9c738341f864ae1c72c008f14a4909041e61b30ab232b1379b84681ca713ca7b315ebc812b1ce58b745f49559888f0ebdc4ae5e1affc020ba3eab58469c61440
6
+ metadata.gz: 48f0b5e691cd34076b55de7717076d0d8ff56701282c94337eadefcc2720f4bf37fba6fe12e02ef6c3f68a6b4e1d043cdbbfbd188217f6c5f01dc13ef22a009c
7
+ data.tar.gz: 228fe99dc21a7973fda1851ba4205a6e29b5e5da0270933d19345319e0b54212a96354e7cf04f7bf257ad7fe709a543be9fd1214d5a27983c043262401117241
data/lib/wovnrb.rb CHANGED
@@ -16,9 +16,9 @@ module Wovnrb
16
16
  end
17
17
 
18
18
  def call(env)
19
- Rails.logger.error("++++++++++++++++++++++++++ENV++++++++++++++++++++++++")
20
- Rails.logger.error(env)
21
- Rails.logger.error("++++++++++++++++++++++++++ENV++++++++++++++++++++++++")
19
+ #Rails.logger.error("++++++++++++++++++++++++++ENV++++++++++++++++++++++++")
20
+ #Rails.logger.error(env)
21
+ #Rails.logger.error("++++++++++++++++++++++++++ENV++++++++++++++++++++++++")
22
22
  @env = env
23
23
  STORE.refresh_settings
24
24
  headers = Headers.new(env, STORE.settings)
@@ -112,7 +112,7 @@ module Wovnrb
112
112
  end
113
113
  insert_node = Nokogiri::XML::Node.new('script', d)
114
114
  insert_node['src'] = '//j.wovn.io/0'
115
- insert_node['data-wovnio'] = "key=#{STORE.settings['user_token']}&backend=true&currentLang=#{lang}&urlPattern=#{STORE.settings['url_pattern_name']}"
115
+ insert_node['data-wovnio'] = "key=#{STORE.settings['user_token']}&backend=true&currentLang=#{lang}&defaultLang=#{STORE.settings['default_lang']}&urlPattern=#{STORE.settings['url_pattern_name']}"
116
116
  # do this so that there will be a closing tag (better compatibility with browsers)
117
117
  insert_node.content = ' '
118
118
  parent_node = d.at_css('head') || d.at_css('body') || d.at_css('html')
@@ -18,6 +18,8 @@ module Wovnrb
18
18
  # Add '/' to PATH_INFO as a possible fix for pow server
19
19
  @env['REQUEST_URI'] = (@env_['PATH_INFO'] =~ /^[^\/]/ ? '/' : '') + @env['PATH_INFO'] + (@env['QUERY_STRING'].size == 0 ? '' : "?#{@env['QUERY_STRING']}")
20
20
  end
21
+ # REQUEST_URI is expected to not contain the server name
22
+ # heroku contains http://...
21
23
  if @env['REQUEST_URI'] =~ /:\/\//
22
24
  @env['REQUEST_URI'] = @env['REQUEST_URI'].sub(/^.*:\/\/[^\/]+/, '')
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.25"
2
+ VERSION = "0.1.26"
3
3
  end
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.25
4
+ version: 0.1.26
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-06-23 00:00:00.000000000 Z
12
+ date: 2015-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogumbo