theo-rails 0.0.4 → 0.0.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: 8f5fe7a8007c65deb5f02c40a4631ffa4c8ac48a1e0abdac1bd08dc77ab91aa9
4
- data.tar.gz: f7a2c8e58282ae1a6cd981cbf40a8cce42845f202d334e9f3226e620806d420d
3
+ metadata.gz: 3e4463e090916210fce56a8da009ebb09f945ba3013dc46121c66c43f4cfc9a2
4
+ data.tar.gz: 545c9cc533c9a89aa3d4d1a53d0598dc7a21aadd0608e26fad742da9b9cb0c7f
5
5
  SHA512:
6
- metadata.gz: 74c4c732b9839f507d0b259a81e844f76bae73de149df684d23839f109b90a93286b9a2ae58975c38c893e858e2018a36fd601937e6da4cd949644a04cbd533e
7
- data.tar.gz: abfb01f944c99c41429fb07ac5e4b2c5383d68206968b27d487377b9df08bd05a5660801c01004058b48971a1c637a4e1b8399ce97ba9c3736c07feeb5b739e8
6
+ metadata.gz: 9e9bbb695426ff687b337ef025a0741324b0defa1778b3b3183d8e674b3928577b534f49c2a267cdd7d43b8184a4fbda5f2ff8895ce3b31a63fdaa186761bada
7
+ data.tar.gz: 71688b266300bfe8863fb73e2ed260f2d317d24254d9fe0db9069e4e9327c97a856cf18751a688292ed77ab59815c0d7ca98f8db36b70b5ce6521d658421a768
@@ -1,4 +1,4 @@
1
- <%# locals: (url: nil, **attributes) -%>
2
- <%= form_with url:, html: attributes do |form| %>
1
+ <%# locals: (url: nil, model:nil, **attributes) -%>
2
+ <%= form_with url:, model:, html: attributes do |form| %>
3
3
  <% yield form %>
4
4
  <% end %>
@@ -1,3 +1,3 @@
1
1
  <%# locals: (form:, name:, options:, **attributes) -%>
2
- <%= form.select name, options, **attributes %>
2
+ <%= form.select name, options, {}, **attributes %>
3
3
 
@@ -1,6 +1,6 @@
1
1
  module Theo
2
2
  module Rails
3
- TX = '\s*([a-z0-9-]+-partial)\s*(.*?)(?<!%)'.freeze
3
+ TX = '\s*([a-z0-9-]+-partial)\s*([^>]*?)(?<![%/])'.freeze
4
4
  RX = %r{(?:<#{TX}>(.*?)</\1>)|(?:<#{TX}/>)}im
5
5
  LX = /\s*([^=%\s]+)\s*(?:(%)?=\s*"([^"]*)")?/
6
6
  RXA = /^<%=([^%]*)%>$/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theo-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarek Lipski