micro_cms 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/micro_cms.js +1 -0
- data/lib/micro_cms/engine.rb +13 -0
- data/lib/micro_cms/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43bd60d546db8d7696d2c3f0ea7c52272063feb45dd0ee93d7f8e48e7d68819d
|
4
|
+
data.tar.gz: 89f3c2ff9eff8820edb54bd580b57ecd7a3eec5f2dff783c3c4d76c6b9b53e30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19bfe157c486c5ef6cc804bfc88791d565ff18001f0ff1053cd3ff52661746bffec403750c1046244aba1d8f9c13f73ea8527deea36c29304aa5f4fbc0629e0c
|
7
|
+
data.tar.gz: 2854003f69b4bdf4ae6a2c1b5a5d3f1ea6b4f4c88a456202e757af76fb003552b6425ac9347dd7ca1e6dae88227c8da4e412e68494d9cc0d97bbfa86463cef94
|
data/lib/micro_cms/engine.rb
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
begin
|
4
|
+
require 'factory_bot_rails'
|
5
|
+
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
6
|
+
end
|
7
|
+
|
3
8
|
module MicroCms
|
4
9
|
class Engine < ::Rails::Engine
|
10
|
+
FACTORIES = File.expand_path('../../spec/factories', __dir__).freeze
|
11
|
+
|
5
12
|
isolate_namespace MicroCms
|
6
13
|
|
7
14
|
config.generators do |generators|
|
@@ -21,5 +28,11 @@ module MicroCms
|
|
21
28
|
config.authorization_token = SecureRandom.urlsafe_base64
|
22
29
|
end
|
23
30
|
end
|
31
|
+
|
32
|
+
if defined? FactoryBotRails
|
33
|
+
initializer 'mirco_cms.set_factory_paths', after: 'factory_bot.set_factory_paths' do |_app|
|
34
|
+
FactoryBot.definition_file_paths << FACTORIES
|
35
|
+
end
|
36
|
+
end
|
24
37
|
end
|
25
38
|
end
|
data/lib/micro_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: micro_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Bischof
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: 5.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.
|
26
|
+
version: 5.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: factory_bot_rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|