fabrication 2.15.0 → 2.15.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ca83ffb9ee5c148c97f69e49b53abea8a7d6824
4
- data.tar.gz: 16786e33e23d47aa85002d4b625d42e48464806d
3
+ metadata.gz: e9a1b1314eaefa186308758ce4b72862fc7a6394
4
+ data.tar.gz: 6c971efd9a3f10dda44475fb289643991c612201
5
5
  SHA512:
6
- metadata.gz: 499cd61316ffe755dae558da80a46e475d46d5b42a2728666eb952c9e691281feb1d2dd6a49882b5430de2ff3ae1d512c68321c108e3d4aa7f3122c919498252
7
- data.tar.gz: 5970658104e0ab9e9572c7f68272ba9e8ff9f8167da59ace22e3053b720cba0056cdebc806fb4561594343c2cbaa90bd2da1243ad294ee4bf4ea344b26036b57
6
+ metadata.gz: 678b967ba7c0344a34fbd25d91ea4da5621182e4cb8f649c9a711d4fcd4a5923ed1e3feffdeb177b3ba5640a5bb1ca93f78c6ec27b793dfa20ebee0eea142e0f
7
+ data.tar.gz: 1d0b1af21d5611cbb9312c54a29123acbdca7c6309d79c38f9985dc0876dcba1fe705b5d5a04ad1ee86ff28f260aeac7c9f1ad8a4b01bda5e6d65c7d1356acc9
@@ -1,3 +1,5 @@
1
+ require 'fabrication/railtie' if defined?(Rails)
2
+
1
3
  autoload :Fabricate, 'fabricate'
2
4
 
3
5
  if defined?(Rake)
@@ -0,0 +1,17 @@
1
+ module Fabrication
2
+ class Railtie < Rails::Railtie
3
+ initializer 'fabrication.set_fixture_replacement' do
4
+ # Rails 3.0.1 and up uses `app_generators`
5
+ generators =
6
+ if config.respond_to?(:app_generators)
7
+ config.app_generators
8
+ else
9
+ config.generators
10
+ end
11
+
12
+ unless generators.rails.has_key?(:fixture_replacement)
13
+ generators.fixture_replacement :fabrication
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Fabrication
2
- VERSION = '2.15.0'
2
+ VERSION = '2.15.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fabrication
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.0
4
+ version: 2.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Elliott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-13 00:00:00.000000000 Z
11
+ date: 2016-05-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Fabrication is an object generation framework for ActiveRecord, Mongoid,
14
14
  DataMapper, Sequel, or any other Ruby object.
@@ -34,6 +34,7 @@ files:
34
34
  - lib/fabrication/generator/data_mapper.rb
35
35
  - lib/fabrication/generator/mongoid.rb
36
36
  - lib/fabrication/generator/sequel.rb
37
+ - lib/fabrication/railtie.rb
37
38
  - lib/fabrication/schematic/attribute.rb
38
39
  - lib/fabrication/schematic/definition.rb
39
40
  - lib/fabrication/schematic/evaluator.rb