codin_rep 0.2.6 → 0.3.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
- SHA1:
3
- metadata.gz: a9a858df51f9c22b4f8d78a85b5139c0c0e377e0
4
- data.tar.gz: 8b4e7d2b3bfb1b5b6312b5fc5fdd48b1d3477dd3
2
+ SHA256:
3
+ metadata.gz: 599ecc2bfaff1ff5f08456e59abeb126fc6aee922ac10d30adb8d89aef609382
4
+ data.tar.gz: 99eeab977f522986fbf23281ce6329831a3dad04ea60026e30c0e818639db544
5
5
  SHA512:
6
- metadata.gz: ce50848c522f358d88d7bea13422e13058855c45c485755b7f44c707a3e0370de92addb2b15cadcf9df83178f600c8c1e18f72778f5497771592b4d0d45e9f52
7
- data.tar.gz: ec5e5ff4662311669a27d077d1135c3e227cbce1e6214c619b7fc62f8dc35cc2eb38802b56743a8ec45ff912642ce12a6af99dfc6038194e86be8af7ff97fbf7
6
+ metadata.gz: fb6c66335db3ab57a4b6086b530a354a104315fb131bc561ebefb3d7ee7edaf482f29092fcb788992535393d447a2c8b60259e9a158be411964493ff2258899a
7
+ data.tar.gz: a7327b044f359c356d02c82dec318d44d43d801df1759d6756434099c195f040fc1902867fbbbb2438ca24ae9c22f3d4f1c6c9a098c413905dcb8c06218bdb19
@@ -48,7 +48,7 @@ module CodinRep
48
48
  @attempt = 0
49
49
  while @attempt < @max_attempts do
50
50
  begin
51
- timeout(@timeout_time) {
51
+ Timeout.timeout(@timeout_time) {
52
52
  @socket = TCPSocket.open(@host_address, @port)
53
53
  }
54
54
  # Use a finalizer to close the socket if "self" is going to be
@@ -172,7 +172,7 @@ module CodinRep
172
172
  def read_from_socket_with_timeout(socket, bytes_to_be_read, timeout_value=5)
173
173
  data_to_receive = nil
174
174
  timeout_value = 600 if @first_connection # use a large timeout on first connection
175
- timeout(timeout_value) { data_to_receive = socket.readpartial( bytes_to_be_read ) }
175
+ Timeout.timeout(timeout_value) { data_to_receive = socket.readpartial( bytes_to_be_read ) }
176
176
  return data_to_receive
177
177
  end
178
178
 
@@ -19,5 +19,5 @@
19
19
  # e-mail: contato@ossystems.com.br
20
20
 
21
21
  module CodinRep
22
- VERSION = "0.2.6".freeze
22
+ VERSION = "0.3.0".freeze
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codin_rep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - O.S. Systems Softwares Ltda.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-21 00:00:00.000000000 Z
11
+ date: 2018-12-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Use this gem to manage several features of the Telebyte eletronic timeclocks,
14
14
  like report creation, user management, configuration etc.
@@ -104,63 +104,63 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.4.8
107
+ rubygems_version: 2.7.8
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Gem to manage Telebyte eletronic timeclocks
111
111
  test_files:
112
- - test/reports/TEST-GetTimeTest.xml
113
- - test/coverage/index.html
114
- - test/coverage/assets/0.10.0/magnify.png
115
- - test/coverage/assets/0.10.0/application.css
116
- - test/coverage/assets/0.10.0/application.js
117
- - test/coverage/assets/0.10.0/favicon_green.png
118
- - test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
112
+ - test/coverage/assets/0.10.0/favicon_yellow.png
113
+ - test/coverage/assets/0.10.0/favicon_red.png
114
+ - test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
115
+ - test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
116
+ - test/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png
117
+ - test/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png
118
+ - test/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
119
+ - test/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png
119
120
  - test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png
120
121
  - test/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
121
122
  - test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
123
+ - test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
122
124
  - test/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png
123
- - test/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png
124
- - test/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png
125
- - test/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png
126
- - test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
127
- - test/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png
128
125
  - test/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
129
- - test/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
130
- - test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
131
- - test/coverage/assets/0.10.0/favicon_yellow.png
132
- - test/coverage/assets/0.10.0/colorbox/controls.png
126
+ - test/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png
127
+ - test/coverage/assets/0.10.0/colorbox/loading.gif
133
128
  - test/coverage/assets/0.10.0/colorbox/loading_background.png
129
+ - test/coverage/assets/0.10.0/colorbox/controls.png
134
130
  - test/coverage/assets/0.10.0/colorbox/border.png
135
- - test/coverage/assets/0.10.0/colorbox/loading.gif
131
+ - test/coverage/assets/0.10.0/application.js
132
+ - test/coverage/assets/0.10.0/favicon_green.png
136
133
  - test/coverage/assets/0.10.0/loading.gif
137
- - test/coverage/assets/0.10.0/favicon_red.png
138
- - test/coverage/rcov/lib-codin_rep-mock_time_clock_rb.html
139
- - test/coverage/rcov/lib-codin_rep-communication_rb.html
140
- - test/coverage/rcov/index.html
141
- - test/coverage/rcov/lib-codin_rep_rb.html
142
- - test/coverage/rcov/lib-codin_rep-set_employee_rb.html
143
- - test/coverage/rcov/lib-codin_rep-add_employee_rb.html
144
- - test/coverage/rcov/lib-codin_rep-get_time_rb.html
145
- - test/coverage/rcov/lib-codin_rep-set_time_rb.html
134
+ - test/coverage/assets/0.10.0/magnify.png
135
+ - test/coverage/assets/0.10.0/application.css
136
+ - test/coverage/index.html
137
+ - test/coverage/rcov/lib-codin_rep-get_identification_rb.html
138
+ - test/coverage/rcov/assets/0.2.3/jquery.tablesorter.min.js
146
139
  - test/coverage/rcov/assets/0.2.3/screen.css
140
+ - test/coverage/rcov/assets/0.2.3/rcov.js
147
141
  - test/coverage/rcov/assets/0.2.3/jquery-1.3.2.min.js
148
- - test/coverage/rcov/assets/0.2.3/jquery.tablesorter.min.js
149
142
  - test/coverage/rcov/assets/0.2.3/print.css
150
- - test/coverage/rcov/assets/0.2.3/rcov.js
151
143
  - test/coverage/rcov/lib-codin_rep-employee_command_rb.html
152
- - test/coverage/rcov/lib-codin_rep-time_util_rb.html
153
- - test/coverage/rcov/lib-codin_rep-get_records_rb.html
144
+ - test/coverage/rcov/lib-codin_rep-communication_rb.html
154
145
  - test/coverage/rcov/lib-codin_rep-version_rb.html
146
+ - test/coverage/rcov/lib-codin_rep-add_employee_rb.html
155
147
  - test/coverage/rcov/lib-codin_rep-get_afd_header_rb.html
156
- - test/coverage/rcov/lib-codin_rep-command_rb.html
157
- - test/coverage/rcov/lib-codin_rep-get_identification_rb.html
148
+ - test/coverage/rcov/lib-codin_rep-set_employee_rb.html
149
+ - test/coverage/rcov/lib-codin_rep-get_records_rb.html
150
+ - test/coverage/rcov/index.html
151
+ - test/coverage/rcov/lib-codin_rep-get_time_rb.html
158
152
  - test/coverage/rcov/lib-codin_rep-del_employee_rb.html
153
+ - test/coverage/rcov/lib-codin_rep-command_rb.html
154
+ - test/coverage/rcov/lib-codin_rep-mock_time_clock_rb.html
155
+ - test/coverage/rcov/lib-codin_rep_rb.html
156
+ - test/coverage/rcov/lib-codin_rep-time_util_rb.html
157
+ - test/coverage/rcov/lib-codin_rep-set_time_rb.html
159
158
  - test/test_helper.rb
160
- - test/unit/add_employee_test.rb
161
- - test/unit/get_employer_test.rb
159
+ - test/unit/get_records_test.rb
162
160
  - test/unit/set_time_test.rb
163
- - test/unit/get_serial_number_test.rb
161
+ - test/unit/get_employer_test.rb
164
162
  - test/unit/get_time_test.rb
163
+ - test/unit/add_employee_test.rb
164
+ - test/unit/get_serial_number_test.rb
165
165
  - test/unit/del_employee_test.rb
166
- - test/unit/get_records_test.rb
166
+ - test/reports/TEST-GetTimeTest.xml