belletrist 1.1.1 → 1.1.2
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/belletrist/{abstract.rb → collectors.rb} +0 -4
- data/lib/belletrist/html.rb +8 -5
- data/lib/belletrist/json.rb +1 -1
- data/lib/belletrist/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1548984783b84be9e93ebfb48bec3b847b941d4f5423d4b62b6b41e1949143d2
|
|
4
|
+
data.tar.gz: 9f8a5ed9ce20dde4164b54082c63f178292ab36722041b07f0731c19b3781172
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eff3997808304d963d70831bfe2465ff10ab98ca9590836eeba16751fc9f323a2ffe1d95b14e1b095e39e24400f0d6ee882c26bdd1286763051b2e62b7921bfc
|
|
7
|
+
data.tar.gz: 5d687259b269539d2ae70da5d3075f7648ad35e477024d0f7154327f61fc42197af96c8b8abe79a8ab8603ed6c610260e30c7db94a6b5f23ec19b4016e7be805
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
This file contains general, high level explanations of the differences between versions. Please check the commmit
|
|
3
3
|
history for further details.
|
|
4
4
|
|
|
5
|
+
## 1.1.2
|
|
6
|
+
* Fixed issue with how the `lang` argument was declared for HTML documents, causing it to not be added properly.
|
|
7
|
+
|
|
5
8
|
## 1.1.1
|
|
6
9
|
* Ensuring the sanitize the key of a JSON object entry. While normally these would be converted from Symbols,
|
|
7
10
|
it should still be sanitized all the same.
|
data/lib/belletrist/html.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative './
|
|
3
|
+
require_relative './collectors'
|
|
4
4
|
|
|
5
5
|
module Belletrist::HTML
|
|
6
6
|
class Element < Belletrist::BaseCollector
|
|
@@ -41,6 +41,10 @@ module Belletrist::HTML
|
|
|
41
41
|
Element.new(name, args)
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
def p(*args, &block)
|
|
45
|
+
method_missing(:p, *args, &block)
|
|
46
|
+
end
|
|
47
|
+
|
|
44
48
|
private def import_attribute(hash)
|
|
45
49
|
hash.each do |entry|
|
|
46
50
|
k, v = entry
|
|
@@ -68,13 +72,12 @@ module Belletrist::HTML
|
|
|
68
72
|
end
|
|
69
73
|
|
|
70
74
|
class Document
|
|
71
|
-
def initialize(spec=V5, lang
|
|
75
|
+
def initialize(spec=V5, lang: nil)
|
|
72
76
|
super()
|
|
73
|
-
|
|
74
|
-
body_args.push lang if lang
|
|
77
|
+
language = {'lang': lang} if lang
|
|
75
78
|
|
|
76
79
|
@head = Element.new 'head'
|
|
77
|
-
@body = Element.new 'body',
|
|
80
|
+
@body = Element.new 'body', [language]
|
|
78
81
|
@spec = spec
|
|
79
82
|
end
|
|
80
83
|
|
data/lib/belletrist/json.rb
CHANGED
data/lib/belletrist/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: belletrist
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juniper
|
|
@@ -26,7 +26,7 @@ files:
|
|
|
26
26
|
- README.md
|
|
27
27
|
- belletrist.gemspec
|
|
28
28
|
- lib/belletrist.rb
|
|
29
|
-
- lib/belletrist/
|
|
29
|
+
- lib/belletrist/collectors.rb
|
|
30
30
|
- lib/belletrist/html.rb
|
|
31
31
|
- lib/belletrist/json.rb
|
|
32
32
|
- lib/belletrist/version.rb
|