rubyoshka 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -2
- data/lib/rubyoshka.rb +3 -1
- data/lib/rubyoshka/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c084b7ff1e4a364ea95df6fa3824c1a67a190aae85c8ad50812132ef7acd5cf
|
4
|
+
data.tar.gz: 8b04fd36caf85ca4dc7883f2efad96ed53753d5b59548e19a9a3c5ec85f6fa28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27c7bafa5f1851982ee05ccf9f90e1513c4b426217531f6daa205ce872ad57be9c672ba35ce1e5f0a6b882aa93dbf3987dab2375282e0bda22c897df1cf2ff5f
|
7
|
+
data.tar.gz: 8a35f8f8ef434e21a48208d079d62acb4df497d6a44234caee41c4a1df92de8d20c8bc3329ce624eed2691fde5205961681b4a8ebd2e80966b99ee65e58c8b4f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -16,6 +16,7 @@ features:
|
|
16
16
|
- Use global and local contexts to pass values to reusable components
|
17
17
|
- Automatic HTML escaping
|
18
18
|
- Composable nested components
|
19
|
+
- Template caching from fragments to whole templates
|
19
20
|
|
20
21
|
> **Note** Rubyoshka is a new library and as such may be missing features and
|
21
22
|
> contain bugs. Also, its API may change unexpectedly. Your issue reports and
|
@@ -32,13 +33,13 @@ nesting doll.
|
|
32
33
|
Using bundler:
|
33
34
|
|
34
35
|
```ruby
|
35
|
-
gem '
|
36
|
+
gem 'rubyoshka'
|
36
37
|
```
|
37
38
|
|
38
39
|
Or manually:
|
39
40
|
|
40
41
|
```bash
|
41
|
-
$ gem install
|
42
|
+
$ gem install rubyoshka
|
42
43
|
```
|
43
44
|
|
44
45
|
## Getting started
|
data/lib/rubyoshka.rb
CHANGED
@@ -92,7 +92,7 @@ class Rubyoshka
|
|
92
92
|
end
|
93
93
|
|
94
94
|
# Emits the given object into the rendering buffer
|
95
|
-
# @param o [Proc, Rubyoshka, String] emitted object
|
95
|
+
# @param o [Proc, Rubyoshka, Module, String] emitted object
|
96
96
|
# @return [void]
|
97
97
|
def emit(o)
|
98
98
|
case o
|
@@ -100,6 +100,8 @@ class Rubyoshka
|
|
100
100
|
instance_eval(&o)
|
101
101
|
when Rubyoshka
|
102
102
|
instance_eval(&o.block)
|
103
|
+
when Module
|
104
|
+
emit(o::Component)
|
103
105
|
when nil
|
104
106
|
else
|
105
107
|
@buffer << o.to_s
|
data/lib/rubyoshka/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyoshka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sharon Rosner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: modulation
|