wunderbar 0.16.5 → 0.16.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wunderbar/html-methods.rb +11 -0
- data/lib/wunderbar/server.rb +5 -3
- data/lib/wunderbar/version.rb +1 -1
- data/wunderbar.gemspec +1 -1
- metadata +3 -3
@@ -172,6 +172,17 @@ module Wunderbar
|
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
175
|
+
def _p(*args, &block)
|
176
|
+
if args.length >= 1 and String === args.first and args.first.start_with? "\n"
|
177
|
+
text = args.shift
|
178
|
+
@x.tag! :p, *args do
|
179
|
+
@x.indented_text! text
|
180
|
+
end
|
181
|
+
else
|
182
|
+
super
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
175
186
|
def _svg(*args, &block)
|
176
187
|
args << {} if args.empty?
|
177
188
|
args.first['xmlns'] = 'http://www.w3.org/2000/svg' if Hash === args.first
|
data/lib/wunderbar/server.rb
CHANGED
@@ -66,9 +66,11 @@ else
|
|
66
66
|
end
|
67
67
|
|
68
68
|
$HOME = ENV['HOME']
|
69
|
-
$HOME
|
70
|
-
|
71
|
-
|
69
|
+
if $HOME.nil? and $USER == Etc.getlogin
|
70
|
+
$HOME ||= Dir.home($USER) rescue nil
|
71
|
+
$HOME ||= File.expand_path("~#{$USER}") rescue nil
|
72
|
+
end
|
73
|
+
$HOME = ENV['DOCUMENT_ROOT'] if $HOME.nil? or not File.exist? $HOME
|
72
74
|
ENV['HOME'] = $HOME
|
73
75
|
|
74
76
|
at_exit do
|
data/lib/wunderbar/version.rb
CHANGED
data/wunderbar.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wunderbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 83
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 16
|
9
|
-
-
|
10
|
-
version: 0.16.
|
9
|
+
- 6
|
10
|
+
version: 0.16.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Ruby
|