phlex 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of phlex might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d97833c25f39a4fb198d625faa17bb4d98cf722fbf4f06ae5e4bd2af80d8f4aa
4
- data.tar.gz: ccdade6eb46b4d43cd49783f1557292c62757c4073f3d31a0a57bbccee7b2ef8
3
+ metadata.gz: 2eefd3a74f2982d981f510fbf51664a489edc5ca40bbfddc3be564fd8150646b
4
+ data.tar.gz: 8c5c168a439d41ab0c9020a6ebe6b43585cfdda7fc7135782b90df45ee3a5b56
5
5
  SHA512:
6
- metadata.gz: 19e991153278324c20648922bc076823f702f80d65cc3459221acfa791696825f405d5b1d31d059e9846050dfec2591547943007cbcaf4ed76123cd00f07f3e1
7
- data.tar.gz: b3e43d5a68cf93070b49232475d27c7f45ef303cf3c1b1e8fd6ebe5afe6f44dfb3b3548418326ddaafb890662e9ee71e1a0aabb160be1e4ca65c73b6252ce8cf
6
+ metadata.gz: 3cf930ae8e3aa73ddb806de461d0bad1a80a747c38c52c1737631d78a6fe92054f2323d8d9b5f943bf5b028619096232880a3cce6c05ae3abbacfa17f9df31c7
7
+ data.tar.gz: 477bfe4a00d3c304671730c2fb1be83804fc7452ce5cfd10f29e1883aa1b2c91e69fe3ca96fa08a9c0c06126292dafa248c1bc655f911ec7c5d8cf17a7395d49
data/lib/phlex/html.rb CHANGED
@@ -8,7 +8,7 @@ module Phlex
8
8
  module HTML
9
9
  DOCTYPE = "<!DOCTYPE html>"
10
10
 
11
- STANDARD_ELEMENTS = %i[a abbr address article aside b bdi bdo blockquote body button caption cite code colgroup data datalist dd del details dfn dialog div dl dt em fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header html i iframe ins kbd label legend li main map mark menuitem meter nav noscript object ol optgroup option output p picture pre progress q rp rt ruby s samp script section select slot small span strong style sub summary sup table tbody td textarea tfoot th thead time title tr u ul video wbr].freeze
11
+ STANDARD_ELEMENTS = %i[a abbr address article aside b bdi bdo blockquote body button caption cite code colgroup data datalist dd del details dfn dialog div dl dt em fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header html i iframe ins kbd label legend li main map mark menuitem meter nav noscript object ol optgroup option output p path picture pre progress q rp rt ruby s samp script section select slot small span strong style sub summary sup svg table tbody td textarea tfoot th thead time title tr u ul video wbr].freeze
12
12
 
13
13
  VOID_ELEMENTS = %i[area embed img input link meta param track col].freeze
14
14
 
@@ -9,7 +9,7 @@ module Phlex
9
9
  end
10
10
 
11
11
  renderable.call(@_target, view_context: @_view_context, parent: self, &block)
12
- elsif renderable < Component
12
+ elsif renderable.is_a?(Class) && renderable < Component
13
13
  raise ArgumentError, "You tried to render the Phlex component class: #{renderable.name} but you probably meant to render an instance of that class instead."
14
14
  else
15
15
  @_target << @_view_context.render(renderable, *args, **kwargs, &block)
data/lib/phlex/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Phlex
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Drapper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-15 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk