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 +4 -4
- data/Gemfile.lock +23 -3
- data/ckm_client.gemspec +2 -1
- data/lib/openehr/ckm_client/soap_interface.rb +6 -4
- data/lib/openehr/ckm_client/version.rb +1 -1
- data/lib/openehr/ckm_client.rb +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b1a591516e198d945d891123141faa5f033b62f
|
4
|
+
data.tar.gz: 832cfeaaf42403f3f630376812fe3b71ebea6494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
|
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 '
|
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 =
|
29
|
+
@driver = Savon.client(wsdl: repository)
|
30
30
|
end
|
31
31
|
|
32
32
|
def get_adl_by_id(id)
|
33
|
-
@driver.
|
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.
|
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
|
data/lib/openehr/ckm_client.rb
CHANGED
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.
|
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-
|
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:
|
28
|
+
name: savon
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '>='
|