lotus_admin 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71c9fe1d41f76cb80a2e2dd1417dbe65eed53559
4
- data.tar.gz: 8b06ff35a33b84fa577365a67df9fe98e963d8af
3
+ metadata.gz: e6b69c602d90c872029671989901d6771007e479
4
+ data.tar.gz: d0b6f5d6119c5e5facc066d09125932f3e6a90bc
5
5
  SHA512:
6
- metadata.gz: 9272546b682589398887a5ec302deed33b56cde039e53cd63d2cdad4bcebdaf7f664f3432ae42f580449339bcfab56015524bb5b16e934803ba88d417f993646
7
- data.tar.gz: c5f612e7a6a2416c1874e8d028ceafd08ec7b4279e08eb70db26771d222f574bc8c364b12e0ac90af93efb23bfa389b66735ab45265691ad3f386bc8b2136321
6
+ metadata.gz: 4b2f500cdb34e2f0168d189745e0456d1aef5c24af74ce68a6db60a53f3cfed8dfd0692fa3a33bf06518d4f299ce41aadb591092a198ce315fbcaad9c5580da1
7
+ data.tar.gz: cf753f92a31245c4de958d6703878430dbda3cf2dbadff1643aa601e7ea94bf6d37f632a79f04dec75681e01c5751bb4f4fafaa4608c7214e45273b76fbacd75
@@ -11,6 +11,13 @@ module LotusAdmin
11
11
  Rails.application.config.assets.precompile += %w( lotus_admin/application.js lotus_admin/application.css )
12
12
  end
13
13
 
14
+ # Let consumers make use of our factories
15
+ initializer 'lotus_admin.factory_bot_paths', after: 'factory_bot.set_factory_paths' do
16
+ if defined?(FactoryBot)
17
+ FactoryBot.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__)
18
+ end
19
+ end
20
+
14
21
  initializer :append_migrations do |app|
15
22
  # This prevents migrations from being loaded twice from the inside of the gem itself (dummy test app)
16
23
  if app.root.to_s !~ /#{root}/
@@ -1,3 +1,3 @@
1
1
  module LotusAdmin
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotus_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Millsaps-Brewer