active_record_to_csv 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -23,6 +23,12 @@ to_csv() returns the entire contents including the header ready to be written to
23
23
  title,director_id
24
24
  The Kids Are All Right,4
25
25
 
26
+ Note that #to_csv is called like a scope or query. The following will NOT give you the same results:
27
+
28
+ Movie.all.to_csv
29
+
30
+ This will use Ruby's Array#to_csv method.
31
+
26
32
  == TODO
27
33
 
28
34
  Options to specify columns to be included (currently, id and timestamp columns are excluded).
@@ -32,3 +38,8 @@ Options to specify columns to be included (currently, id and timestamp columns a
32
38
  Tested with ActiveRecord v3.0.4
33
39
 
34
40
  http://gem-testers.org/gems/active_record_to_csv
41
+
42
+ == Related gems
43
+
44
+ * https://github.com/ordinaryzelig/active_record_csv
45
+ * https://github.com/ordinaryzelig/orm_from_csv
@@ -1,3 +1,4 @@
1
+ require 'active_record'
1
2
  require 'csv'
2
3
 
3
4
  module ActiveRecordToCSV
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordToCsv
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'pathname'
2
- require 'active_record'
3
2
 
4
3
  require File.join(Pathname(__FILE__).dirname.expand_path, '../lib/active_record_to_csv')
5
4
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: active_record_to_csv
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jared Ning
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-26 00:00:00 -06:00
13
+ date: 2011-03-01 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency