contentful_converter 0.0.1.26 → 0.0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60f068e6ba05414012bc0bacd531648585829e96d17afed00513fc1fdef31801
4
- data.tar.gz: 91a6276c212b1684bd84d4361ed8bbcb198f4281bef5c642842465361ec0b4c2
3
+ metadata.gz: a9ca6680d2a5379db77f5230554f63ee7a254c8b5ec96b347546759b9009ac94
4
+ data.tar.gz: e5a32099b44d7379deb294f23a97164c00e6e7f9ab97b016e6fc285f7f85472e
5
5
  SHA512:
6
- metadata.gz: e402d018e413aaaf2e4435a455513ef2b745048d05edbf61d729daf5d8af2f9f32d545c2b84cd18b76a919a6439f30014b70493648c74dd439f791ed32e0397a
7
- data.tar.gz: d6384e721401bdb87abc7aecdb44166e7fb60eb60331518eeabeed11d3b0d444f87e70f22e12e6eb938886300217ad7c1d08d77a715078b7e971e4038f50e40b
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 rich_text hash structure.
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
- Copyright (C) 2019 Alex Avlonitis
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' unless uri_scheme?
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') unless uri_scheme?
20
+ return hyperlink_entry_option('Entry') if !uri_scheme? && !parsed_link.to_s.include?("#")
21
21
 
22
22
  hyperlink_option
23
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentfulConverter
4
- VERSION = '0.0.1.26'
4
+ VERSION = '0.0.1.27'
5
5
  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.26
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.0.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: []