troelskn-handsoap 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 4
2
+ :patch: 5
3
3
  :major: 0
4
4
  :minor: 2
@@ -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
- temp_file_relative_path = relative_path(temp_file.path, File.expand_path(source_path("/.")))
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
@@ -67,7 +67,7 @@ module Handsoap
67
67
  end
68
68
 
69
69
  def self.service_basename(wsdl)
70
- wsdl.service.gsub(/service$/, "")
70
+ underscore(wsdl.service).gsub(/_service$/, "")
71
71
  end
72
72
 
73
73
  def self.service_name(wsdl)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: troelskn-handsoap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Troels Knak-Nielsen