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 +4 -4
- data/Rakefile +1 -1
- data/app/components/frontyard/application_component.rb +2 -2
- data/app/components/frontyard/field.rb +2 -3
- data/lib/frontyard/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d21b67a2f206bc0b8cb353cc467472542d80977da64b0faa280d714238f8e9d
|
|
4
|
+
data.tar.gz: 7036b1e1d6ee7c6b816dce6f17fd99c8f5f3a4126c2562a4b6bfe071c089b012
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c6d5e7767b9d2a53ae5179d8a638c5374465146a40fbbc2c5ea29190e791681f49fed9fd44fcda8566b61c9d466393262343feda5af8781f1cf14122a486d9b
|
|
7
|
+
data.tar.gz: 11e299fc928834b7298d3ab060f154a981a3b47c4880a3ae2fadcc1fda0fbdf93f610190378b0ebdec4d6b5a94fba46453d6b43d453ad0b247de24c05e28c44c
|
data/Rakefile
CHANGED
|
@@ -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 =
|
|
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
|
-
|
|
63
|
-
{}
|
|
62
|
+
options[:field_options] || {}
|
|
64
63
|
end
|
|
65
64
|
end
|
|
66
65
|
end
|
data/lib/frontyard/version.rb
CHANGED
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.
|
|
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:
|
|
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:
|
|
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.
|
|
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: []
|