codin_rep 0.2.5 → 0.2.6
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 +4 -4
- data/lib/codin_rep/get_records.rb +1 -1
- data/lib/codin_rep/mock_time_clock.rb +11 -5
- data/lib/codin_rep/version.rb +1 -1
- data/test/coverage/index.html +241 -187
- data/test/coverage/rcov/index.html +8 -8
- data/test/coverage/rcov/lib-codin_rep-add_employee_rb.html +1 -1
- data/test/coverage/rcov/lib-codin_rep-command_rb.html +1 -1
- data/test/coverage/rcov/lib-codin_rep-communication_rb.html +1 -1
- data/test/coverage/rcov/lib-codin_rep-del_employee_rb.html +1 -1
- data/test/coverage/rcov/lib-codin_rep-employee_command_rb.html +2 -2
- data/test/coverage/rcov/lib-codin_rep-get_afd_header_rb.html +1 -1
- data/test/coverage/rcov/lib-codin_rep-get_records_rb.html +2 -2
- data/test/coverage/rcov/lib-codin_rep-get_time_rb.html +2 -2
- data/test/coverage/rcov/lib-codin_rep-mock_time_clock_rb.html +147 -123
- data/test/coverage/rcov/lib-codin_rep-set_time_rb.html +1 -1
- data/test/coverage/rcov/lib-codin_rep-time_util_rb.html +1 -1
- data/test/coverage/rcov/lib-codin_rep-version_rb.html +2 -2
- data/test/coverage/rcov/lib-codin_rep_rb.html +50 -47
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9a858df51f9c22b4f8d78a85b5139c0c0e377e0
|
4
|
+
data.tar.gz: 8b4e7d2b3bfb1b5b6312b5fc5fdd48b1d3477dd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce50848c522f358d88d7bea13422e13058855c45c485755b7f44c707a3e0370de92addb2b15cadcf9df83178f600c8c1e18f72778f5497771592b4d0d45e9f52
|
7
|
+
data.tar.gz: ec5e5ff4662311669a27d077d1135c3e227cbce1e6214c619b7fc62f8dc35cc2eb38802b56743a8ec45ff912642ce12a6af99dfc6038194e86be8af7ff97fbf7
|
@@ -115,11 +115,17 @@ module CodinRep
|
|
115
115
|
response = 'REP2359' + @data.afd.header.export + "\r\n"
|
116
116
|
@keep_connected = false
|
117
117
|
when "PGREP0289"
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
118
|
+
byte = read_from_socket_with_timeout(socket, 1)
|
119
|
+
if byte == "0"
|
120
|
+
@afd_read_start_id = read_from_socket_with_timeout(socket, 9).to_i
|
121
|
+
@afd_read_end_id = read_from_socket_with_timeout(socket, 9).to_i
|
122
|
+
@afd_read_current_id = nil
|
123
|
+
@afd_read_finished = false
|
124
|
+
response = "REP0029["
|
125
|
+
else
|
126
|
+
raw_command += byte
|
127
|
+
raise StandardError.new("Unknown command \"#{raw_command}\"!")
|
128
|
+
end
|
123
129
|
when "PGREP009,"
|
124
130
|
if @afd_read_finished
|
125
131
|
response = "REP0029]"
|
data/lib/codin_rep/version.rb
CHANGED