ruby2html 1.3.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 006b9857270b4ad9ebc613ca84e1e00327285e4e52f371417a42d2823e6b3099
4
- data.tar.gz: f78b3b0d8929174dde445502d0c90051ff6ac95a8b37f7e05e7722ff91d96aaf
3
+ metadata.gz: 948558903cc3a21baf43c8d7a8133d8cf630476d9030a10b38646ce5e92535f7
4
+ data.tar.gz: 769e3aad923a153b0aabf4392492bd44d0f231e784f5b5fffa9129329537b590
5
5
  SHA512:
6
- metadata.gz: aa9a480274cbe132f1053010d218b5f1e3e56be27dd224fc0d41867ea85e2d0afb763b121fb8179f2426d4bcbb5f17a0c70b0c361aff7b722afada0ea7b7a046
7
- data.tar.gz: 49c3f7a01bfd9cc058ce68a672b8e2c159a41895a7af6b2352a8d150b192e1da445ea124640807d0d291da8cc53b528e25f9a960bf1e21f0103db7e48463abf0
6
+ metadata.gz: 77a22c5c896f3cfae2986a279a8946478ff39bd94e68faddb32ee897156d6cc9bbd6c4024fbce7463cd2f37b78905e6fd4e9c4410267589d743b33141f5de9ad
7
+ data.tar.gz: 7561cabe35deeae6ff40d0b2b692d9fc153b34145ea95920b2e1c9c63895f71d45b473506646bfe8f456905c34c9dbacf35e4547033b05a60d9d69fdfc285cef
@@ -6,7 +6,7 @@ class FirstComponent < ApplicationComponent
6
6
  end
7
7
 
8
8
  def another_div
9
- div do
9
+ div class: 'another' do
10
10
  h2 'Another subheading from component'
11
11
  end
12
12
 
@@ -12,9 +12,9 @@ module Ruby2html
12
12
  Thread.current[:__ruby2html_renderer__] = previous_renderer
13
13
  end
14
14
 
15
- def method_missing(method, *args, &block)
15
+ def method_missing(method, *args, **options, &block)
16
16
  if __ruby2html_renderer__.respond_to?(method)
17
- __ruby2html_renderer__.send(method, *args, &block)
17
+ __ruby2html_renderer__.send(method, *args, **options, &block)
18
18
  else
19
19
  super
20
20
  end
@@ -99,9 +99,9 @@ module Ruby2html
99
99
  end
100
100
 
101
101
  private
102
- def method_missing(method_name, *args, &block)
102
+ def method_missing(method_name, *args, **options, &block)
103
103
  if @context.respond_to?(method_name)
104
- @context.send(method_name, *args, &block)
104
+ @context.send(method_name, *args, **options, &block)
105
105
  else
106
106
  super
107
107
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ruby2html
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby2html
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sebi