frontyard 0.1.0 → 0.1.2

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: 960f8a9f31969989aba04d9cd0fddff4153b60df76259be27e198324eb458e98
4
- data.tar.gz: 6b5e2e66c25ac43087e9236c0631321b308fb23f48c740c82fce9395bc76d39a
3
+ metadata.gz: 4d21b67a2f206bc0b8cb353cc467472542d80977da64b0faa280d714238f8e9d
4
+ data.tar.gz: 7036b1e1d6ee7c6b816dce6f17fd99c8f5f3a4126c2562a4b6bfe071c089b012
5
5
  SHA512:
6
- metadata.gz: 8911bfaa2be547720a2a1567b4018e6e3d21b0dd8fc6100543e4672cf702f3e772aef2e1916c1044050c1106cd0ed00d111a5f247d2ad34d234f28315b2d5fb4
7
- data.tar.gz: 90f8f27eaae7a36bfa4eb1f8a8a7c5311393dc756de4415bfaca993875939047121f95c219254eb6a4fa025dadd2ac410d50263c02ba8ca1ce73b9098b3777ac
6
+ metadata.gz: 2c6d5e7767b9d2a53ae5179d8a638c5374465146a40fbbc2c5ea29190e791681f49fed9fd44fcda8566b61c9d466393262343feda5af8781f1cf14122a486d9b
7
+ data.tar.gz: 11e299fc928834b7298d3ab060f154a981a3b47c4880a3ae2fadcc1fda0fbdf93f610190378b0ebdec4d6b5a94fba46453d6b43d453ad0b247de24c05e28c44c
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require "reissue/gem"
12
12
  require "rake/testtask"
13
13
 
14
14
  Reissue::Task.create do |t|
15
- t.version_file = "frontyard/version.rb"
15
+ t.version_file = "lib/frontyard/version.rb"
16
16
  end
17
17
 
18
18
  Rake::TestTask.new(:test) do |t|
@@ -90,7 +90,7 @@ module Frontyard
90
90
  end
91
91
 
92
92
  mod.class_eval <<~RUBY, __FILE__, __LINE__ + 1
93
- def initialize(#{keyword_args.join(", ")}, **options)
93
+ def initialize(#{keyword_args.join(", ")}, **options, &block)
94
94
  #{ivars.join("\n")}
95
95
  @flash = options.delete(:flash) || {}
96
96
  if options.key?(:html_options)
@@ -181,7 +181,7 @@ module Frontyard
181
181
  render klass.new(**filtered_kwargs, &block)
182
182
  end
183
183
 
184
- def params = helpers.params
184
+ def params = view_context.params
185
185
 
186
186
  def view_template(&) = div(**html_options, &)
187
187
  end
@@ -15,7 +15,7 @@ module Frontyard
15
15
  def view_template(&block)
16
16
  div(**self.class.config) do
17
17
  # Use basic HTML label to avoid Rails helper conflicts
18
- tag(:label) { attribute.to_s.humanize }
18
+ tag(:label) { options[:label] || attribute.to_s.humanize }
19
19
 
20
20
  case field_type
21
21
  when :text
@@ -59,8 +59,7 @@ module Frontyard
59
59
  end
60
60
 
61
61
  def field_options
62
- # Return any additional options for the field
63
- {}
62
+ options[:field_options] || {}
64
63
  end
65
64
  end
66
65
  end
@@ -1,3 +1,3 @@
1
1
  module Frontyard
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frontyard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-07-15 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -90,14 +90,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
93
+ version: 3.4.0
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.6.5
100
+ rubygems_version: 3.7.2
101
101
  specification_version: 4
102
102
  summary: Frontyard is a Rails engine for creating and managing views with Phlex.
103
103
  test_files: []