rbexy 2.0.0.beta3 → 2.0.0.beta4

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: ee91f09f1492ee300b112dcc61edee9fb96f4938e18753ed435091d212b702ee
4
- data.tar.gz: a1ee23c58ac112b8596c0451d2b42b19c35be12a8cd43a8512523f76d454f491
3
+ metadata.gz: d9cb20a821099f8fd51a0abb4b80ad3b2d8d936afcfe240a4b99ea29f4dea92a
4
+ data.tar.gz: aab32903c9632f245857c917b0b99743e5e58ddb8356fce1274c5dd2e4791b37
5
5
  SHA512:
6
- metadata.gz: cfb9b92d18a403a5c5e3d4b87f1120101f7dc961b0e480460bab56d6786f68c2cf06743a759174d1637a34c057299ca2f9391e7895979de1e33694c61ae66654
7
- data.tar.gz: 66f9e6e960b87e524fa97b768f61117cdfcc151d68a1cb388607532ecf39df31c1a81f379bffe264ffd31f12600c71bf36d637c8aaa6b56b45df973774207d3b
6
+ metadata.gz: a849303b1f41e2e6295558b09f1a608a3b24bca8317bde650c579c6a0da2206c67f1ea9bb49e4b7bf15e66497960fff70703845544a57271c4947e4abe16d5ef
7
+ data.tar.gz: 5f08d1838d39cf38d3f3d727e5c1ea098255e81e4a2ab4affd2b67a77a10d7f55dccdff52114f5ce9d544238d81d09a66f548ed74961298026f7887ad30339fd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbexy (2.0.0.beta3)
4
+ rbexy (2.0.0.beta4)
5
5
  actionview (>= 6.0, < 7.0)
6
6
  activesupport (>= 6.0, < 7.0)
7
7
 
@@ -36,7 +36,7 @@ module Rbexy
36
36
  members.each_with_object("") do |member, result|
37
37
  case member
38
38
  when ExpressionGroup
39
- result << "**#{member.compile},"
39
+ result << "**#{member.compile}.transform_keys { |k| ActiveSupport::Inflector.underscore(k).to_sym },"
40
40
  when Newline
41
41
  result << member.compile
42
42
  else
@@ -4,7 +4,7 @@ module Rbexy
4
4
  module Rails
5
5
  class Engine < ::Rails::Engine
6
6
  initializer "rbexy" do |app|
7
- template_handler = proc { |template, source| Rbexy.compile(template) }
7
+ template_handler = proc { |template, source| Rbexy.compile(Rbexy::Template.new(source, template.identifier)) }
8
8
 
9
9
  ActionView::Template.register_template_handler(:rbx, template_handler)
10
10
 
@@ -11,7 +11,7 @@ module Rbexy
11
11
  end
12
12
 
13
13
  def self.splat_attrs(attrs_hash)
14
- tag_builder.tag_options(attrs_hash).html_safe
14
+ tag_builder.tag_options(attrs_hash)&.html_safe
15
15
  end
16
16
 
17
17
  def self.expr_out(*value)
@@ -1,3 +1,3 @@
1
1
  module Rbexy
2
- VERSION = "2.0.0.beta3"
2
+ VERSION = "2.0.0.beta4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbexy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta3
4
+ version: 2.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Giancola
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-12 00:00:00.000000000 Z
11
+ date: 2021-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport