openehr-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 53a7dff33dabbabbb65f0f735ae09d998eda0668
4
+ data.tar.gz: 4149a0ce1a3fce436787b7fbb722e9973c1f5933
5
+ SHA512:
6
+ metadata.gz: c21500960672bfa606fa3cad2f674c5a4dc34db07ad204cf8017cdbccc807618841c35058203d1b1095dc15315b06827af2b16214a2fcb3c9ea4be9b30d83f1d
7
+ data.tar.gz: 1c7a6138ce73c64fe222877c54c4ec3a996e6800bba30d9d9d37e7a28c09a53d2ef16ae91f3e9d364443946d27d80c0a36c7f205e54ecc7cbc3b2e01eb62a943
data/README.rdoc CHANGED
@@ -6,8 +6,8 @@ still working exeperimental codes.
6
6
 
7
7
  == Requirements
8
8
 
9
- * Supports Ruby 1.9.3, 2.0.0 or equivalents.
10
- * Developed with CRuby 2.0.0, 1.9.3 on FreeBSD and Linux.
9
+ * Supports Ruby 1.9.3, 2.0.0, 2.1.0 or equivalents.
10
+ * Developed with CRuby 2.1.0, 2.0.0, 1.9.3 on FreeBSD and Linux.
11
11
  * Ruby 1.8 or earlier are no longer supported.
12
12
 
13
13
  == Usage
@@ -107,6 +107,7 @@ module Openehr
107
107
 
108
108
  def #{atcode}=(#{atcode})
109
109
  #{atcode}model.#{type} = #{atcode}
110
+ #{atcode}model.save
110
111
  end
111
112
 
112
113
  ATFORM
@@ -160,8 +160,10 @@ LOCALE
160
160
  case value.rm_type_name
161
161
  when 'DV_CODED_TEXT', 'DvCodedText'
162
162
  html += "<%= @#{model_name}.#{cobj.node_id} %><br/>\n"
163
- when 'DvQuantity', 'DV_QUANTITY'
164
- html += "<%= @#{model_name}.#{cobj.node_id} %>#{value.list[0].units}<br/>\n"
163
+ when 'DV_QUANTITY', 'DvQuantity'
164
+ units = value.list[0].units unless value.list.nil? or value.list.empty?
165
+
166
+ html += "<%= @#{model_name}.#{cobj.node_id} %>#{units}<br/>\n"
165
167
  else
166
168
  html += "<%= @#{model_name}.#{cobj.node_id} %><br/>\n"
167
169
  end
@@ -1,5 +1,5 @@
1
1
  module OpenEHR
2
2
  module Rails
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
@@ -43,6 +43,7 @@ module Openehr
43
43
  it { should contain /at0004model.num_value$/}
44
44
  it { should contain 'def at0004=(at0004)' }
45
45
  it { should contain 'at0004model.num_value = at0004'}
46
+ it { should contain 'at0004model.save'}
46
47
  it { should contain 'translate(at0008model.text_value)'}
47
48
  it { should contain 'def confat(node_id, path)'}
48
49
  it { should contain 'archetype.rms.build(:node_id => node_id, :path => path)' }
metadata CHANGED
@@ -1,142 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openehr-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Shinji KOBAYASHI
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-11 00:00:00.000000000 Z
11
+ date: 2014-02-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: openehr
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rails
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: 4.0.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: 4.0.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: ckm_client
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: ammeter
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rspec
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rspec-rails
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - '>='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - '>='
108
+ - - ">="
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: simplecov
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - '>='
115
+ - - ">="
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - '>='
122
+ - - ">="
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  description: This product is a Rails extansion for openEHR
@@ -146,9 +129,9 @@ extensions: []
146
129
  extra_rdoc_files:
147
130
  - README.rdoc
148
131
  files:
149
- - .gitignore
150
- - .rspec
151
- - .travis.yml
132
+ - ".gitignore"
133
+ - ".rspec"
134
+ - ".travis.yml"
152
135
  - Gemfile
153
136
  - README.rdoc
154
137
  - Rakefile
@@ -208,32 +191,25 @@ files:
208
191
  homepage: http://openehr.jp
209
192
  licenses:
210
193
  - Apache 2.0
194
+ metadata: {}
211
195
  post_install_message:
212
196
  rdoc_options: []
213
197
  require_paths:
214
198
  - lib
215
199
  required_ruby_version: !ruby/object:Gem::Requirement
216
- none: false
217
200
  requirements:
218
- - - '>='
201
+ - - ">="
219
202
  - !ruby/object:Gem::Version
220
203
  version: '0'
221
- segments:
222
- - 0
223
- hash: -4360953249952883014
224
204
  required_rubygems_version: !ruby/object:Gem::Requirement
225
- none: false
226
205
  requirements:
227
- - - '>='
206
+ - - ">="
228
207
  - !ruby/object:Gem::Version
229
208
  version: '0'
230
- segments:
231
- - 0
232
- hash: -4360953249952883014
233
209
  requirements: []
234
210
  rubyforge_project:
235
- rubygems_version: 1.8.29
211
+ rubygems_version: 2.2.2
236
212
  signing_key:
237
- specification_version: 3
213
+ specification_version: 4
238
214
  summary: Rails extension for the openEHR archetypes
239
215
  test_files: []