bridgetown-core 0.18.5 → 0.18.6
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: fad1c759bc15d188091ea79b5da7beee2b1b2f41c0bdac3d6196b4066a376379
|
4
|
+
data.tar.gz: 9dc54e1b1f2563bfeaf3e9cbb51cc0ca48bbf2f713aa030d027a34d3c7388b0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c7ff76d444621a53ec11a7cb47df4a84012aea31318b821ab2446add1eb187ce306c0623fa55cb8c790a35817da0e73c4eb69cd8caed979c3acbcdb295ce866
|
7
|
+
data.tar.gz: 89708630ae7ced2085ba9577cd23d2d434230d79410eaeabc396483b86c041bbac78bec7fdb0ffb6ff45ff886e69dd4a9ca13d0719c04be96397288498b0d5e0
|
data/lib/bridgetown-core.rb
CHANGED
@@ -44,6 +44,14 @@ require "i18n"
|
|
44
44
|
require "faraday"
|
45
45
|
require "thor"
|
46
46
|
|
47
|
+
module HashWithDotAccess
|
48
|
+
class Hash # :nodoc:
|
49
|
+
def to_liquid
|
50
|
+
to_h.to_liquid
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
47
55
|
SafeYAML::OPTIONS[:suppress_warnings] = true
|
48
56
|
|
49
57
|
# Create our little String subclass for Ruby Front Matter
|
@@ -127,7 +127,7 @@ module Bridgetown
|
|
127
127
|
def obfuscate_link(input, prefix = "mailto")
|
128
128
|
link = "<a href=\"#{prefix}:#{input}\">#{input}</a>"
|
129
129
|
script = "<script type=\"text/javascript\">document.currentScript.insertAdjacentHTML("
|
130
|
-
script += "beforebegin', '#{rot47(link)}'.replace(/[!-~]/g,"
|
130
|
+
script += "beforebegin', '#{rot47(link).gsub(%r!\\!, '\\\\\\')}'.replace(/[!-~]/g,"
|
131
131
|
script += "function(c){{var j=c.charCodeAt(0);if((j>=33)&&(j<=126)){"
|
132
132
|
script += "return String.fromCharCode(33+((j+ 14)%94));}"
|
133
133
|
script += "else{return String.fromCharCode(j);}}}));</script>"
|
@@ -20,14 +20,14 @@ module Bridgetown
|
|
20
20
|
v.each do |nested_k, nested_v|
|
21
21
|
next unless nested_v.is_a?(Rb)
|
22
22
|
|
23
|
-
Bridgetown.logger.
|
23
|
+
Bridgetown.logger.debug("Executing inline Ruby…", convertible.relative_path)
|
24
24
|
convertible.data[k][nested_k] = run(nested_v, convertible, renderer)
|
25
|
-
Bridgetown.logger.
|
25
|
+
Bridgetown.logger.debug("Inline Ruby completed!", convertible.relative_path)
|
26
26
|
end
|
27
27
|
else
|
28
|
-
Bridgetown.logger.
|
28
|
+
Bridgetown.logger.debug("Executing inline Ruby…", convertible.relative_path)
|
29
29
|
convertible.data[k] = run(v, convertible, renderer)
|
30
|
-
Bridgetown.logger.
|
30
|
+
Bridgetown.logger.debug("Inline Ruby completed!", convertible.relative_path)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -5,9 +5,10 @@
|
|
5
5
|
"scripts": {
|
6
6
|
"build": "bundle exec bridgetown build",
|
7
7
|
"serve": "bundle exec bridgetown serve",
|
8
|
+
"clean": "bundle exec bridgetown clean",
|
8
9
|
"webpack-build": "webpack --mode production",
|
9
10
|
"webpack-dev": "webpack --mode development -w",
|
10
|
-
"deploy": "yarn webpack-build && yarn build",
|
11
|
+
"deploy": "yarn clean && yarn webpack-build && yarn build",
|
11
12
|
"sync": "node sync.js",
|
12
13
|
"start": "node start.js"
|
13
14
|
},
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|