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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30b5c1e55c3ca21195b3f9564e0d2b5a56b499450b349167469f345aa5a49485
4
- data.tar.gz: bf95432f342ceedff1dfe24da3eeda9d41e24d7bd2874172bce099a4c836e903
3
+ metadata.gz: 43bd60d546db8d7696d2c3f0ea7c52272063feb45dd0ee93d7f8e48e7d68819d
4
+ data.tar.gz: 89f3c2ff9eff8820edb54bd580b57ecd7a3eec5f2dff783c3c4d76c6b9b53e30
5
5
  SHA512:
6
- metadata.gz: bf74071bb121573869b82a8c90dc6f8ef13feb0fdd26394f8e53dbe66a17cf2d9b76f10bedb4b2787f073dca0828334f91e80bfeb379f66d4a9891e5c7e042bb
7
- data.tar.gz: 51db9356c673799b72531e960520ae7b9c86747a41e28224ef438f2dca2fdca873fc350e424089b2caa2efb0206f864fc5659f4ba1001609100ae5920f7bcf05
6
+ metadata.gz: 19bfe157c486c5ef6cc804bfc88791d565ff18001f0ff1053cd3ff52661746bffec403750c1046244aba1d8f9c13f73ea8527deea36c29304aa5f4fbc0629e0c
7
+ data.tar.gz: 2854003f69b4bdf4ae6a2c1b5a5d3f1ea6b4f4c88a456202e757af76fb003552b6425ac9347dd7ca1e6dae88227c8da4e412e68494d9cc0d97bbfa86463cef94
@@ -31,6 +31,7 @@
31
31
  dataType: 'json',
32
32
  contentType: 'multipart/form-data',
33
33
  data: data,
34
+ beforeSend: function() { return true; },
34
35
  success: function(e) {
35
36
  blink('successful');
36
37
  },
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicroCms
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
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.0
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-01 00:00:00.000000000 Z
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.2.0
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.2.0
26
+ version: 5.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: factory_bot_rails
29
29
  requirement: !ruby/object:Gem::Requirement