effective_bootstrap 0.11.12 → 0.11.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 848fb136fecffedd81eac47539676db7be177b0416fb222e4b9e152233308dc3
|
4
|
+
data.tar.gz: 1b514490cbc2b00d40ab118a455df977ff0b3f2cd9293ae9db5e74b7675c4e8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc6df6d54902724a5a96b537f73dc325025f8fffd2ba086ee2bd857378cd06839a971e78ea59f870a066eacd7408c6073ba1d48346624f71500dcba09e229aa3
|
7
|
+
data.tar.gz: dbe501f91e7ebb8524cbc8effff86ee1e499bc18beed91765176263b35ac529b98154529130667466ab3475e3f1597f7d436d876563e682402e71a192b5b8d38
|
@@ -7,11 +7,21 @@ module Effective
|
|
7
7
|
# https://imperavi.com/article/docs/settings/
|
8
8
|
def self.defaults
|
9
9
|
{
|
10
|
+
# This is overridden by the active_storage() method below
|
10
11
|
active_storage: nil,
|
12
|
+
|
13
|
+
# This is overridden by the css() method below
|
11
14
|
css: ['/assets/article_editor/arx-frame.min.css'],
|
15
|
+
|
16
|
+
# This is overridden by the custom_css() method below
|
12
17
|
custom: {
|
13
|
-
css: [
|
18
|
+
css: [
|
19
|
+
'application.css',
|
20
|
+
'/assets/effective_bootstrap_article_editor.css'
|
21
|
+
]
|
14
22
|
},
|
23
|
+
|
24
|
+
# The rest of these are just normal Hash options
|
15
25
|
align: {
|
16
26
|
'left': 'text-left',
|
17
27
|
'center': 'text-center',
|
@@ -126,15 +136,36 @@ module Effective
|
|
126
136
|
end
|
127
137
|
|
128
138
|
def input_js_options
|
129
|
-
self.class.defaults.merge(active_storage: active_storage, custom: { css: custom_css })
|
139
|
+
self.class.defaults.merge(active_storage: active_storage, css: css, custom: { css: custom_css })
|
140
|
+
end
|
141
|
+
|
142
|
+
def css
|
143
|
+
if @template.respond_to?(:asset_pack_path)
|
144
|
+
[@template.asset_pack_path('article_editor/arx-frame.min.css')]
|
145
|
+
elsif @template.respond_to?(:asset_path)
|
146
|
+
[@template.asset_path('article_editor/arx-frame.min.css')]
|
147
|
+
else
|
148
|
+
['/assets/article_editor/arx-frame.min.css']
|
149
|
+
end
|
130
150
|
end
|
131
151
|
|
132
152
|
def custom_css
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
153
|
+
if @template.respond_to?(:asset_pack_path)
|
154
|
+
[
|
155
|
+
@template.asset_pack_path('application.css'),
|
156
|
+
@template.asset_pack_path('effective_bootstrap_article_editor.css')
|
157
|
+
]
|
158
|
+
elsif @template.respond_to?(:asset_path)
|
159
|
+
[
|
160
|
+
@template.asset_path('application.css'),
|
161
|
+
@template.asset_path('effective_bootstrap_article_editor.css')
|
162
|
+
]
|
163
|
+
else
|
164
|
+
[
|
165
|
+
'/assets/application.css',
|
166
|
+
'/assets/effective_bootstrap_article_editor.css'
|
167
|
+
]
|
168
|
+
end
|
138
169
|
end
|
139
170
|
|
140
171
|
def active_storage
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|