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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +10 -10
- data/README.md +1 -1
- data/Rakefile +1 -28
- data/bin/dbf +7 -8
- data/dbf.gemspec +1 -1
- data/docs/{encodings.csv → supported_encodings.csv} +3 -3
- data/lib/dbf/version.rb +1 -1
- data/spec/dbf/file_formats_spec.rb +0 -22
- data/spec/dbf/record_spec.rb +3 -3
- data/spec/dbf/table_spec.rb +2 -2
- metadata +8 -16
- data/spec/dbf/dir_alumnos.csv +0 -3118
- data/spec/dbf/test.csv +0 -3118
- data/spec/fixtures/dir_alumnos.dbf +0 -0
- data/spec/fixtures/dir_alumnos.fpt +0 -0
- data/spec/fixtures/test.rb +0 -48
- data/spec/fixtures/test/dir_alumnos.dbf +0 -0
- data/spec/fixtures/test/dir_alumnos.fpt +0 -0
- data/spec/rvm_ruby_runner.rb +0 -13
Binary file
|
Binary file
|
data/spec/fixtures/test.rb
DELETED
@@ -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
|
Binary file
|
Binary file
|
data/spec/rvm_ruby_runner.rb
DELETED
@@ -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
|