phcpresspro 32.0.0 → 32.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phcpresspro/engine.rb +11 -4
- data/lib/phcpresspro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2dfa4e02ad59df9ff5555e6e77d99aaea43b3cbead890ff191f8aa70cb380be
|
4
|
+
data.tar.gz: 729e42fc110615d787bd7d008786f83ca50911d7d89a4679c8adbcb46385f4d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be21a26a6209d1e22b4d180eab7acd901e3c5570d67c32dcfd58288e395230627a360dfb52811f3e3db46dfab880715be0c4a070823b94b1a130f52e29bd1428
|
7
|
+
data.tar.gz: 6ec2d71fe921a4870a64af1dec4ce8e98d3777ba833aa5bbc9c09d4a0402b85d88b51394f2997c06f9eb7fc95eb5597b11c654b6f07e38f2d3bfd3ab8f66d10e
|
data/lib/phcpresspro/engine.rb
CHANGED
@@ -2,8 +2,8 @@ module Phcpresspro
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
|
4
4
|
# Main Dependencies
|
5
|
-
require 'phcaccountspro'
|
6
5
|
require 'paper_trail'
|
6
|
+
require 'phcaccountspro'
|
7
7
|
|
8
8
|
# PHCEngines & Theme Dependencies
|
9
9
|
require 'phcnotifi'
|
@@ -29,6 +29,9 @@ module Phcpresspro
|
|
29
29
|
require 'multi_json'
|
30
30
|
require 'responders'
|
31
31
|
|
32
|
+
# Clean URLS
|
33
|
+
require 'friendly_id'
|
34
|
+
|
32
35
|
# WYSIWYG Editor Dependencies
|
33
36
|
require 'tinymce-rails'
|
34
37
|
|
@@ -39,7 +42,7 @@ module Phcpresspro
|
|
39
42
|
# Isolate Namespace
|
40
43
|
isolate_namespace Phcpresspro
|
41
44
|
|
42
|
-
|
45
|
+
# Testing Generator
|
43
46
|
config.generators do |g|
|
44
47
|
g.test_framework :rspec,
|
45
48
|
fixtures: true,
|
@@ -48,15 +51,19 @@ module Phcpresspro
|
|
48
51
|
routing_specs: false,
|
49
52
|
controller_specs: true,
|
50
53
|
request_specs: false
|
51
|
-
g.fixture_replacement :
|
54
|
+
g.fixture_replacement :factory_bot, dir: "spec/factories"
|
52
55
|
end
|
53
56
|
|
54
57
|
# Load Requried Helper Files
|
55
58
|
config.to_prepare do
|
56
|
-
ApplicationController.helper(Phcaccountspro::ApplicationHelper)
|
57
59
|
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
58
60
|
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
59
61
|
end
|
60
62
|
|
63
|
+
# Load Language Files
|
64
|
+
config.before_initialize do
|
65
|
+
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
66
|
+
end
|
67
|
+
|
61
68
|
end
|
62
69
|
end
|
data/lib/phcpresspro/version.rb
CHANGED