wunderbar 1.0.24 → 1.0.25

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: a8913dd13c548196c25b2e72723f04d0f812ae94
4
- data.tar.gz: 6a9a6b50a8d832d0f780d327511b2e18cd950332
3
+ metadata.gz: 710438973a47536b061e65bf8f1f89a553d7f126
4
+ data.tar.gz: 73abd223735d22b5601042e665509179865012ef
5
5
  SHA512:
6
- metadata.gz: 00681db784f8fbe85876a3439fd2aae7b87096a6d80fc34d8c09d42f8886235053b68e554958cdd9e71f32bb355502246d38a9011c24ba0f61308131a0f9169c
7
- data.tar.gz: f092105aabc3cf8d6f9ce47c1e494e8cfaf1b8e268e1fdf30e29181de4ddad6c2b5b31d9aae36b5c154ac08bc0df01c4c094332296cc5c26cef53768be5411af
6
+ metadata.gz: 22402975a71fd1c0d527b2de27c02793fb9cb3ed80641075955a4597b88bca0b4f9dcecb51ebba5752e02fee6b65fe69c657d70a1be1d7e05cb5cf5f3b1f01e1
7
+ data.tar.gz: b2905a43b6d2881dbc48415edf69b84616c6e34bbac2d7f3bc5eef254b7688ac956dcdd87be9c3dbf13bf0cbdd1ef7180c1d4eb11c43bfbee038be258817d4dd
@@ -38,7 +38,8 @@ class Wunderbar::XmlMarkup
38
38
 
39
39
  # compute base
40
40
  base = root.at('base')
41
- base = (base ? base.attrs[:href] : '') || '/'
41
+ base = base && base.attrs[:href]
42
+ base ||= File.dirname(@_scope.env['REQUEST_URI']).chomp('/') + '/'
42
43
 
43
44
  _base = @_scope.env['HTTP_X_WUNDERBAR_BASE']
44
45
  base = base[_base.length..-1] if _base and base.start_with? _base
@@ -2,7 +2,7 @@ module Wunderbar
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 24
5
+ TINY = 25
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/wunderbar.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: wunderbar 1.0.24 ruby lib
2
+ # stub: wunderbar 1.0.25 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "wunderbar"
6
- s.version = "1.0.24"
6
+ s.version = "1.0.25"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.authors = ["Sam Ruby"]
11
- s.date = "2016-07-31"
11
+ s.date = "2016-09-08"
12
12
  s.description = " Wunderbar makes it easy to produce valid HTML5, wellformed XHTML, Unicode\n (utf-8), consistently indented, readable applications.'\n"
13
13
  s.email = "rubys@intertwingly.net"
14
14
  s.files = ["COPYING", "README.md", "lib/wunderbar", "lib/wunderbar.rb", "lib/wunderbar/angularjs", "lib/wunderbar/angularjs.rb", "lib/wunderbar/angularjs/resource.rb", "lib/wunderbar/angularjs/route.rb", "lib/wunderbar/asset.rb", "lib/wunderbar/backtick.rb", "lib/wunderbar/bootstrap", "lib/wunderbar/bootstrap.rb", "lib/wunderbar/bootstrap/theme.rb", "lib/wunderbar/builder.rb", "lib/wunderbar/cgi-methods.rb", "lib/wunderbar/coderay.rb", "lib/wunderbar/coffeescript.rb", "lib/wunderbar/cssproxy.rb", "lib/wunderbar/environment.rb", "lib/wunderbar/eventsource.rb", "lib/wunderbar/html-methods.rb", "lib/wunderbar/installation.rb", "lib/wunderbar/job-control.rb", "lib/wunderbar/jquery", "lib/wunderbar/jquery.rb", "lib/wunderbar/jquery/filter.rb", "lib/wunderbar/jquery/stupidtable.rb", "lib/wunderbar/listen.rb", "lib/wunderbar/logger.rb", "lib/wunderbar/markdown.rb", "lib/wunderbar/marked.rb", "lib/wunderbar/node.rb", "lib/wunderbar/pagedown.rb", "lib/wunderbar/polymer.rb", "lib/wunderbar/rack.rb", "lib/wunderbar/rails.rb", "lib/wunderbar/react.rb", "lib/wunderbar/script.rb", "lib/wunderbar/server.rb", "lib/wunderbar/sinatra.rb", "lib/wunderbar/underscore.rb", "lib/wunderbar/vendor", "lib/wunderbar/vendor/Markdown.Converter.js", "lib/wunderbar/vendor/angular-resource.min.js", "lib/wunderbar/vendor/angular-route.min.js", "lib/wunderbar/vendor/angular.min.js", "lib/wunderbar/vendor/bootstrap-theme.min.css", "lib/wunderbar/vendor/bootstrap.min.css", "lib/wunderbar/vendor/bootstrap.min.js", "lib/wunderbar/vendor/eventsource.min.js", "lib/wunderbar/vendor/jquery-1.11.2.min.js", "lib/wunderbar/vendor/marked.min.js", "lib/wunderbar/vendor/polymer-v0.0.20131003.min.js", "lib/wunderbar/vendor/react-dom.min.js", "lib/wunderbar/vendor/react-with-addons.min.js", "lib/wunderbar/vendor/stupidtable.min.js", "lib/wunderbar/vendor/underscore-min.js", "lib/wunderbar/version.rb", "lib/wunderbar/websocket.rb", "wunderbar.gemspec"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wunderbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.24
4
+ version: 1.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-31 00:00:00.000000000 Z
11
+ date: 2016-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json