rubyoshka 0.3 → 0.4

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: 3be682087384cd706b089c77e53334d5e60923106e3fa514bdb298c73aae64fc
4
- data.tar.gz: 6efb14adab373708f4a171ed8b07b22b535a71fe05874d26e75f7147f3eefbc0
3
+ metadata.gz: 6c084b7ff1e4a364ea95df6fa3824c1a67a190aae85c8ad50812132ef7acd5cf
4
+ data.tar.gz: 8b04fd36caf85ca4dc7883f2efad96ed53753d5b59548e19a9a3c5ec85f6fa28
5
5
  SHA512:
6
- metadata.gz: '002368e44d062f4eeb02f8ef33a5eb09ead01b48895bc4fd1b899e88ab99da80ccc3c7a193c814d0b97ac0766245c39dbf1b2ccda96702c58090dc7106442ea5'
7
- data.tar.gz: ea84ebb4e043e76ce51d6916d5b814116d6d5dc2ba2c781150e43c052d55c2ef611c8c2444316765a4f20e6798fb474452ab5623fbc221568949e0ca44317788
6
+ metadata.gz: 27c7bafa5f1851982ee05ccf9f90e1513c4b426217531f6daa205ce872ad57be9c672ba35ce1e5f0a6b882aa93dbf3987dab2375282e0bda22c897df1cf2ff5f
7
+ data.tar.gz: 8a35f8f8ef434e21a48208d079d62acb4df497d6a44234caee41c4a1df92de8d20c8bc3329ce624eed2691fde5205961681b4a8ebd2e80966b99ee65e58c8b4f
@@ -1,3 +1,8 @@
1
+ 0.4 2019-02-05
2
+ --------------
3
+
4
+ * Add support for emitting component modules
5
+
1
6
  0.3 2019-01-13
2
7
  --------------
3
8
 
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 'polyphony'
36
+ gem 'rubyoshka'
36
37
  ```
37
38
 
38
39
  Or manually:
39
40
 
40
41
  ```bash
41
- $ gem install polyphony
42
+ $ gem install rubyoshka
42
43
  ```
43
44
 
44
45
  ## Getting started
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Rubyoshka
4
- VERSION = '0.3'
4
+ VERSION = '0.4'
5
5
  end
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.3'
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-01-13 00:00:00.000000000 Z
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: modulation