crafterm-comma 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/comma.rb +2 -2
  2. metadata +2 -2
data/lib/comma.rb CHANGED
@@ -21,12 +21,12 @@ class Object
21
21
  end
22
22
 
23
23
  def to_comma(style = :default)
24
- raise "No comma format defined for style #{style}" unless self.comma_formats[style]
24
+ raise "No comma format for class #{self.class} defined for style #{style}" unless self.comma_formats and self.comma_formats[style]
25
25
  Comma::DataExtractor.new(self, &self.comma_formats[style]).results
26
26
  end
27
27
 
28
28
  def to_comma_headers(style = :default)
29
- raise "No comma format defined for style #{style}" unless self.comma_formats[style]
29
+ raise "No comma format for class #{self.class} defined for style #{style}" unless self.comma_formats and self.comma_formats[style]
30
30
  Comma::HeaderExtractor.new(self, &self.comma_formats[style]).results
31
31
  end
32
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crafterm-comma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Crafter
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-13 00:00:00 -08:00
12
+ date: 2009-03-21 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency