ruby_astm 1.0.8 → 1.0.9

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
  SHA256:
3
- metadata.gz: 5f9b2b1815dfeaeaaea4f1bc0a1ba0302d32a18684536bebc7a8a17d024543fb
4
- data.tar.gz: 8e7e133df8251bf7c5a014569f915306abb25efc56438f625244481d2c86066b
3
+ metadata.gz: 9c41f5303f7e4e0c2897d7c4407df2fe85594f98313e54bed535375b6113cb62
4
+ data.tar.gz: 1edc251af06f231faf23d792aa487d0b6a1c6a11054e00e892373bede46b23df
5
5
  SHA512:
6
- metadata.gz: 1361c559782e9d3802a013b519be1d541123ebada870c6076f83078d1031712ed5ecaf1d229b96ecab2ba41f137edb3513a06a9913c55d99fb6af2e8587ade8c
7
- data.tar.gz: b9d8bb90b41472a99fa9ce65781fcf14fec85086ae2b396d85c69c420e93789a361def72b5261bde694df9d4e1a821feb5ccb90b7705ab25bdd9c6eac523dd30
6
+ metadata.gz: 3558047e44fb12208c4509655848cd01b0e1bfe850202d68d2d7d174ef6738d3bfada4c0a8683adffb2d33e611b7a1d3329c2f29c537de4ca3c6a27fed735962
7
+ data.tar.gz: 10228f02a0b2b8fa87f4e0de2f56159ea73ef3e7e3dcafe556e51163bdd71c9991531c40d7a1b96875b38c0b2387f8f8540133f34a0364530cc265a33f82b2b8
@@ -100,13 +100,17 @@ module LabInterface
100
100
  else
101
101
  ## send the header
102
102
  puts "--------- SENT ACK -----------"
103
- if self.headers[-1].is_astm?
103
+ if self.headers.blank?
104
104
  send_data(ACK)
105
- elsif self.headers[-1].is_hl7?
106
- if self.headers.size > 0
107
- ## commit should return the jsonified thing, if possible.
108
- self.headers[-1].commit
109
- send_data(self.headers[-1].generate_ack_success_response)
105
+ else
106
+ if self.headers[-1].is_astm?
107
+ send_data(ACK)
108
+ elsif self.headers[-1].is_hl7?
109
+ if self.headers.size > 0
110
+ ## commit should return the jsonified thing, if possible.
111
+ self.headers[-1].commit
112
+ send_data(self.headers[-1].generate_ack_success_response)
113
+ end
110
114
  end
111
115
  end
112
116
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_astm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bhargav Raut