dbf 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 1.2.5
2
+
3
+ * Remove ruby warning switch
4
+ * Requires activesupport version 2.3.5
5
+
1
6
  == 1.2.4
2
7
 
3
8
  * Add csv output option to dbf command-line utility
@@ -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', ['>= 2.1.0'])
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
@@ -1,5 +1,4 @@
1
1
  ---
2
- :major: 1
3
2
  :minor: 2
4
- :build:
5
- :patch: 4
3
+ :patch: 5
4
+ :major: 1
data/bin/dbf CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby -ws
1
+ #!/usr/bin/env ruby -s
2
2
 
3
3
  require 'rubygems'
4
4
  require 'dbf'
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
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.4"
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-06}
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>, [">= 2.1.0"])
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>, [">= 2.1.0"])
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>, [">= 2.1.0"])
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
@@ -1,4 +1,5 @@
1
1
  require 'date'
2
+ gem 'activesupport', '=2.3.5'
2
3
  require 'active_support'
3
4
 
4
5
  if RUBY_VERSION > '1.9'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 4
9
- version: 1.2.4
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-06 00:00:00 -07:00
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
- - 1
30
- - 0
31
- version: 2.1.0
29
+ - 3
30
+ - 5
31
+ version: 2.3.5
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency