dbf 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/README.markdown +12 -8
- data/Rakefile +1 -1
- data/VERSION.yml +2 -3
- data/bin/dbf +1 -1
- data/dbf.gemspec +7 -8
- data/lib/dbf.rb +1 -0
- metadata +7 -7
data/History.txt
CHANGED
data/README.markdown
CHANGED
@@ -63,12 +63,6 @@ otherwise all records will be loaded into memory.
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
# find all records with first_name equal to Keith and last_name equal
|
67
|
-
# to Morrison
|
68
|
-
table.find(:all, :first_name => 'Keith', :last_name => 'Morrison') do |record|
|
69
|
-
puts record.last_name
|
70
|
-
end
|
71
|
-
|
72
66
|
# find the first record with first_name equal to Keith
|
73
67
|
table.find :first, :first_name => 'Keith'
|
74
68
|
|
@@ -105,11 +99,21 @@ A small command-line utility called dbf is installed along with the gem.
|
|
105
99
|
-h = print this message
|
106
100
|
-s = print summary information
|
107
101
|
-a = create an ActiveRecord::Schema
|
108
|
-
|
102
|
+
-c = create a csv file
|
103
|
+
|
104
|
+
## dBase version support
|
105
|
+
|
106
|
+
dbase version III, IV, and V files are supported very well. Support for FoxPro
|
107
|
+
and Visual FoxPro specific datatypes is still pretty experimental. If you have
|
108
|
+
any insight into how some of these datatypes are implemented, please give me
|
109
|
+
a shout. FoxBase/dBase II files are not supported at this time.
|
110
|
+
|
109
111
|
## Limitations
|
110
|
-
|
112
|
+
|
111
113
|
* DBF is read-only
|
112
114
|
* index files are not utilized
|
115
|
+
* No attempt is made to convert character sets based on the code page defined
|
116
|
+
in the dBase file
|
113
117
|
|
114
118
|
## License
|
115
119
|
|
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ Jeweler::Tasks.new do |s|
|
|
13
13
|
s.platform = Gem::Platform::RUBY
|
14
14
|
s.authors = ['Keith Morrison']
|
15
15
|
s.email = 'keithm@infused.org'
|
16
|
-
s.add_dependency('activesupport', ['
|
16
|
+
s.add_dependency('activesupport', ['= 2.3.5'])
|
17
17
|
s.add_dependency('fastercsv', ['>= 1.4.0'])
|
18
18
|
s.homepage = 'http://github.com/infused/dbf'
|
19
19
|
end
|
data/VERSION.yml
CHANGED
data/bin/dbf
CHANGED
data/dbf.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dbf}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Keith Morrison"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-07}
|
13
13
|
s.default_executable = %q{dbf}
|
14
14
|
s.description = %q{A small fast library for reading dBase, xBase, Clipper and FoxPro database files.}
|
15
15
|
s.email = %q{keithm@infused.org}
|
@@ -78,15 +78,14 @@ Gem::Specification.new do |s|
|
|
78
78
|
s.specification_version = 3
|
79
79
|
|
80
80
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
81
|
-
s.add_runtime_dependency(%q<activesupport>, ["
|
81
|
+
s.add_runtime_dependency(%q<activesupport>, ["= 2.3.5"])
|
82
82
|
s.add_runtime_dependency(%q<fastercsv>, [">= 1.4.0"])
|
83
83
|
else
|
84
|
-
s.add_dependency(%q<activesupport>, ["
|
84
|
+
s.add_dependency(%q<activesupport>, ["= 2.3.5"])
|
85
85
|
s.add_dependency(%q<fastercsv>, [">= 1.4.0"])
|
86
86
|
end
|
87
87
|
else
|
88
|
-
s.add_dependency(%q<activesupport>, ["
|
88
|
+
s.add_dependency(%q<activesupport>, ["= 2.3.5"])
|
89
89
|
s.add_dependency(%q<fastercsv>, [">= 1.4.0"])
|
90
90
|
end
|
91
91
|
end
|
92
|
-
|
data/lib/dbf.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 1.2.
|
8
|
+
- 5
|
9
|
+
version: 1.2.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Keith Morrison
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-07 00:00:00 -07:00
|
18
18
|
default_executable: dbf
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -22,13 +22,13 @@ dependencies:
|
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
segments:
|
28
28
|
- 2
|
29
|
-
-
|
30
|
-
-
|
31
|
-
version: 2.
|
29
|
+
- 3
|
30
|
+
- 5
|
31
|
+
version: 2.3.5
|
32
32
|
type: :runtime
|
33
33
|
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|