storyblok-richtext-renderer 0.0.3 → 0.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: 331711129218f929b3c2f1195224c2dec213ae4ce6a1151d7692753cd96ab427
4
- data.tar.gz: f57ded9ee327171fd38ecc45b0f92f6eda2e539ef7b95b7e4afe7558294251ff
3
+ metadata.gz: 5fde7858d8ae51cd43a128f5912421b4e7ffb0d8bc51013c9e142d9400d0885f
4
+ data.tar.gz: 5ee6a07e5b4c27dd06aa628ff461c1679b3e74a3acd250ecbefc93c9834643c3
5
5
  SHA512:
6
- metadata.gz: 022dbb9bfef4f7080f9cc44309af387d4c775c46b7a1e85c285fe6c72d8b5673eff8361f955cdf02dab290926237baebfa9641460c90c91a047a558bd3f73e64
7
- data.tar.gz: 10efb9e547a8552eee45a3ce95ef7f1815087d7c8be7c47829f6e304d6ae8b254326a5a79ab6ad80ba36ddf8a92d13582d2f6c953c84f6e592f81e440eae67ec
6
+ metadata.gz: 000f0080b59c4f29b55dc5d629612df2d8c5ae5e6c01a273cddd7573b7b43b9023fec0a7024c4aad4c13771790f34f70bea19e32baad9a2a0b17e94c6f32aa08
7
+ data.tar.gz: 3fa6b77ce266c573a3211746f7113a4dabac3d443f9b7d179310ebb476a1f17759871546c25a7a118bbee2bb44f523e5008bf2e0b5a76e30ed4ddc9a72100671
data/README.md CHANGED
@@ -6,13 +6,13 @@ This is Storyblok's rendering service to render html from the data of the richte
6
6
 
7
7
  Add the gem to your Gemfile
8
8
 
9
- ```bash
9
+ ```ruby
10
10
  gem 'storyblok-richtext-renderer'
11
11
  ```
12
12
 
13
13
  ### Rendering a richtext field
14
14
 
15
- ```
15
+ ```ruby
16
16
  require 'storyblok/richtext'
17
17
  renderer = Storyblok::Richtext::HtmlRenderer.new
18
18
  renderer.render({'type' => 'doc', 'content' => [{'type' => 'paragraph', 'content' => [{'text' => 'Good', 'type' => 'text'}]}]})
@@ -53,7 +53,7 @@ module Storyblok
53
53
  end
54
54
 
55
55
  def set_component_resolver(component_resolver)
56
- Storyblok::Richtext::Nodes::Blok.define_method :component_resolver, component_resolver
56
+ Storyblok::Richtext::Nodes::Blok.send :define_method, :component_resolver, component_resolver
57
57
  end
58
58
 
59
59
  def add_node(node)
@@ -1,6 +1,6 @@
1
1
  module Storyblok
2
2
  module Richtext
3
3
  # Gem Version
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storyblok-richtext-renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Storyblok (Alexander Feiglstorfer)