wunderbar 1.0.18 → 1.0.19

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: 975a0ebdb8ed585e047ee343fa18ee036f8ba38f
4
- data.tar.gz: 50267ba72ed73050b23a217d9f3abfc2bbf268b8
3
+ metadata.gz: 00c358e7d9d5c8f139420478422150c4b46824be
4
+ data.tar.gz: 90340d40d3746a7c45bedc2a81a160bea4030b15
5
5
  SHA512:
6
- metadata.gz: 5d5073c760970ace45d4a4c95a1bebdcac696a09a8e50bcc42ad7503f4697bd4e8d7ceec5b02b71895a4d4ca93ed69168fa0c455354fcf3c03e8b0b265e6ecb9
7
- data.tar.gz: c0fe79197a3e9abae9cba6be47327614be66df098860179ef56dda4f3a040e229a399b78270f8bd741d771bee21d2f2491118f600f2a2b3c13999922f21d14fb
6
+ metadata.gz: 11c25ff2196ba3c7156d7c86a78bf3e83bd89408234ff99f8d096434414ad39dc0493fb9de4e7b688fd3672d7cab2ea505919bc0b3626f495d0cf44c687a6126
7
+ data.tar.gz: 4631f32d215109cd501e4abd32b0e4669cd380151d2a27470068e5c13c42f2bbea3610b7407f433f0a8cdef6152a20fd5f80b7aa0443a8afd336578ce19fa285
@@ -43,13 +43,13 @@ class Wunderbar::XmlMarkup
43
43
  _base = @_scope.env['HTTP_X_WUNDERBAR_BASE']
44
44
  base = base[_base.length..-1] if _base and base.start_with? _base
45
45
 
46
- script = @_scope.env['SCRIPT_NAME']
47
- base = base[script.length..-1] if script and base.start_with? script
48
-
49
46
  if base == '..' or base.end_with? '/..'
50
- base = (Pathname.new(@_scope.env['REQUEST_URI']) + base).to_s
47
+ base = (Pathname.new(@_scope.env['REQUEST_URI']) + '../' + base).to_s
51
48
  end
52
49
 
50
+ script = @_scope.env['SCRIPT_NAME']
51
+ base = base[script.length..-1] if script and base.start_with? script
52
+
53
53
  base = base[1..-1] if base.start_with? '/'
54
54
 
55
55
  # compute client side container
@@ -80,19 +80,7 @@ class Wunderbar::XmlMarkup
80
80
  if script.attrs[:src]
81
81
  src = script.attrs[:src]
82
82
 
83
- if not base.empty?
84
- src = File.join(base, src)
85
- elsif @_scope.env['PATH_INFO']
86
- # evaluate src relative to PATH_INFO
87
- path = @_scope.env['PATH_INFO'].split('/')
88
- path.shift
89
- path.pop
90
- while src.start_with? '../' and not path.empty?
91
- src = src.sub('../', '')
92
- path.pop
93
- end
94
- src = File.join(path.join('/'), src) unless path.empty?
95
- end
83
+ src = File.join(base, src) if not base.empty?
96
84
  src.untaint
97
85
 
98
86
  name = File.expand_path(src, @_scope.settings.public_folder.untaint)
@@ -2,7 +2,7 @@ module Wunderbar
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 18
5
+ TINY = 19
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.18 ruby lib
2
+ # stub: wunderbar 1.0.19 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "wunderbar"
6
- s.version = "1.0.18"
6
+ s.version = "1.0.19"
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-02-08"
11
+ s.date = "2016-02-11"
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.18
4
+ version: 1.0.19
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-02-08 00:00:00.000000000 Z
11
+ date: 2016-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json