wunderbar 0.21.0 → 0.21.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTFhYjVkZGYwMGZmMWJkMDE3OWVhNTYzOTg0YWMwMjc0OWE0MTMzZQ==
4
+ OGE1ODA3MmFhMjIzNGI3MTNiY2M1ZDhhZDc0MDI5NjM2YzUwNDk3Yg==
5
5
  data.tar.gz: !binary |-
6
- YmJkOTM5YTQ3Yjc2MDQ5YjhmYTVjNjRhODAxOWUwYzdjZjFmNmU0MQ==
6
+ ZTA4NjAxYzAzZjE0NGNkNjY4NjZhYmU1YTFhMzlkMDNhMGNlZDI4Ng==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTZmZWMyZWRmMTc1NTc0ZTM4NDFlNjMzNzQ4YTRiNWUxMDVjNzQxZmJiMmU0
10
- N2ZjZGQ3MWJiN2YyMjRmMGJiOGYzYTYxNTQyMTRjMGJiOTE0MGIzMjFhMmMz
11
- ZTU4YTI4NmQxZGU3YjY0ODI0Nzk2OTRkMWM2OWMyZWRlYTM2NzA=
9
+ MDNhYWMxYWE5YTkzYjEzYmNhMmE4N2RkNGQ1Mzc3MmE4MTE5MzJmNGYwOGVh
10
+ NTZlYTAxYjhkNWEyYTI3MmQ3MjIzZDUzZjdmNjNiMWNiOWZhZTY0ZDFmNDdi
11
+ YzI1OTcyNjViODQxMDU2Y2U4NTA0YzBjNTVlODVjZWNmNmY5OGY=
12
12
  data.tar.gz: !binary |-
13
- ZDg2NDI0ZDYxNDdlOWY5M2JjY2Q3MTJhYzYzMzg2YTlmODhmN2Y4NTVmM2Jl
14
- ZmQzYWNmYmE2ODNlNWM1MmYyZTkyOGMzYTAzMzhjOWQ1NTA4ZTlmOTVmZDYy
15
- MDNiOTFhNWFiOWEzNGNmYmQyZmFmNDM3MTcwMWZjNWFjODdmMTg=
13
+ NzdiMGFkNjA0NDQ5ZWJlZmZkMDljMTY2MmUwNjU1YzJhZmNhN2RhMzUyMzIz
14
+ YzBhODg2MmFkNzRkNWNkNzQ2N2ZiNmY0YTIyODkwMjkwNWQ3MzQ0Yjk3Mzlh
15
+ ZjY3MDYxODc1MWEyYjY4OWUyYjAxYzE3YzBhNDY0ZDQ3ZTFkZjc=
data/README.md CHANGED
@@ -424,10 +424,10 @@ Optional dependencies:
424
424
 
425
425
  The following gems are needed based on what functions you use:
426
426
 
427
- * `em-websocket' is required by `wunderbar/websocket`
428
- * `kramdown' is required by `wunderbar/markdown`
429
- * `ruby2js' adds support for scripts written as blocks
430
- * `sourcify' is required by `wunderbar/opal`
427
+ * `em-websocket` is required by `wunderbar/websocket`
428
+ * `kramdown` is required by `wunderbar/markdown`
429
+ * `ruby2js` adds support for scripts written as blocks
430
+ * `sourcify` is required by `wunderbar/opal`
431
431
 
432
432
  The following gems are required by extensions of the same name:
433
433
 
@@ -110,6 +110,8 @@ module Wunderbar
110
110
 
111
111
  # avoid method_missing overhead for the most common case
112
112
  def tag!(sym, *args, &block)
113
+ current_node = @node
114
+
113
115
  if sym.respond_to? :children
114
116
  node = sym
115
117
  attributes = node.attributes
@@ -149,9 +151,10 @@ module Wunderbar
149
151
  block.call(self)
150
152
  @node.children << nil if @node.children.empty?
151
153
  end
152
- @node = @node.parent
153
154
 
154
155
  node
156
+ ensure
157
+ @node = current_node
155
158
  end
156
159
 
157
160
  def pdf=(value)
@@ -58,9 +58,11 @@ module Wunderbar
58
58
  bom = "\xEF\xBB\xBF"
59
59
  end
60
60
 
61
+ title = args.shift if String === args.first
61
62
  @_x.declare! :DOCTYPE, :html
62
63
  html = tag! :html, *args do
63
64
  set_variables_from_params
65
+ _title title if title
64
66
  instance_eval(&block)
65
67
  end
66
68
 
@@ -1,6 +1,7 @@
1
1
  require 'wunderbar/jquery'
2
2
  require 'ruby2js/filter/jquery'
3
- #
3
+
4
+ # Convert Wunderbar html syntax into JQuery calls
4
5
 
5
6
  module Wunderbar
6
7
  module Filter
@@ -2,7 +2,7 @@ module Wunderbar
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 21
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/wunderbar.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "wunderbar"
5
- s.version = "0.21.0"
5
+ s.version = "0.21.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sam Ruby"]
9
- s.date = "2014-01-26"
9
+ s.date = "2014-02-26"
10
10
  s.description = " Wunderbar makes it easy to produce valid HTML5, wellformed XHTML, Unicode\n (utf-8), consistently indented, readable applications. This includes\n output that conforms to the Polyglot specification and the emerging\n results from the XML Error Recovery Community Group.\n"
11
11
  s.email = "rubys@intertwingly.net"
12
12
  s.files = ["wunderbar.gemspec", "README.md", "COPYING", "lib/wunderbar.rb", "lib/wunderbar", "lib/wunderbar/logger.rb", "lib/wunderbar/coderay.rb", "lib/wunderbar/rails.rb", "lib/wunderbar/builder.rb", "lib/wunderbar/coffeescript.rb", "lib/wunderbar/vendor", "lib/wunderbar/vendor/polymer-v0.0.20131003.min.js", "lib/wunderbar/vendor/bootstrap.min.js", "lib/wunderbar/vendor/angular-resource.min.js", "lib/wunderbar/vendor/jquery-1.10.2.min.js", "lib/wunderbar/vendor/Markdown.Converter.js", "lib/wunderbar/vendor/bootstrap-theme.min.css", "lib/wunderbar/vendor/angular-route.min.js", "lib/wunderbar/vendor/angular.min.js", "lib/wunderbar/vendor/underscore-min.js", "lib/wunderbar/vendor/stupidtable.min.js", "lib/wunderbar/vendor/bootstrap.min.css", "lib/wunderbar/markdown.rb", "lib/wunderbar/environment.rb", "lib/wunderbar/pagedown.rb", "lib/wunderbar/underscore.rb", "lib/wunderbar/server.rb", "lib/wunderbar/polymer.rb", "lib/wunderbar/version.rb", "lib/wunderbar/node.rb", "lib/wunderbar/asset.rb", "lib/wunderbar/script.rb", "lib/wunderbar/websocket.rb", "lib/wunderbar/bootstrap.rb", "lib/wunderbar/jquery", "lib/wunderbar/jquery/filter.rb", "lib/wunderbar/jquery/stupidtable.rb", "lib/wunderbar/angularjs", "lib/wunderbar/angularjs/route.rb", "lib/wunderbar/angularjs/resource.rb", "lib/wunderbar/opal", "lib/wunderbar/opal/browser.rb", "lib/wunderbar/opal/jquery.rb", "lib/wunderbar/html-methods.rb", "lib/wunderbar/job-control.rb", "lib/wunderbar/cssproxy.rb", "lib/wunderbar/angularjs.rb", "lib/wunderbar/jquery.rb", "lib/wunderbar/bootstrap", "lib/wunderbar/bootstrap/theme.rb", "lib/wunderbar/cgi-methods.rb", "lib/wunderbar/sinatra.rb", "lib/wunderbar/rack.rb", "lib/wunderbar/opal.rb", "lib/wunderbar/installation.rb"]
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: 0.21.0
4
+ version: 0.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-26 00:00:00.000000000 Z
11
+ date: 2014-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json