dhtml 0.1.4 → 0.1.5

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: 9fe9a81232d087f78f919f95b27cdffc5ccefd5a4134dad6ed21cce7e3856265
4
- data.tar.gz: 4db4671909efeb3a9a149b56f8d8cc72c606fc2babc81a3ace13df126a1a7a29
3
+ metadata.gz: 3849846e1ffe735529f10e4c4d6880329df4f2d36c7836ef158ae7e168f415d0
4
+ data.tar.gz: 2034e0931521ce5040bc1280909a74ec2f306a3e3d2f64d7fc69e029dfeb8b82
5
5
  SHA512:
6
- metadata.gz: 9a8daa8a23422a54a929ba5350a60795cd8b9b863fc59f71de0e9a57d4f2b299725d632b07d3c8f4d3bd9c1cefa50a6cde73a1a414bad7bf21cc5de7ee050755
7
- data.tar.gz: 9943ffda42a1c42f04ee12338fd26fcb9e5725757292646107241457033810cef7383d2336fffff44dc7edbdfeb2fe7c3782b5c8f55f5e72312cd5663bc05914
6
+ metadata.gz: bb109a1bd183829d6bed1de48b1164b28b423299af49d3ac7f9ae5b6747801d7d9af1daed18e3222051a90b15b534bd8d189fd0ed2dae290cc4b486d6ba3fdb1
7
+ data.tar.gz: 9010c3138e41151fc13b2f2ab9aee3a893ef89a5a835416d5cbf1daad01ab8a0ee3cafbcb9a9260eb003a623b356dcdd0211bfe9b2b783fba6ee53d4e9bc3ca3
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.1.5] - 2021-05-11
9
+ ### Removed
10
+ - Bytes written is no longer returned since `StringIO` is not fully implemented by Opal.
11
+
8
12
  ## [0.1.4] - 2021-05-11
9
13
  ### Added
10
14
  - `pretty_html` method that formats the document in a way presentable to a human.
@@ -17,6 +21,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
17
21
  - Versions prior to this were yanked. The gems were packaged with absolute paths by mistake.
18
22
 
19
23
  [Unreleased]: https://github.com/hi5dev/dhtml/compare/v0.1.4...HEAD
24
+ [0.1.5]: https://github.com/hi5dev/dhtml/compare/v0.1.4..v0.1.5
20
25
  [0.1.4]: https://github.com/hi5dev/dhtml/compare/v0.1.3..v0.1.4
21
26
  [0.1.3]: https://github.com/hi5dev/dhtml/releases/tag/v0.1.3
22
27
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dhtml (0.1.3)
4
+ dhtml (0.1.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -130,17 +130,15 @@ module DHTML
130
130
  #
131
131
  # @!attribute [String] tag
132
132
  # @!attribute [Hash] attributes
133
- # @return [Integer] Number of bytes written to the stream.
133
+ # @return [void]
134
134
  # @since 0.1.0
135
135
  def write_html_element(tag, attributes = {})
136
- length = document.length
137
-
138
136
  document << '<'
139
137
  document << tag
140
138
  document << " #{html_attributes(attributes)}" unless attributes.empty?
141
139
  document << '>'
142
140
 
143
- document.length - length
141
+ nil
144
142
  end
145
143
 
146
144
  # Write a tag to the HTML document.
@@ -158,9 +156,6 @@ module DHTML
158
156
  tag = tag.to_s
159
157
  tag = tag[1..-1] if tag[0] == '_'
160
158
 
161
- # Used to calculate the number of bytes written for the return value.
162
- length = document.length
163
-
164
159
  # Opening tag with its HTML attributes - e.g. <div id="main">
165
160
  write_html_element(tag, attributes)
166
161
 
@@ -173,8 +168,7 @@ module DHTML
173
168
  # Close the tag when necessary.
174
169
  document.write("</#{tag}>") if content.is_a?(String) || block_given? || !void?(tag.to_sym)
175
170
 
176
- # Total number of bytes written by this method.
177
- document.length - length
171
+ nil
178
172
  end
179
173
  end
180
174
  end
data/lib/dhtml/version.rb CHANGED
@@ -5,5 +5,5 @@ module DHTML
5
5
  #
6
6
  # @see https://semver.org/spec/v2.0.0.html
7
7
  # @type [String]
8
- VERSION = '0.1.4'
8
+ VERSION = '0.1.5'
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dhtml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Haynes