serbea 0.11 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +13 -98
- data/docs/.gitignore +37 -0
- data/docs/Gemfile +5 -0
- data/docs/bridgetown.config.yml +6 -0
- data/docs/frontend/javascript/index.js +3 -0
- data/docs/frontend/styles/index.scss +169 -0
- data/docs/package.json +34 -0
- data/docs/plugins/builders/.keep +0 -0
- data/docs/plugins/site_builder.rb +3 -0
- data/docs/src/404.html +9 -0
- data/docs/src/_components/footer.liquid +3 -0
- data/docs/src/_components/head.liquid +9 -0
- data/docs/src/_components/navbar.liquid +5 -0
- data/docs/src/_data/site_metadata.yml +11 -0
- data/docs/src/_layouts/default.liquid +13 -0
- data/docs/src/_layouts/home.liquid +13 -0
- data/docs/src/_layouts/page.liquid +7 -0
- data/docs/src/_layouts/post.liquid +7 -0
- data/docs/src/favicon.ico +0 -0
- data/docs/src/images/.keep +1 -0
- data/docs/src/images/serbea-logomark.svg +46 -0
- data/docs/src/images/serbea-logotype.svg +31 -0
- data/docs/src/index.md +264 -0
- data/docs/start.js +17 -0
- data/docs/sync.js +35 -0
- data/docs/webpack.config.js +78 -0
- data/docs/yarn.lock +6022 -0
- data/lib/serbea/bridgetown_support.rb +1 -1
- data/lib/serbea/rails_support.rb +5 -2
- data/lib/version.rb +1 -1
- metadata +34 -7
@@ -29,7 +29,7 @@ module Bridgetown
|
|
29
29
|
# Logic to do the Serbea content conversion.
|
30
30
|
#
|
31
31
|
# @param content [String] Content of the file (without front matter).
|
32
|
-
# @
|
32
|
+
# @param convertible [Bridgetown::Page, Bridgetown::Document, Bridgetown::Layout]
|
33
33
|
# The instantiated object which is processing the file.
|
34
34
|
#
|
35
35
|
# @return [String] The converted content.
|
data/lib/serbea/rails_support.rb
CHANGED
@@ -40,8 +40,11 @@ module Serbea
|
|
40
40
|
end
|
41
41
|
|
42
42
|
Serbea::TemplateEngine.directive :form, ->(code, buffer) do
|
43
|
-
|
44
|
-
|
43
|
+
model_name, space, params = code.lstrip.partition(%r(\s)m)
|
44
|
+
model_name.chomp!(",")
|
45
|
+
|
46
|
+
buffer << "{%= form_with model: "
|
47
|
+
buffer << model_name << ", " << params
|
45
48
|
buffer << " %}"
|
46
49
|
end
|
47
50
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serbea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '13.0'
|
83
|
-
description:
|
83
|
+
description:
|
84
84
|
email: maintainers@bridgetownrb.com
|
85
85
|
executables: []
|
86
86
|
extensions: []
|
@@ -88,8 +88,35 @@ extra_rdoc_files: []
|
|
88
88
|
files:
|
89
89
|
- ".gitignore"
|
90
90
|
- Gemfile
|
91
|
+
- LICENSE.txt
|
91
92
|
- README.md
|
92
93
|
- Rakefile
|
94
|
+
- docs/.gitignore
|
95
|
+
- docs/Gemfile
|
96
|
+
- docs/bridgetown.config.yml
|
97
|
+
- docs/frontend/javascript/index.js
|
98
|
+
- docs/frontend/styles/index.scss
|
99
|
+
- docs/package.json
|
100
|
+
- docs/plugins/builders/.keep
|
101
|
+
- docs/plugins/site_builder.rb
|
102
|
+
- docs/src/404.html
|
103
|
+
- docs/src/_components/footer.liquid
|
104
|
+
- docs/src/_components/head.liquid
|
105
|
+
- docs/src/_components/navbar.liquid
|
106
|
+
- docs/src/_data/site_metadata.yml
|
107
|
+
- docs/src/_layouts/default.liquid
|
108
|
+
- docs/src/_layouts/home.liquid
|
109
|
+
- docs/src/_layouts/page.liquid
|
110
|
+
- docs/src/_layouts/post.liquid
|
111
|
+
- docs/src/favicon.ico
|
112
|
+
- docs/src/images/.keep
|
113
|
+
- docs/src/images/serbea-logomark.svg
|
114
|
+
- docs/src/images/serbea-logotype.svg
|
115
|
+
- docs/src/index.md
|
116
|
+
- docs/start.js
|
117
|
+
- docs/sync.js
|
118
|
+
- docs/webpack.config.js
|
119
|
+
- docs/yarn.lock
|
93
120
|
- lib/serbea.rb
|
94
121
|
- lib/serbea/bridgetown_support.rb
|
95
122
|
- lib/serbea/helpers.rb
|
@@ -103,7 +130,7 @@ homepage: https://github.com/bridgetownrb/serbea
|
|
103
130
|
licenses:
|
104
131
|
- MIT
|
105
132
|
metadata: {}
|
106
|
-
post_install_message:
|
133
|
+
post_install_message:
|
107
134
|
rdoc_options: []
|
108
135
|
require_paths:
|
109
136
|
- lib
|
@@ -118,8 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
145
|
- !ruby/object:Gem::Version
|
119
146
|
version: '0'
|
120
147
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
122
|
-
signing_key:
|
148
|
+
rubygems_version: 3.2.3
|
149
|
+
signing_key:
|
123
150
|
specification_version: 4
|
124
151
|
summary: Similar to ERB, Except Awesomer
|
125
152
|
test_files: []
|