csv_pirate 4.0.5 → 4.0.6
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.
- data/VERSION.yml +1 -1
- data/csv_pirate.gemspec +2 -2
- data/rails/init.rb +3 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
data/csv_pirate.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{csv_pirate}
|
8
|
-
s.version = "4.0.
|
8
|
+
s.version = "4.0.6"
|
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{2010-02-
|
12
|
+
s.date = %q{2010-02-12}
|
13
13
|
s.description = %q{CsvPirate is the easy way to create a CSV of essentially anything in Ruby, in full pirate regalia.
|
14
14
|
It works better if you are wearing a tricorne!}
|
15
15
|
s.email = %q{peter.boling@gmail.com}
|
data/rails/init.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#We might have rails...
|
2
|
-
if defined?(Rails) && defined?(config) && config.respond_to?(:gems)
|
2
|
+
if defined?(Rails) && !defined?(Rake) && defined?(config) && config.respond_to?(:gems)
|
3
3
|
|
4
4
|
config.gem 'fastercsv', :lib => 'faster_csv', :version => '>=1.4.0'
|
5
5
|
|
@@ -17,7 +17,7 @@ if defined?(Rails) && defined?(config) && config.respond_to?(:gems)
|
|
17
17
|
ActiveRecord::Base.send(:extend, NinthBit::PirateShip::ActMethods) if defined?(ActiveRecord)
|
18
18
|
end
|
19
19
|
|
20
|
-
#And we might not...
|
20
|
+
#And we might not... (rake needs to come hear to load the gems properly)
|
21
21
|
else
|
22
22
|
|
23
23
|
begin
|
@@ -26,6 +26,7 @@ else
|
|
26
26
|
gem 'fastercsv', '>=1.4.0', :lib => 'faster_csv'
|
27
27
|
require 'csv_pirate'
|
28
28
|
require 'ninth_bit/pirate_ship'
|
29
|
+
ActiveRecord::Base.send(:extend, NinthBit::PirateShip::ActMethods) if defined?(ActiveRecord)
|
29
30
|
|
30
31
|
rescue Gem::LoadError
|
31
32
|
puts "Install the fastercsv gem to enable CsvPirate"
|
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: 4.0.
|
4
|
+
version: 4.0.6
|
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: 2010-02-
|
12
|
+
date: 2010-02-12 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|