fabrication 0.6.3 → 0.6.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.
@@ -3,7 +3,7 @@ class Fabrication::Fabricator
3
3
  class << self
4
4
 
5
5
  def define(name, options={}, &block)
6
- raise Fabrication::DuplicateFabricatorError if schematics.include?(name)
6
+ raise Fabrication::DuplicateFabricatorError, "'#{name}' is already defined" if schematics.include?(name)
7
7
  schematics[name] = schematic_for(name, options, &block)
8
8
  end
9
9
 
@@ -35,7 +35,7 @@ class Fabrication::Fabricator
35
35
  parent = schematics[options[:from]]
36
36
  class_name = class_name_for(name, parent, options)
37
37
  klass = Fabrication::Support.class_for(class_name)
38
- raise Fabrication::UnfabricatableError unless klass
38
+ raise Fabrication::UnfabricatableError, "No class found for '#{name}'" unless klass
39
39
  if parent
40
40
  parent.merge(&block).tap { |s| s.klass = klass }
41
41
  else
@@ -1,3 +1,3 @@
1
1
  module Fabrication
2
- VERSION = '0.6.3'
2
+ VERSION = '0.6.4'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fabrication
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 3
10
- version: 0.6.3
9
+ - 4
10
+ version: 0.6.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Elliott
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-18 00:00:00 -04:00
18
+ date: 2010-08-23 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency