csv_pirate 5.0.7 → 5.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.0.0
3
4
  - 1.9.3
4
- - 1.9.2
5
5
  - jruby-19mode
6
6
  - rbx-19mode
7
- - ruby-head
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ Version 5.0.8 2013-08-30
2
+ - BUGFIX - Fixed MINOR/PATCH/BUILD version values
3
+ - Removed Ruby 1.8.7 hand holding, added instructions for installation of 'faster_csv' when on 1.8.7
4
+ - Updated travis builds (Ruby 2.0.0!)
5
+
1
6
  Version 5.0.7 2012-12-28
2
7
 
3
8
  - BUGFIX - Corrected implementation of :bury_treasure option, which allows storage of results as an array in buried_treasure
@@ -3,7 +3,13 @@
3
3
  Easily create CSVs of any data that can be derived from your models.
4
4
 
5
5
  CsvPirate is the easy way to create a CSV of essentially anything in Ruby, in full pirate regalia.
6
- It works better if you are wearing a tricorne! Now compatible with Ruby 1.8.7 & 1.9.2, and Rails 2 & 3!
6
+ It works better if you are wearing a tricorne!
7
+
8
+ Compatible with:
9
+
10
+ Ruby 1.8.7 (Must also install/require 'faster_csv')
11
+ Ruby 1.9.2, 1.9.3, and 2.0.0
12
+ Rails 2, 3, and 4
7
13
 
8
14
  Everything in the source that depended on Rails extensions of Ruby classes has been refactored to work in pure Ruby!
9
15
 
@@ -50,6 +56,11 @@ Avast! Here be pirates! To brush up on pirate coding naming conventions:
50
56
 
51
57
  [sudo] gem install csv_pirate
52
58
 
59
+ If you are still using Ruby < 1.9 then you will need to add fastercsv to your project.
60
+ FasterCSV became the built-in CSV library in Ruby 1.9, so is *only* required if using an older Ruby.
61
+
62
+ gem 'faster_csv', '>= 1.4.0'
63
+
53
64
  == Upgrading
54
65
 
55
66
  From version prior to 5.0
@@ -398,14 +409,13 @@ To run tests cd to where ever you have csv_pirate installed, and do:
398
409
 
399
410
  rake spec
400
411
 
401
- == BUGS (Not mine, Micrsoft's)
412
+ == Compatibility with Micrsoft Excel
402
413
 
403
414
  Microsoft Office (Excel) "SYLK Invalid Format" Error will occur if the string "ID" (without quotes)
404
415
  is at the beginning of the CSV file. This is strangely inconvenient for rails CSVs since every table
405
416
  in rails starts with an id column. So buyer beware... make your first column lower case 'id'
406
417
  if you need to export the id field.
407
418
 
408
- Micrsoft... I loathe you.
409
419
  http://www.bradino.com/misc/sylk-file-format-is-not-valid/
410
420
 
411
421
  == Contributing to CsvPirate
@@ -426,14 +436,29 @@ Source:
426
436
  Release Announcement:
427
437
  http://galtzo.blogspot.com/2009/03/csv-pirate.html
428
438
 
439
+ == Versioning
440
+
441
+ This library aims to adhere to {Semantic Versioning 2.0.0}[http://semver.org/].
442
+ Violations of this scheme should be reported as bugs. Specifically,
443
+ if a minor or patch version is released that breaks backward
444
+ compatibility, a new version should be immediately released that
445
+ restores compatibility. Breaking changes to the public API will
446
+ only be introduced with new major versions.
447
+
448
+ As a result of this policy, you can (and should) specify a
449
+ dependency on this gem using the {Pessimistic Version Constraint}[http://docs.rubygems.org/read/chapter/16#page74] with two digits of precision.
450
+
451
+ For example:
452
+
453
+ spec.add_dependency 'csv_pirate', '~> 5.0'
454
+
429
455
  == Thanks
430
456
 
431
457
  Thanks go to:
432
458
 
433
- * 9thBit LLC (http://www.9thBit.net) - Peter Boling, author of CsvPirate, runs the joint.
434
- * Sagebit LLC (http://www.sagebit.com) - Sagebit has been very supportive of my open source efforts, thanks Ben!
459
+ * [Peter Boling](http://railsbling.com), author of CsvPirate, runs the joint.
435
460
  * TimePerks LLC (http://www.timeperks.com) - Many useful enhancements were requested and paid for by TimePerks
436
461
 
437
462
  ----------------------------------------------------------------------------------
438
463
  Author: Peter Boling, peter.boling at gmail dot com
439
- Copyright (c) 2008-2012 Peter H. Boling of 9thBit LLC, released under the MIT license. See LICENSE for details.
464
+ Copyright (c) 2008-2013 Peter H. Boling of 9thBit LLC, released under the MIT license. See LICENSE for details.
@@ -5,7 +5,6 @@ Gem::Specification.new do |s|
5
5
  s.name = %q{csv_pirate}
6
6
  s.version = CsvPirate::VERSION
7
7
 
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
8
  s.authors = ["Peter Boling"]
10
9
  s.description = %q{CsvPirate is the easy way to create a CSV of essentially anything in Ruby, in full pirate regalia.
11
10
  It works better if you are wearing a tricorne!}
@@ -19,14 +18,10 @@ It works better if you are wearing a tricorne!}
19
18
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
20
19
  s.homepage = %q{http://github.com/pboling/csv_pirate}
21
20
  s.licenses = ["MIT"]
21
+ s.platform = Gem::Platform::RUBY
22
22
  s.require_paths = ["lib"]
23
- s.rubygems_version = %q{1.3.7}
24
23
  s.summary = %q{Easily create CSVs of any data that can be derived from instance methods on your classes.}
25
24
 
26
- #FasterCSV became the built-in CSV library in Ruby 1.9, so is only required if using Ruby 1.8
27
- if RUBY_VERSION =~ /^1\.8\.\d*/
28
- s.add_runtime_dependency(%q<fastercsv>, [">= 1.4.0"])
29
- end
30
25
  s.add_development_dependency(%q<rspec>, [">= 2.11.0"])
31
26
  s.add_development_dependency(%q<shoulda>, [">= 0"])
32
27
  s.add_development_dependency(%q<rdoc>, [">= 3.12"])
@@ -1,12 +1,12 @@
1
1
  module CsvPirate
2
2
 
3
- VERSION = "5.0.7"
3
+ VERSION = "5.0.8"
4
4
 
5
5
  VERSION_ARRAY = VERSION.split('.')
6
6
 
7
7
  MAJOR = VERSION_ARRAY[0].to_i
8
- MINOR = VERSION_ARRAY[2].to_i
9
- PATCH = VERSION_ARRAY[3].to_i
10
- BUILD = VERSION_ARRAY[4]
8
+ MINOR = VERSION_ARRAY[1].to_i
9
+ PATCH = VERSION_ARRAY[2].to_i
10
+ BUILD = VERSION_ARRAY[3]
11
11
 
12
12
  end
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: 5.0.7
4
+ version: 5.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-28 00:00:00.000000000 Z
12
+ date: 2013-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project:
169
- rubygems_version: 1.8.24
169
+ rubygems_version: 1.8.25
170
170
  signing_key:
171
171
  specification_version: 3
172
172
  summary: Easily create CSVs of any data that can be derived from instance methods