formulario 0.1.0 → 0.1.1b
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/Gemfile.lock +1 -1
- data/formulario.gemspec +2 -2
- data/lib/formulario/form.rb +6 -0
- data/lib/formulario/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: 10be35b208c5e604d6b23623184e89733274a891fc3a5a42fd5ea5494ec5a4e8
|
|
4
|
+
data.tar.gz: 761c694754991adb79a7f95b118d498f12841294c48b0bfa87c48d4c02b33c9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34dbcf2e68384ecab82baa64c13fb467dab969d718a41a0bd29f845c74fda833101b0e24a968225049a2b5105aa9ac55e010769eb07a616313005488a9e8cd29
|
|
7
|
+
data.tar.gz: 9b5149c3f638c9c23518cc1e3ff0b2bec1f80d566f58d27e332747fe7e258c5c426e0fbca8d9e5e0b979f639e534d52effc67b39992d08263f6a00dc28303178
|
data/Gemfile.lock
CHANGED
data/formulario.gemspec
CHANGED
|
@@ -9,11 +9,11 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.email = ["iachetti.federico@gmail.com"]
|
|
10
10
|
|
|
11
11
|
spec.summary = %q{Form objects for your project}
|
|
12
|
-
spec.description = %q{
|
|
12
|
+
spec.description = %q{Create form objects for your project. This forms are framework agnostic.}
|
|
13
13
|
spec.homepage = "https://gitlab.com/fiachetti/formulario"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
|
-
spec.metadata["homepage_uri"] =
|
|
16
|
+
spec.metadata["homepage_uri"] = "https://gitlab.com/fiachetti/formulario"
|
|
17
17
|
spec.metadata["source_code_uri"] = "https://gitlab.com/fiachetti/formulario"
|
|
18
18
|
spec.metadata["changelog_uri"] = "https://gitlab.com/fiachetti/formulario/blob/d46f675a18c4fbf1d16634a5da343a648af7cf0c/CHANGELOG.org"
|
|
19
19
|
|
data/lib/formulario/form.rb
CHANGED
|
@@ -82,6 +82,12 @@ module Formulario
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
|
|
85
|
+
# TODO: TEST AND CHANGE THIS
|
|
86
|
+
if field_type == ::Formulario::Form
|
|
87
|
+
default = ::Formulario::FormField[field_type.default]
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
|
|
85
91
|
define_method(field_name) do
|
|
86
92
|
__fields.dig(field_name.to_sym, :value)
|
|
87
93
|
end
|
data/lib/formulario/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: formulario
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1b
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Federico Iachetti
|
|
@@ -94,7 +94,7 @@ dependencies:
|
|
|
94
94
|
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
|
-
description:
|
|
97
|
+
description: Create form objects for your project. This forms are framework agnostic.
|
|
98
98
|
email:
|
|
99
99
|
- iachetti.federico@gmail.com
|
|
100
100
|
executables: []
|
|
@@ -150,9 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
150
150
|
version: '0'
|
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
requirements:
|
|
153
|
-
- - "
|
|
153
|
+
- - ">"
|
|
154
154
|
- !ruby/object:Gem::Version
|
|
155
|
-
version:
|
|
155
|
+
version: 1.3.1
|
|
156
156
|
requirements: []
|
|
157
157
|
rubygems_version: 3.0.6
|
|
158
158
|
signing_key:
|