troelskn-handsoap 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/generators/handsoap/handsoap_generator.rb +6 -1
- data/lib/handsoap/compiler.rb +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -53,7 +53,12 @@ module Handsoap #:nodoc:
|
|
53
53
|
def file_contents(relative_destination, &block)
|
54
54
|
destination = destination_path(relative_destination)
|
55
55
|
temp_file = Tempfile.new("handsoap_generator")
|
56
|
-
|
56
|
+
if RUBY_PLATFORM =~ /win32/
|
57
|
+
canonical_path = File.expand_path(source_path("/."))
|
58
|
+
else
|
59
|
+
canonical_path = `readlink -fn '#{source_path("/.")}'`
|
60
|
+
end
|
61
|
+
temp_file_relative_path = relative_path(temp_file.path, canonical_path)
|
57
62
|
begin
|
58
63
|
yield temp_file
|
59
64
|
temp_file.close
|
data/lib/handsoap/compiler.rb
CHANGED