dbf 2.0.6 → 2.0.7

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.
@@ -1,48 +0,0 @@
1
- require 'dbf'
2
-
3
- module Estudiante
4
-
5
- DATA_FOLDER = "./"
6
-
7
- HEADERS = %w{
8
- id
9
- nombres
10
- apellidos
11
- cedula
12
- sexo
13
- fecha_nacimiento
14
- condicion
15
- observacion
16
- becado
17
- foto
18
- cedula_escolar
19
- email
20
- direccion
21
- peso
22
- estatura
23
- fecha_ingreso
24
- representante_id
25
- ciudad_id
26
- seccion_id
27
- matricula_id
28
- telefono_id
29
- }
30
-
31
- def self.checkPhone(home = nil, mobile = nil)
32
- puts "home: #{home} - mobile: #{mobile}"
33
- end
34
-
35
- def self.getStudents
36
-
37
- table = DBF::Table.new(DATA_FOLDER + "dir_alumnos.dbf")
38
-
39
- students = Array.new
40
-
41
- table.each do |estudiante|
42
- checkPhone(estudiante.telf, estudiante.celular)
43
- end
44
- end
45
-
46
- end
47
-
48
- Estudiante.getStudents
@@ -1,13 +0,0 @@
1
- class RvmRubyRunner
2
- def self.run(ruby_string)
3
- output = `rvm use #{ruby_string}@dbf --create; bundle install; rspec`
4
- puts output if ENV['DEBUG=1']
5
- if output =~ /To install do/
6
- "#{ruby_string.rjust 12}: not installed"
7
- elsif output =~ /Finished/m
8
- results = output.lines.to_a[-1].strip
9
- time = output.lines.to_a[-2].strip
10
- "#{ruby_string.rjust 12}: #{results}, #{time}"
11
- end
12
- end
13
- end