frontyard 0.1.3 → 0.1.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 +4 -4
- data/app/components/frontyard/actions.rb +2 -2
- data/app/components/frontyard/application_component.rb +2 -3
- data/app/components/frontyard/application_form.rb +2 -2
- data/app/components/frontyard/application_table.rb +1 -1
- data/app/components/frontyard/application_view.rb +1 -1
- data/lib/frontyard/engine.rb +1 -1
- data/lib/frontyard/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a1ea00b4c5435350b161f82403bce2df09e7b04be0794633c8d0766c391dab3
|
|
4
|
+
data.tar.gz: a2f4cb421f631779eb824103da2d91ce95d4aa7f0fee12580897d48d657b4733
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c02e261121c173b675e6ca083ddcbe2ecad2ea24f78c5c860f1ae95fd0517e116b7bad5e4fe74ad284cd441f8d70357a2bba584c723d2d66e74eba9e6f2711b
|
|
7
|
+
data.tar.gz: 523537a9ba34115e1e3ce013b95c99970a2aa67aa37ed0001f6614e4d7d2268c04091edcf7d5b335aed75dedfe1af50c5c1f70edcb2aeaab42e78f02e0c0e8f7
|
|
@@ -15,9 +15,9 @@ module Frontyard
|
|
|
15
15
|
}
|
|
16
16
|
)
|
|
17
17
|
|
|
18
|
-
def initialize(**kwargs
|
|
18
|
+
def initialize(**kwargs)
|
|
19
19
|
filtered_kwargs = filter_kwargs_for(self.class.superclass, kwargs)
|
|
20
|
-
super(
|
|
20
|
+
super()
|
|
21
21
|
@button_config = ButtonConfig.merge(kwargs.except(*filtered_kwargs.keys))
|
|
22
22
|
end
|
|
23
23
|
|
|
@@ -89,14 +89,13 @@ module Frontyard
|
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
mod.class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
|
92
|
-
def initialize(#{keyword_args.join(", ")}, **options
|
|
92
|
+
def initialize(#{keyword_args.join(", ")}, **options)
|
|
93
93
|
#{ivars.join("\n")}
|
|
94
94
|
@flash = options.delete(:flash) || {}
|
|
95
95
|
if options.key?(:html_options)
|
|
96
96
|
@html_options = options.delete(:html_options)
|
|
97
97
|
end
|
|
98
98
|
@options = options
|
|
99
|
-
yield self if block_given?
|
|
100
99
|
#{block_code}
|
|
101
100
|
end
|
|
102
101
|
RUBY
|
|
@@ -177,7 +176,7 @@ module Frontyard
|
|
|
177
176
|
end
|
|
178
177
|
klass = safe_const_get(*const_names)
|
|
179
178
|
filtered_kwargs = filter_kwargs_for(klass, kwargs)
|
|
180
|
-
render klass.new(**filtered_kwargs, &block
|
|
179
|
+
render klass.new(**filtered_kwargs), &block
|
|
181
180
|
end
|
|
182
181
|
|
|
183
182
|
def params = view_context.params
|
|
@@ -9,13 +9,13 @@ module Frontyard
|
|
|
9
9
|
include Phlex::Rails::Helpers::TextField
|
|
10
10
|
|
|
11
11
|
def form_actions(**kwargs, &block)
|
|
12
|
-
render Frontyard::Actions.new(**kwargs, &block
|
|
12
|
+
render Frontyard::Actions.new(**kwargs), &block
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def field(attribute, **kwargs, &block)
|
|
16
16
|
# Use the form object if available, otherwise use a default object
|
|
17
17
|
form_object = respond_to?(:object) ? object : self
|
|
18
|
-
render Frontyard::Field.new(object: form_object, attribute: attribute, **kwargs, &block
|
|
18
|
+
render Frontyard::Field.new(object: form_object, attribute: attribute, **kwargs), &block
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
# Default object method - subclasses can override this
|
data/lib/frontyard/engine.rb
CHANGED
data/lib/frontyard/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jim Gay
|
|
@@ -30,6 +30,9 @@ dependencies:
|
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.0.2
|
|
33
|
+
- - "<"
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '4'
|
|
33
36
|
type: :runtime
|
|
34
37
|
prerelease: false
|
|
35
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -37,6 +40,9 @@ dependencies:
|
|
|
37
40
|
- - ">="
|
|
38
41
|
- !ruby/object:Gem::Version
|
|
39
42
|
version: 2.0.2
|
|
43
|
+
- - "<"
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '4'
|
|
40
46
|
- !ruby/object:Gem::Dependency
|
|
41
47
|
name: contours
|
|
42
48
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -97,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
97
103
|
- !ruby/object:Gem::Version
|
|
98
104
|
version: '0'
|
|
99
105
|
requirements: []
|
|
100
|
-
rubygems_version: 4.0.
|
|
106
|
+
rubygems_version: 4.0.20
|
|
101
107
|
specification_version: 4
|
|
102
108
|
summary: Frontyard is a Rails engine for creating and managing views with Phlex.
|
|
103
109
|
test_files: []
|