washout_builder 0.12.0 → 0.12.1

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjhmZjI2ZjY3MTcwNTI3YTEzY2Q0ZDMwYjkwZjNlNGY4Y2U3N2MzYw==
4
+ NjljN2I3ZWFmNjVhZDRjMjU1NmFjN2ZlMjhkNjFlMjNkMzM3NDRmNQ==
5
5
  data.tar.gz: !binary |-
6
- NDk3ODhiOTY4ZDFjMWMwOGM2OTQzYzhiYjY5ZGZkZmJkZTM3MmRiNg==
6
+ ZjRiZmY1MWRlZTlhNjI5Y2RiYmU4Y2ZjMDYyN2VkZGNlODhjODBhYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODAyYzg5YjNmYzczYzUwMDllNDExODc1MTQwM2Q0YWNkYTQ3ZGQ3NTkzNmEy
10
- NTNmNzk3YzU0ZDVjYjA2NDRkN2NhNDhjZTY3NmQ4NzI4MTRiNTZkNjU5YzZm
11
- NDIxNTBjMGRlNWVlZjFiMGQ0ZWIyZjg5YWVkOWE1NWY4OTNiNjQ=
9
+ M2IwOTRjY2U4YTcwYzcxZGJhYjcwYmVlNjAxODY0ZGQ2NmY1MmZjNzQ2OTdl
10
+ OWRiNWRmOWU5M2VjNDY3ZDFmZWZjOTQwNDNkZjVmNGY2NTMwMmVmODZiNGU5
11
+ MmUwMmE2ZTliODY5M2M3Mjc4Zjg5ZjA1YTlhMGQxNWM5MmRlOWE=
12
12
  data.tar.gz: !binary |-
13
- NGM2ZmE2YmE2MDk3NTdjYWYyZWQxMWVjYjM0NWMzZGZmODA1ZGFiMGQ3NmIw
14
- NjZkN2UyMzc0ODgwODg2NDQzYjRhYjc4OTFhMzNlYjUzYzZhMzg1YWE4YzE4
15
- NTZhMGVhYzViZDhkYWUzMDYzMzc3MDBhZWMzNjlhZDM5YzRjNzI=
13
+ ZDkyMzcxYTMwZmM4MmUwZDY3ZjA3NDRlMDY4MTJlZjE5MzQ0YWMyYzZmYmQ3
14
+ MjBhZWFlMTIwZWMwZjMwYjRhODU5Yzc3ZmE4YWRiODJjNTY4Mzc4MzVhZWUz
15
+ M2JhMzIwZWI3MTk1ZDAxY2U2Mzg1ZDA1NzgxZTMzYjI5NWE2ZWE=
@@ -39,9 +39,9 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
39
39
 
40
40
  @services.each do |service|
41
41
  xml.h1 "#{service['service_name']} Soap Webservice"
42
- xml.p {|pre| pre << "Documentation URI: &nbsp;<a href='#{service['documentation_url']}'><span class='pre'>#{service['documentation_url']}</span></a>" }
43
- xml.p {|pre| pre << "Endpoint URI: &nbsp;<span class='pre'>#{service['endpoint']}</span>" }
44
- xml.p {|pre| pre << "WSDL URI: &nbsp;<a href='#{service['namespace']}'><span class='pre'>#{service['namespace']}</span></a>" }
42
+ xml.p {|pre| pre << "Documentation URI: &nbsp;<a href='#{service['documentation_url']}'>#{service['documentation_url']}</a>" }
43
+ xml.p {|pre| pre << "Endpoint URI: &nbsp;<a href='javascript:void(0)'>#{service['endpoint']}</a>" }
44
+ xml.p {|pre| pre << "WSDL URI: &nbsp;<a href='#{service['namespace']}'>#{service['namespace']}</a>" }
45
45
  end
46
46
  end
47
47
 
@@ -1,3 +1,3 @@
1
1
  module WashoutBuilder
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
@@ -1,5 +1,11 @@
1
1
  require 'spec_helper'
2
-
2
+ mock_controller do
3
+ soap_action 'dispatcher_method', :args => nil, :return => nil
4
+
5
+ def dispatcher_method
6
+ #nothing
7
+ end
8
+ end
3
9
  describe WashoutBuilder::WashoutBuilderController, :type => :controller do
4
10
  routes { WashoutBuilder::Engine.routes }
5
11
 
@@ -8,13 +14,16 @@ describe WashoutBuilder::WashoutBuilderController, :type => :controller do
8
14
  namespace: "/api/wsdl",
9
15
  ) }
10
16
 
17
+ let(:washout_builder) { stub(:root_url => "#{request.protocol}#{request.host_with_port}/")}
18
+
11
19
  before(:each) do
12
20
  ApiController.stubs(:soap_config).returns(soap_config)
21
+ controller.stubs(:washout_builder).returns(washout_builder)
13
22
  end
14
23
 
15
24
  it "gets the services" do
16
25
  get :all
17
- assigns(:services).should eq([{'service_name'=>"Api", 'namespace'=>"/api/wsdl", 'endpoint'=>"/api/action", 'documentation_url'=>"http://test.host/api/doc"}])
26
+ assigns(:services).should eq([{'service_name'=>"Api", 'namespace'=>"/api/wsdl", 'endpoint'=>"/api/action", 'documentation_url'=>"http://test.host/Api"}])
18
27
  end
19
28
 
20
29
  it "renders the template" do
@@ -1,6 +1,12 @@
1
1
  #encoding:utf-8
2
2
  require 'spec_helper'
3
-
3
+ mock_controller do
4
+ soap_action 'dispatcher_method', :args => nil, :return => nil
5
+
6
+ def dispatcher_method
7
+ #nothing
8
+ end
9
+ end
4
10
 
5
11
  describe WashoutBuilder::Document::Generator do
6
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: washout_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada