csv_pirate 3.4.3 → 3.4.4

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.
Files changed (5) hide show
  1. data/CHANGELOG +3 -0
  2. data/README.rdoc +26 -10
  3. data/VERSION.yml +1 -1
  4. data/csv_pirate.gemspec +2 -2
  5. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ Version 3.4.4 2009-11-10
2
+ - Fixed installation instructions to refer to gemcutter, and removed github as gemhost
3
+
1
4
  Version 3.4.3 2009-11-03
2
5
  - Fixed has_csv_pirate_ship to allow models to load pre-migration, so rake tasks will still run.
3
6
 
@@ -54,11 +54,13 @@ Release Announcement:
54
54
  http://galtzo.blogspot.com/2009/03/csv-pirate.html
55
55
 
56
56
 
57
- == Installation
57
+ == Install as a RubyGem
58
58
 
59
- Gem from Gemcutter (after setting up your machine to use the gemcutter repo, see http://gemcutter.org):
59
+ Gemcutter is the hot new gem host, and you can use it like this (see http://gemcutter.org):
60
60
 
61
- sudo gem install csv_pirate
61
+ [sudo] gem install gemcutter
62
+ [sudo] gem tumble # makes gemcutter gem source first in line
63
+ [sudo] gem install csv_pirate
62
64
 
63
65
  Gem Using Git building from source:
64
66
 
@@ -67,21 +69,25 @@ Gem Using Git building from source:
67
69
  git clone git://github.com/pboling/csv_pirate.git
68
70
  cd csv_pirate
69
71
  gem build csv_pirate.gemspec
70
- sudo gem install csv_pirate-3.4.1.gem # (Or whatever version gets built)
72
+ sudo gem install csv_pirate-3.4.4.gem # (Or whatever version gets built)
71
73
 
72
- Then cd to your rails app to optionally freeze the gem into your app:
74
+ Then in your environment.rb (if you are just going to use it from the console, you can require it as needed there, and skip the config.gem):
73
75
 
74
- rake gems:freeze GEM=csv_pirate
76
+ config.gem 'csv_pirate'
77
+
78
+ Then cd to your rails app to optionally freeze the gem into your app (if you roll this way):
75
79
 
76
- Installing Gem from Github's Gem Server:
80
+ rake gems:freeze GEM=csv_pirate
77
81
 
78
- sudo gem install pboling-csv_pirate -s http://gems.github.com
82
+ == Install as a Plugin
79
83
 
80
84
  Plugin using Git:
81
85
 
82
86
  ruby script/plugin install git://github.com/pboling/csv_pirate.git
83
87
 
84
- If installed as a gem load it with config.gem 'csv_pirate' # or 'pboling-csv_pirate' if from github
88
+ == Install as a Git Submodule (plugin)
89
+
90
+ git submodule add git://github.com/pboling/sanitize_email.git vendor/plugins/sanitize_email
85
91
 
86
92
  == Upgrading
87
93
 
@@ -92,7 +98,7 @@ If installed as a gem load it with config.gem 'csv_pirate' # or 'pboling-csv_pir
92
98
 
93
99
  == Usage with ActiveRecord
94
100
 
95
- What's the simplest thing that'll work?
101
+ What's the simplest thing that will work?
96
102
 
97
103
  class MyClass < ActiveRecord::Base
98
104
  has_csv_pirate_ship # defaults to csv of all columns of all records
@@ -393,6 +399,16 @@ This allows you to modify the csv_pirate object before creating the csv like thi
393
399
  csv_pirate.booty -= [:id, :name]
394
400
  csv_pirate.hoist_mainstay()
395
401
 
402
+ == BUGS (Not mine, Micrsoft's)
403
+
404
+ Microsoft Office (Excel) "SYLK Invalid Format" Error will occur if the string "ID" (without quotes)
405
+ is at the beginning of the CSV file. This is strangely inconvenient for rails CSVs since every table
406
+ in rails starts with an id column. So buyer beware... make your first column lower case 'id'
407
+ if you need to export the id field.
408
+
409
+ Micrsoft... I loathe you.
410
+ http://www.bradino.com/misc/sylk-file-format-is-not-valid/
411
+
396
412
  == Thanks
397
413
 
398
414
  Thanks go to
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :minor: 4
3
- :patch: 3
3
+ :patch: 4
4
4
  :major: 3
5
5
  :build:
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{csv_pirate}
8
- s.version = "3.4.3"
8
+ s.version = "3.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Boling"]
12
- s.date = %q{2009-11-04}
12
+ s.date = %q{2009-11-10}
13
13
  s.description = %q{CsvPirate is the easy way to create a CSV of essentially anything in Rails, in full pirate regalia.
14
14
  It works better if you are wearing a tricorne!}
15
15
  s.email = %q{peter.boling@gmail.com}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv_pirate
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.3
4
+ version: 3.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-04 00:00:00 -05:00
12
+ date: 2009-11-10 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency