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.
@@ -25,8 +25,8 @@
25
25
  <tbody>
26
26
  <tr>
27
27
  <td class="left_align"><a href="lib-codin_rep_rb.html">lib/codin_rep.rb</a></td>
28
- <td class='right_align'><tt>86</tt></td>
29
- <td class='right_align'><tt>86</tt></td>
28
+ <td class='right_align'><tt>87</tt></td>
29
+ <td class='right_align'><tt>87</tt></td>
30
30
  <td class="left_align"><div class="percent_graph_legend"><tt class=''>0.00%</tt></div>
31
31
  <div class="percent_graph">
32
32
  <div class="covered" style="width:0px"></div>
@@ -177,141 +177,144 @@
177
177
  <td><pre><a name="line43">43</a> </pre></td>
178
178
  </tr>
179
179
  <tr class="uncovered">
180
- <td><pre><a name="line44">44</a> def set_time(time)</pre></td>
180
+ <td><pre><a name="line44">44</a> # the DST parameters are just placeholders, for now.</pre></td>
181
181
  </tr>
182
182
  <tr class="uncovered">
183
- <td><pre><a name="line45">45</a> command = CodinRep::SetTime.new(time, self.ip, self.tcp_port)</pre></td>
183
+ <td><pre><a name="line45">45</a> def set_time(time, dst_start=nil, dst_end=nil)</pre></td>
184
184
  </tr>
185
185
  <tr class="uncovered">
186
- <td><pre><a name="line46">46</a> response = command.execute</pre></td>
186
+ <td><pre><a name="line46">46</a> command = CodinRep::SetTime.new(time, self.ip, self.tcp_port)</pre></td>
187
187
  </tr>
188
188
  <tr class="uncovered">
189
- <td><pre><a name="line47">47</a> return response</pre></td>
189
+ <td><pre><a name="line47">47</a> response = command.execute</pre></td>
190
190
  </tr>
191
191
  <tr class="uncovered">
192
- <td><pre><a name="line48">48</a> end</pre></td>
192
+ <td><pre><a name="line48">48</a> return response</pre></td>
193
193
  </tr>
194
194
  <tr class="uncovered">
195
- <td><pre><a name="line49">49</a> </pre></td>
195
+ <td><pre><a name="line49">49</a> end</pre></td>
196
196
  </tr>
197
197
  <tr class="uncovered">
198
- <td><pre><a name="line50">50</a> def get_employer</pre></td>
198
+ <td><pre><a name="line50">50</a> </pre></td>
199
199
  </tr>
200
200
  <tr class="uncovered">
201
- <td><pre><a name="line51">51</a> command = CodinRep::GetAfdHeader.new(self.ip, self.tcp_port)</pre></td>
201
+ <td><pre><a name="line51">51</a> def get_employer</pre></td>
202
202
  </tr>
203
203
  <tr class="uncovered">
204
- <td><pre><a name="line52">52</a> response = command.execute</pre></td>
204
+ <td><pre><a name="line52">52</a> command = CodinRep::GetAfdHeader.new(self.ip, self.tcp_port)</pre></td>
205
205
  </tr>
206
206
  <tr class="uncovered">
207
- <td><pre><a name="line53">53</a> </pre></td>
207
+ <td><pre><a name="line53">53</a> response = command.execute</pre></td>
208
208
  </tr>
209
209
  <tr class="uncovered">
210
- <td><pre><a name="line54">54</a> hash = {}</pre></td>
210
+ <td><pre><a name="line54">54</a> </pre></td>
211
211
  </tr>
212
212
  <tr class="uncovered">
213
- <td><pre><a name="line55">55</a> hash[:document_type] = response.employer_type</pre></td>
213
+ <td><pre><a name="line55">55</a> hash = {}</pre></td>
214
214
  </tr>
215
215
  <tr class="uncovered">
216
- <td><pre><a name="line56">56</a> hash[:document_number] = response.employer_document</pre></td>
216
+ <td><pre><a name="line56">56</a> hash[:document_type] = response.employer_type</pre></td>
217
217
  </tr>
218
218
  <tr class="uncovered">
219
- <td><pre><a name="line57">57</a> hash[:cei_document] = response.employer_cei</pre></td>
219
+ <td><pre><a name="line57">57</a> hash[:document_number] = response.employer_document</pre></td>
220
220
  </tr>
221
221
  <tr class="uncovered">
222
- <td><pre><a name="line58">58</a> hash[:company_name] = response.employer_name</pre></td>
222
+ <td><pre><a name="line58">58</a> hash[:cei_document] = response.employer_cei</pre></td>
223
223
  </tr>
224
224
  <tr class="uncovered">
225
- <td><pre><a name="line59">59</a> </pre></td>
225
+ <td><pre><a name="line59">59</a> hash[:company_name] = response.employer_name</pre></td>
226
226
  </tr>
227
227
  <tr class="uncovered">
228
- <td><pre><a name="line60">60</a> return hash</pre></td>
228
+ <td><pre><a name="line60">60</a> </pre></td>
229
229
  </tr>
230
230
  <tr class="uncovered">
231
- <td><pre><a name="line61">61</a> end</pre></td>
231
+ <td><pre><a name="line61">61</a> return hash</pre></td>
232
232
  </tr>
233
233
  <tr class="uncovered">
234
- <td><pre><a name="line62">62</a> </pre></td>
234
+ <td><pre><a name="line62">62</a> end</pre></td>
235
235
  </tr>
236
236
  <tr class="uncovered">
237
- <td><pre><a name="line63">63</a> def get_serial_number</pre></td>
237
+ <td><pre><a name="line63">63</a> </pre></td>
238
238
  </tr>
239
239
  <tr class="uncovered">
240
- <td><pre><a name="line64">64</a> command = CodinRep::GetAfdHeader.new(self.ip, self.tcp_port)</pre></td>
240
+ <td><pre><a name="line64">64</a> def get_serial_number</pre></td>
241
241
  </tr>
242
242
  <tr class="uncovered">
243
- <td><pre><a name="line65">65</a> response = command.execute</pre></td>
243
+ <td><pre><a name="line65">65</a> command = CodinRep::GetAfdHeader.new(self.ip, self.tcp_port)</pre></td>
244
244
  </tr>
245
245
  <tr class="uncovered">
246
- <td><pre><a name="line66">66</a> response.rep_serial_number</pre></td>
246
+ <td><pre><a name="line66">66</a> response = command.execute</pre></td>
247
247
  </tr>
248
248
  <tr class="uncovered">
249
- <td><pre><a name="line67">67</a> end</pre></td>
249
+ <td><pre><a name="line67">67</a> response.rep_serial_number</pre></td>
250
250
  </tr>
251
251
  <tr class="uncovered">
252
- <td><pre><a name="line68">68</a> </pre></td>
252
+ <td><pre><a name="line68">68</a> end</pre></td>
253
253
  </tr>
254
254
  <tr class="uncovered">
255
- <td><pre><a name="line69">69</a> def get_records(first_id=nil)</pre></td>
255
+ <td><pre><a name="line69">69</a> </pre></td>
256
256
  </tr>
257
257
  <tr class="uncovered">
258
- <td><pre><a name="line70">70</a> command = CodinRep::GetRecords.new(first_id, self.ip, self.tcp_port)</pre></td>
258
+ <td><pre><a name="line70">70</a> def get_records(first_id=nil)</pre></td>
259
259
  </tr>
260
260
  <tr class="uncovered">
261
- <td><pre><a name="line71">71</a> response = command.execute</pre></td>
261
+ <td><pre><a name="line71">71</a> command = CodinRep::GetRecords.new(first_id, self.ip, self.tcp_port)</pre></td>
262
262
  </tr>
263
263
  <tr class="uncovered">
264
- <td><pre><a name="line72">72</a> response</pre></td>
264
+ <td><pre><a name="line72">72</a> response = command.execute</pre></td>
265
265
  </tr>
266
266
  <tr class="uncovered">
267
- <td><pre><a name="line73">73</a> end</pre></td>
267
+ <td><pre><a name="line73">73</a> response</pre></td>
268
268
  </tr>
269
269
  <tr class="uncovered">
270
- <td><pre><a name="line74">74</a> </pre></td>
270
+ <td><pre><a name="line74">74</a> end</pre></td>
271
271
  </tr>
272
272
  <tr class="uncovered">
273
- <td><pre><a name="line75">75</a> def set_employee(operation_type, registration, pis_number, name)</pre></td>
273
+ <td><pre><a name="line75">75</a> </pre></td>
274
274
  </tr>
275
275
  <tr class="uncovered">
276
- <td><pre><a name="line76">76</a> if [:add, :edit].include? operation_type</pre></td>
276
+ <td><pre><a name="line76">76</a> def set_employee(operation_type, registration, pis_number, name)</pre></td>
277
277
  </tr>
278
278
  <tr class="uncovered">
279
- <td><pre><a name="line77">77</a> command = CodinRep::AddEmployee.new(registration, pis_number, name, self.ip, self.tcp_port)</pre></td>
279
+ <td><pre><a name="line77">77</a> if [:add, :edit].include? operation_type</pre></td>
280
280
  </tr>
281
281
  <tr class="uncovered">
282
- <td><pre><a name="line78">78</a> elsif operation_type == :remove</pre></td>
282
+ <td><pre><a name="line78">78</a> command = CodinRep::AddEmployee.new(registration, pis_number, name, self.ip, self.tcp_port)</pre></td>
283
283
  </tr>
284
284
  <tr class="uncovered">
285
- <td><pre><a name="line79">79</a> command = CodinRep::DelEmployee.new(registration, self.ip, self.tcp_port)</pre></td>
285
+ <td><pre><a name="line79">79</a> elsif operation_type == :remove</pre></td>
286
286
  </tr>
287
287
  <tr class="uncovered">
288
- <td><pre><a name="line80">80</a> else</pre></td>
288
+ <td><pre><a name="line80">80</a> command = CodinRep::DelEmployee.new(registration, self.ip, self.tcp_port)</pre></td>
289
289
  </tr>
290
290
  <tr class="uncovered">
291
- <td><pre><a name="line81">81</a> raise EmployeeCommand::UnknownEmployeeOperation.new(operation_type)</pre></td>
291
+ <td><pre><a name="line81">81</a> else</pre></td>
292
292
  </tr>
293
293
  <tr class="uncovered">
294
- <td><pre><a name="line82">82</a> end</pre></td>
294
+ <td><pre><a name="line82">82</a> raise EmployeeCommand::UnknownEmployeeOperation.new(operation_type)</pre></td>
295
295
  </tr>
296
296
  <tr class="uncovered">
297
- <td><pre><a name="line83">83</a> response = command.execute</pre></td>
297
+ <td><pre><a name="line83">83</a> end</pre></td>
298
298
  </tr>
299
299
  <tr class="uncovered">
300
- <td><pre><a name="line84">84</a> response</pre></td>
300
+ <td><pre><a name="line84">84</a> response = command.execute</pre></td>
301
301
  </tr>
302
302
  <tr class="uncovered">
303
- <td><pre><a name="line85">85</a> end</pre></td>
303
+ <td><pre><a name="line85">85</a> response</pre></td>
304
304
  </tr>
305
305
  <tr class="uncovered">
306
- <td><pre><a name="line86">86</a> end</pre></td>
306
+ <td><pre><a name="line86">86</a> end</pre></td>
307
307
  </tr>
308
308
  <tr class="uncovered">
309
- <td><pre><a name="line87">87</a> end</pre></td>
309
+ <td><pre><a name="line87">87</a> end</pre></td>
310
+ </tr>
311
+ <tr class="uncovered">
312
+ <td><pre><a name="line88">88</a> end</pre></td>
310
313
  </tr>
311
314
  </tbody>
312
315
  </table>
313
316
 
314
- <p>Generated on 2017-01-31 16:03:32 -0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
317
+ <p>Generated on 2017-02-21 09:19:39 -0300 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
315
318
 
316
319
  </body>
317
320
  </html>
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.5
4
+ version: 0.2.6
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-01 00:00:00.000000000 Z
11
+ date: 2017-02-21 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.