troelskn-handsoap 0.3.6 → 0.3.7

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/README.markdown CHANGED
@@ -133,6 +133,10 @@ If you use Rails, you will need to load the gem from the `config/environment.rb`
133
133
 
134
134
  config.gem 'troelskn-handsoap', :lib => 'handsoap', :source => "http://gems.github.com"
135
135
 
136
+ If you use the standard development environment of Rails, you may run into troubles with cached classes. Add the following line to the initializer:
137
+
138
+ ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Handsoap::Service'
139
+
136
140
  ###Generator
137
141
 
138
142
  From version 0.2.0 Handsoap sports a generator, that creates the service class + an integration test case. This is just a rough starting point for your service - You still have to fill out the actual mappings to/from xml, but at least it saves your some copy-pasting from this guide.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 3
3
- :patch: 6
3
+ :patch: 7
4
4
  :major: 0
@@ -1,6 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  require "#{File.dirname(__FILE__)}/../../lib/handsoap/parser.rb"
3
3
  require "#{File.dirname(__FILE__)}/../../lib/handsoap/compiler.rb"
4
+ require 'pathname'
4
5
 
5
6
  # TODO
6
7
  # options:
@@ -75,11 +76,7 @@ module Handsoap #:nodoc:
75
76
  def file_contents(relative_destination, &block)
76
77
  destination = destination_path(relative_destination)
77
78
  temp_file = Tempfile.new("handsoap_generator")
78
- if RUBY_PLATFORM =~ /linux/
79
- canonical_path = `readlink -fn '#{source_path("/.")}'`
80
- else
81
- canonical_path = File.expand_path(source_path("/."))
82
- end
79
+ canonical_path = Pathname.new(source_path("/.")).realpath.to_s
83
80
  temp_file_relative_path = relative_path(temp_file.path, canonical_path)
84
81
  begin
85
82
  yield temp_file
@@ -90,6 +90,9 @@ module Handsoap
90
90
  def xpath(expression, ns = nil)
91
91
  self.first.xpath(expression, ns)
92
92
  end
93
+ def /(expression)
94
+ self.first.xpath(expression)
95
+ end
93
96
  def to_xml
94
97
  self.first.to_xml if self.any?
95
98
  end
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.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Troels Knak-Nielsen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-30 00:00:00 -07:00
12
+ date: 2009-07-30 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -33,8 +33,9 @@ files:
33
33
  - lib/handsoap/service.rb
34
34
  - lib/handsoap/xml_mason.rb
35
35
  - lib/handsoap/xml_query_front.rb
36
- has_rdoc: false
36
+ has_rdoc: true
37
37
  homepage: http://github.com/troelskn/handsoap
38
+ licenses:
38
39
  post_install_message:
39
40
  rdoc_options:
40
41
  - --charset=UTF-8
@@ -59,9 +60,9 @@ requirements:
59
60
  gem install httpclient
60
61
  - It is recommended that you install either "nokogiri" or "libxml-ruby"
61
62
  rubyforge_project:
62
- rubygems_version: 1.2.0
63
+ rubygems_version: 1.3.5
63
64
  signing_key:
64
- specification_version: 3
65
+ specification_version: 2
65
66
  summary: Handsoap is a library for creating SOAP clients in Ruby
66
67
  test_files: []
67
68