storyblok-richtext-renderer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/lib/.DS_Store +0 -0
  4. data/lib/storyblok/.DS_Store +0 -0
  5. data/lib/{richtext → storyblok/richtext}/html_renderer/marks/bold.rb +0 -0
  6. data/lib/{richtext → storyblok/richtext}/html_renderer/marks/code.rb +0 -0
  7. data/lib/{richtext → storyblok/richtext}/html_renderer/marks/italic.rb +0 -0
  8. data/lib/{richtext → storyblok/richtext}/html_renderer/marks/link.rb +0 -0
  9. data/lib/{richtext → storyblok/richtext}/html_renderer/marks/mark.rb +0 -0
  10. data/lib/{richtext → storyblok/richtext}/html_renderer/marks/strike.rb +0 -0
  11. data/lib/{richtext → storyblok/richtext}/html_renderer/marks/strong.rb +0 -0
  12. data/lib/{richtext → storyblok/richtext}/html_renderer/marks/underline.rb +0 -0
  13. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/blockquote.rb +0 -0
  14. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/blok.rb +0 -0
  15. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/bullet_list.rb +0 -0
  16. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/code_block.rb +0 -0
  17. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/hard_break.rb +0 -0
  18. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/heading.rb +0 -0
  19. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/horizontal_rule.rb +0 -0
  20. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/image.rb +0 -0
  21. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/list_item.rb +0 -0
  22. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/node.rb +0 -0
  23. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/ordered_list.rb +0 -0
  24. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/paragraph.rb +0 -0
  25. data/lib/{richtext → storyblok/richtext}/html_renderer/nodes/text.rb +0 -0
  26. data/lib/{richtext → storyblok/richtext}/html_renderer.rb +0 -0
  27. data/lib/{richtext → storyblok/richtext}/version.rb +1 -1
  28. data/lib/storyblok/richtext.rb +2 -0
  29. data/storyblok.gemspec +1 -1
  30. metadata +26 -25
  31. data/lib/richtext.rb +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d805147d58369c12404f9836b38804b0572f938cb1dee1c82846385b7ed4795f
4
- data.tar.gz: ccf44a0e37a1bb5ffff3ee31defb7c1ab1a28ff834d7b1ea2bffd8c60cf5a08e
3
+ metadata.gz: 331711129218f929b3c2f1195224c2dec213ae4ce6a1151d7692753cd96ab427
4
+ data.tar.gz: f57ded9ee327171fd38ecc45b0f92f6eda2e539ef7b95b7e4afe7558294251ff
5
5
  SHA512:
6
- metadata.gz: 8945bd8a29e9f2a60bebdbee5b80d5adc1dd57de11141f3043a8241f45cfc61f6a4c2b5291b42c3d2196f18ef40b7eb18b2cab1acfed3a76da4b5310b8a9c385
7
- data.tar.gz: 2535d6772f96b9a22395cf10c7529fa21efbb6a45524473a496a292b3358b7db12442b32776b92cdfbcab31d5e2dc796601c860b4f313789606234f53475c465
6
+ metadata.gz: 022dbb9bfef4f7080f9cc44309af387d4c775c46b7a1e85c285fe6c72d8b5673eff8361f955cdf02dab290926237baebfa9641460c90c91a047a558bd3f73e64
7
+ data.tar.gz: 10efb9e547a8552eee45a3ce95ef7f1815087d7c8be7c47829f6e304d6ae8b254326a5a79ab6ad80ba36ddf8a92d13582d2f6c953c84f6e592f81e440eae67ec
data/README.md CHANGED
@@ -13,6 +13,7 @@ gem 'storyblok-richtext-renderer'
13
13
  ### Rendering a richtext field
14
14
 
15
15
  ```
16
+ require 'storyblok/richtext'
16
17
  renderer = Storyblok::Richtext::HtmlRenderer.new
17
18
  renderer.render({'type' => 'doc', 'content' => [{'type' => 'paragraph', 'content' => [{'text' => 'Good', 'type' => 'text'}]}]})
18
19
  # -> <p>Good</p>
data/lib/.DS_Store CHANGED
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  module Storyblok
2
2
  module Richtext
3
3
  # Gem Version
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
6
6
  end
@@ -0,0 +1,2 @@
1
+ require 'storyblok/richtext/version'
2
+ require 'storyblok/richtext/html_renderer'
data/storyblok.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path('../lib/richtext/version', __FILE__)
1
+ require File.expand_path('../lib/storyblok/richtext/version', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'storyblok-richtext-renderer'
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Storyblok (Alexander Feiglstorfer)
@@ -52,30 +52,31 @@ files:
52
52
  - Gemfile
53
53
  - README.md
54
54
  - lib/.DS_Store
55
- - lib/richtext.rb
56
- - lib/richtext/html_renderer.rb
57
- - lib/richtext/html_renderer/marks/bold.rb
58
- - lib/richtext/html_renderer/marks/code.rb
59
- - lib/richtext/html_renderer/marks/italic.rb
60
- - lib/richtext/html_renderer/marks/link.rb
61
- - lib/richtext/html_renderer/marks/mark.rb
62
- - lib/richtext/html_renderer/marks/strike.rb
63
- - lib/richtext/html_renderer/marks/strong.rb
64
- - lib/richtext/html_renderer/marks/underline.rb
65
- - lib/richtext/html_renderer/nodes/blockquote.rb
66
- - lib/richtext/html_renderer/nodes/blok.rb
67
- - lib/richtext/html_renderer/nodes/bullet_list.rb
68
- - lib/richtext/html_renderer/nodes/code_block.rb
69
- - lib/richtext/html_renderer/nodes/hard_break.rb
70
- - lib/richtext/html_renderer/nodes/heading.rb
71
- - lib/richtext/html_renderer/nodes/horizontal_rule.rb
72
- - lib/richtext/html_renderer/nodes/image.rb
73
- - lib/richtext/html_renderer/nodes/list_item.rb
74
- - lib/richtext/html_renderer/nodes/node.rb
75
- - lib/richtext/html_renderer/nodes/ordered_list.rb
76
- - lib/richtext/html_renderer/nodes/paragraph.rb
77
- - lib/richtext/html_renderer/nodes/text.rb
78
- - lib/richtext/version.rb
55
+ - lib/storyblok/.DS_Store
56
+ - lib/storyblok/richtext.rb
57
+ - lib/storyblok/richtext/html_renderer.rb
58
+ - lib/storyblok/richtext/html_renderer/marks/bold.rb
59
+ - lib/storyblok/richtext/html_renderer/marks/code.rb
60
+ - lib/storyblok/richtext/html_renderer/marks/italic.rb
61
+ - lib/storyblok/richtext/html_renderer/marks/link.rb
62
+ - lib/storyblok/richtext/html_renderer/marks/mark.rb
63
+ - lib/storyblok/richtext/html_renderer/marks/strike.rb
64
+ - lib/storyblok/richtext/html_renderer/marks/strong.rb
65
+ - lib/storyblok/richtext/html_renderer/marks/underline.rb
66
+ - lib/storyblok/richtext/html_renderer/nodes/blockquote.rb
67
+ - lib/storyblok/richtext/html_renderer/nodes/blok.rb
68
+ - lib/storyblok/richtext/html_renderer/nodes/bullet_list.rb
69
+ - lib/storyblok/richtext/html_renderer/nodes/code_block.rb
70
+ - lib/storyblok/richtext/html_renderer/nodes/hard_break.rb
71
+ - lib/storyblok/richtext/html_renderer/nodes/heading.rb
72
+ - lib/storyblok/richtext/html_renderer/nodes/horizontal_rule.rb
73
+ - lib/storyblok/richtext/html_renderer/nodes/image.rb
74
+ - lib/storyblok/richtext/html_renderer/nodes/list_item.rb
75
+ - lib/storyblok/richtext/html_renderer/nodes/node.rb
76
+ - lib/storyblok/richtext/html_renderer/nodes/ordered_list.rb
77
+ - lib/storyblok/richtext/html_renderer/nodes/paragraph.rb
78
+ - lib/storyblok/richtext/html_renderer/nodes/text.rb
79
+ - lib/storyblok/richtext/version.rb
79
80
  - storyblok.gemspec
80
81
  homepage: https://github.com/storyblok/storyblok-ruby-richtext-renderer
81
82
  licenses:
data/lib/richtext.rb DELETED
@@ -1,2 +0,0 @@
1
- require 'richtext/version'
2
- require 'richtext/html_renderer'