contentful_converter 0.0.1.26 → 0.0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -11
- data/lib/contentful_converter/nodes/hyperlink.rb +2 -2
- data/lib/contentful_converter/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9ca6680d2a5379db77f5230554f63ee7a254c8b5ec96b347546759b9009ac94
|
4
|
+
data.tar.gz: e5a32099b44d7379deb294f23a97164c00e6e7f9ab97b016e6fc285f7f85472e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6a4fd4d43be7bb779e36ce9958f6b2f475a2a36cfa1e035dc7468d129fb02bd46bf42f5dc5c56043c9ea71ede9fdf94c8b56f3098cb5214d5ee8542d0bc7c21
|
7
|
+
data.tar.gz: c527b643b6249d90d6147b3242b7569a0a840ed349281d5c75ecae0e9cf5c056a3ed4577268dba0a3c1c8df50984310fd111c149ee586606a5090c068d75e7c9
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/AlexAvlonitis/contentful_converter.svg?branch=master)](https://travis-ci.org/AlexAvlonitis/contentful_converter)
|
4
4
|
|
5
|
-
Converts plain html string to contentful specific
|
5
|
+
Converts plain html string to contentful specific rich text hash
|
6
6
|
|
7
7
|
### Install
|
8
8
|
```ruby
|
@@ -200,13 +200,4 @@ rspec ./spec/features/*
|
|
200
200
|
|
201
201
|
### License
|
202
202
|
|
203
|
-
|
204
|
-
|
205
|
-
This program is free software: you can redistribute it and/or modify
|
206
|
-
it under the terms of the GNU General Public License as published by
|
207
|
-
the Free Software Foundation, version 3.
|
208
|
-
|
209
|
-
This program is distributed in the hope that it will be useful,
|
210
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
211
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
212
|
-
GNU General Public License for more details.
|
203
|
+
[MIT LICENSE](LICENSE)
|
@@ -10,14 +10,14 @@ module ContentfulConverter
|
|
10
10
|
|
11
11
|
def type
|
12
12
|
return 'asset-hyperlink' if !uri_scheme? && uri_extension?
|
13
|
-
return 'entry-hyperlink'
|
13
|
+
return 'entry-hyperlink' if !uri_scheme? && !parsed_link.to_s.include?("#")
|
14
14
|
|
15
15
|
'hyperlink'
|
16
16
|
end
|
17
17
|
|
18
18
|
def options
|
19
19
|
return hyperlink_entry_option('Asset') if !uri_scheme? && uri_extension?
|
20
|
-
return hyperlink_entry_option('Entry')
|
20
|
+
return hyperlink_entry_option('Entry') if !uri_scheme? && !parsed_link.to_s.include?("#")
|
21
21
|
|
22
22
|
hyperlink_option
|
23
23
|
end
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful_converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Avlonitis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-12-07 00:00:00.000000000 Z
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.9'
|
41
41
|
description: Converts HTML text to Rich Text Contentful specific JSON structure
|
42
|
-
email:
|
42
|
+
email:
|
43
43
|
executables: []
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
@@ -69,11 +69,11 @@ files:
|
|
69
69
|
- lib/contentful_converter/stack.rb
|
70
70
|
- lib/contentful_converter/tree_cloner.rb
|
71
71
|
- lib/contentful_converter/version.rb
|
72
|
-
homepage: https://github.com/AlexAvlonitis/contentful_converter
|
72
|
+
homepage: https://github.com/AlexAvlonitis/contentful_converter.git
|
73
73
|
licenses:
|
74
74
|
- MIT
|
75
75
|
metadata: {}
|
76
|
-
post_install_message:
|
76
|
+
post_install_message:
|
77
77
|
rdoc_options: []
|
78
78
|
require_paths:
|
79
79
|
- lib
|
@@ -88,8 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
92
|
-
signing_key:
|
91
|
+
rubygems_version: 3.1.4
|
92
|
+
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Contentful HTML to Rich Text Converter
|
95
95
|
test_files: []
|