hs-cli 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/public/default.css +5 -3
- data/lib/hs/elements/code_preview.rb +11 -0
- data/lib/hs/elements/element.rb +4 -0
- data/lib/hs/elements/text.rb +4 -0
- data/lib/hs/loaders/initializers/code_initializers.rb +4 -0
- data/lib/hs/preview/element_preview.rb +9 -0
- data/lib/hs/version.rb +1 -1
- data/lib/hs.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f03f566c25908333d147575e0340d64712f18ec6978e1e88b9e0e43d7aa3a9f9
|
4
|
+
data.tar.gz: 6cb2f722f4ffcca481bcf1aac33919e72fcd46587c371ea053d0c90496afb10c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a663e741828d7548f2f66cc9f3e140be2a7388816f4362510304dad12a7676eca72e5f00be4436322699bccc035b7e054e055930c8a2c2231f1a0c952e9ded3
|
7
|
+
data.tar.gz: 36208386fc8adc820823aae93606b9107eeb5815232f3ea7d0c02373104e4d0e98008700492774d2f387cda133b6315bc181bef376fe63126b395cacdd55c405
|
data/Gemfile.lock
CHANGED
data/app/public/default.css
CHANGED
@@ -23,10 +23,12 @@ pre {
|
|
23
23
|
|
24
24
|
/* Live code styling */
|
25
25
|
|
26
|
-
.live-code
|
26
|
+
.live-code,
|
27
|
+
.code-preview {
|
27
28
|
padding: 2em;
|
28
|
-
background: rgba(
|
29
|
-
border:
|
29
|
+
background: rgba(100, 255, 255, 0.1);
|
30
|
+
border: 3px dotted blue;
|
31
|
+
margin-bottom: 1em;
|
30
32
|
}
|
31
33
|
|
32
34
|
.initial-code,
|
data/lib/hs/elements/element.rb
CHANGED
data/lib/hs/elements/text.rb
CHANGED
@@ -17,6 +17,15 @@ module HS
|
|
17
17
|
].join
|
18
18
|
end
|
19
19
|
|
20
|
+
def wrap_into_tag(tag_name, params)
|
21
|
+
children = yield
|
22
|
+
[
|
23
|
+
element_start(tag_name, params, children),
|
24
|
+
children.join(''),
|
25
|
+
element_end(tag_name, children)
|
26
|
+
].join
|
27
|
+
end
|
28
|
+
|
20
29
|
private
|
21
30
|
|
22
31
|
def element_start(tag, params, children)
|
data/lib/hs/version.rb
CHANGED
data/lib/hs.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hs-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitri Kurashvili
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- lib/hs/devserver.rb
|
229
229
|
- lib/hs/elements/br.rb
|
230
230
|
- lib/hs/elements/code.rb
|
231
|
+
- lib/hs/elements/code_preview.rb
|
231
232
|
- lib/hs/elements/dd.rb
|
232
233
|
- lib/hs/elements/dl.rb
|
233
234
|
- lib/hs/elements/dt.rb
|