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 +4 -4
- data/lib/fabrication.rb +2 -0
- data/lib/fabrication/railtie.rb +17 -0
- data/lib/fabrication/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9a1b1314eaefa186308758ce4b72862fc7a6394
|
4
|
+
data.tar.gz: 6c971efd9a3f10dda44475fb289643991c612201
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 678b967ba7c0344a34fbd25d91ea4da5621182e4cb8f649c9a711d4fcd4a5923ed1e3feffdeb177b3ba5640a5bb1ca93f78c6ec27b793dfa20ebee0eea142e0f
|
7
|
+
data.tar.gz: 1d0b1af21d5611cbb9312c54a29123acbdca7c6309d79c38f9985dc0876dcba1fe705b5d5a04ad1ee86ff28f260aeac7c9f1ad8a4b01bda5e6d65c7d1356acc9
|
data/lib/fabrication.rb
CHANGED
@@ -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
|
data/lib/fabrication/version.rb
CHANGED
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.
|
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-
|
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
|