ckm_client 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3927878cdcf81631003171c73519bc3592e84596
4
- data.tar.gz: 584cb9a2fb90fc14267e4eaa5ad21a0f96eaed03
3
+ metadata.gz: 3b1a591516e198d945d891123141faa5f033b62f
4
+ data.tar.gz: 832cfeaaf42403f3f630376812fe3b71ebea6494
5
5
  SHA512:
6
- metadata.gz: 4b71e57333c9eb76e902edb165a671d63f082a27736cae505bdc4767401def2296ac5ca3b1a0e20fbfa922b3dbcd50f39d68d5d480fe5a3f156e4b8a4c2e7d74
7
- data.tar.gz: 3c7cde8af7c49d07b4d7c84184270d88b57b91342c380c5ba3ac405c01656da2c7301de9739c4056d1d2b274f06142af76f6e6540b7773bbf2ef3db2c32d91b6
6
+ metadata.gz: 8f5951bd54c9d79e43efe97b9d8325d75fa4669663580132fc763edd5d2f298334d3c0686341f135176d71b6651616639201d0fb95195b41750da1d4f825a768
7
+ data.tar.gz: 661dcc458fdfa75f5d394a2e790264deceddefb893b14298ace4040ea6332648cfeac9a312ffe759086b0cc2481f2c0204c97909d1629cd33eb5bcd96f0f2dfd
data/Gemfile.lock CHANGED
@@ -1,13 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ckm_client (0.0.3)
5
- soap4r-ruby1.9
4
+ ckm_client (0.1.1)
5
+ savon
6
6
  thor
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
+ akami (1.2.0)
12
+ gyoku (>= 0.4.0)
13
+ nokogiri (>= 1.4.0)
11
14
  builder (3.0.4)
12
15
  childprocess (0.3.9)
13
16
  ffi (~> 1.0, >= 1.0.11)
@@ -37,6 +40,10 @@ GEM
37
40
  childprocess (>= 0.2.3)
38
41
  guard (>= 1.1)
39
42
  spork (>= 0.8.4)
43
+ gyoku (1.0.0)
44
+ builder (>= 2.1.2)
45
+ httpi (2.0.2)
46
+ rack
40
47
  json (1.7.7)
41
48
  libnotify (0.8.0)
42
49
  ffi (>= 1.0.11)
@@ -44,10 +51,13 @@ GEM
44
51
  lumberjack (1.0.3)
45
52
  method_source (0.8.1)
46
53
  multi_json (1.7.1)
54
+ nokogiri (1.5.9)
55
+ nori (2.0.4)
47
56
  pry (0.9.12)
48
57
  coderay (~> 1.0.5)
49
58
  method_source (~> 0.8)
50
59
  slop (~> 3.4)
60
+ rack (1.5.2)
51
61
  rake (10.0.3)
52
62
  rb-kqueue (0.2.0)
53
63
  ffi (>= 0.5.0)
@@ -59,11 +69,21 @@ GEM
59
69
  rspec-expectations (2.13.0)
60
70
  diff-lcs (>= 1.1.3, < 2.0)
61
71
  rspec-mocks (2.13.0)
72
+ savon (2.1.0)
73
+ akami (~> 1.2.0)
74
+ builder (>= 2.1.2)
75
+ gyoku (~> 1.0.0)
76
+ httpi (~> 2.0.2)
77
+ nokogiri (>= 1.4.0)
78
+ nori (~> 2.0.3)
79
+ wasabi (~> 3.0.0)
62
80
  slop (3.4.4)
63
- soap4r-ruby1.9 (2.0.5)
64
81
  spork (1.0.0rc3)
65
82
  terminal-table (1.4.5)
66
83
  thor (0.17.0)
84
+ wasabi (3.0.0)
85
+ httpi (~> 2.0)
86
+ nokogiri (>= 1.4.0)
67
87
 
68
88
  PLATFORMS
69
89
  ruby
data/ckm_client.gemspec CHANGED
@@ -23,7 +23,8 @@ Gem::Specification.new do |gem|
23
23
  gem.require_paths = ["lib"]
24
24
 
25
25
  gem.add_dependency('thor')
26
- gem.add_dependency('soap4r-ruby1.9')
26
+ # gem.add_dependency('soap4r-ruby1.9')
27
+ gem.add_dependency('savon')
27
28
 
28
29
  gem.add_development_dependency('rake')
29
30
  gem.add_development_dependency('rspec')
@@ -1,5 +1,5 @@
1
1
  CKM_REPOSITORY = 'http://openehr.org/ckm/services/ArchetypeFinderBean?wsdl'
2
- require 'soap/wsdlDriver'
2
+ require 'savon'
3
3
 
4
4
  module OpenEHR
5
5
  module CKMClient
@@ -26,15 +26,17 @@ module OpenEHR
26
26
 
27
27
  class SOAPDriver
28
28
  def initialize(repository)
29
- @driver = SOAP::WSDLDriverFactory.new(repository).create_rpc_driver
29
+ @driver = Savon.client(wsdl: repository)
30
30
  end
31
31
 
32
32
  def get_adl_by_id(id)
33
- @driver.getArchetypeInADL(archetypeId: id).m_return
33
+ response = @driver.call :get_archetype_in_adl, message: {archetypeId: id}
34
+ response.body[:get_archetype_in_adl_response][:return]
34
35
  end
35
36
 
36
37
  def get_archetypes_by_partial_id(id)
37
- @driver.getArchetypeIdsFromPartialId(archetypeIdPart: id).m_return
38
+ response = @driver.call :get_archetype_ids_from_partial_id, message: {archetypeIdPart: id}
39
+ response.body[:get_archetype_ids_from_partial_id_response][:return]
38
40
  end
39
41
  end
40
42
  end
@@ -1,5 +1,5 @@
1
1
  module OpenEHR
2
2
  module CKMClient
3
- VERSION = '0.1.1'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -1,5 +1,3 @@
1
- require 'soap/wsdlDriver'
2
-
3
1
  module OpenEHR
4
2
  module CKMClient
5
3
  require 'openehr/ckm_client/cli'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ckm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinji KOBAYASHI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-23 00:00:00.000000000 Z
11
+ date: 2013-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: soap4r-ruby1.9
28
+ name: savon
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '>='