formalist 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18e68963bc4183a119d9148105260e0db4013e05930135ba163aff7323bb56f1
4
- data.tar.gz: 52981229e22c0bd7cf7bddd6f5aae1dfef9a3adf0e2ada0630184355fea74cd5
3
+ metadata.gz: 03a8f0c988791be928bb997789c44373b720d3c9a24d37bc62d66a544feabcf9
4
+ data.tar.gz: ddb5f88e7d7223c8c256e9d2f2f3e266b836b900f3f1be9ef0b4eb30c1984287
5
5
  SHA512:
6
- metadata.gz: 41944e8fed2c09fb7487ee42dfeaccfb77e48a63dbe8e1449da323acc7a872f531666cf1e26fbae8e8e9bc0400f5739d4cb70c2a3b76b381a580e3cceae22115
7
- data.tar.gz: daa02bdd21dbbf6d3a185dbc571e19ff1b27439087bd8b5f45b721912e463874f40df8a7ef951e55e74dcd0caa972b329e362033a9b4bae6472688ada92f13b9
6
+ metadata.gz: 3d3fc72a4a0ce4d017c53c136b30a5cd636c06617a1c3b48ed593caee5caaa3ec82e4536e5948d42d5fcc61026e5e98379d30f47d4a1f4a2a9aaf1d23438f9d9
7
+ data.tar.gz: fa77fc67dc3393ce5fa847f683e57314dcdfe84bf42f4d4060b4c24004d4c4053fc439f87a3d608da862a1889dfb7d918d3588277957f2cdad6b3d4e055913c0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 0.5.0 / 2018-07-04
2
+
3
+ ### Added
4
+
5
+ - Add `render_option_control_as` option to search select fields
6
+
7
+ ### Changed
8
+
9
+ - dry-types dependency updated to 0.13
10
+
1
11
  # 0.4.2 / 2018-07-03
2
12
 
3
13
  ### Fixed
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gemspec
5
5
  group :test do
6
6
  gem "codeclimate-test-reporter", require: nil
7
7
  gem "dry-auto_inject"
8
- gem "dry-validation", "~> 0.11"
8
+ gem "dry-validation"
9
9
  end
10
10
 
11
11
  group :tools do
data/formalist.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_runtime_dependency "dry-configurable", "~> 0.7"
23
23
  spec.add_runtime_dependency "dry-core", "~> 0.4"
24
24
  spec.add_runtime_dependency "dry-container", "~> 0.6"
25
- spec.add_runtime_dependency "dry-types", "~> 0.12"
25
+ spec.add_runtime_dependency "dry-types", "~> 0.13"
26
26
  spec.add_runtime_dependency "inflecto"
27
27
 
28
28
  spec.add_development_dependency "bundler", "~> 1.10"
@@ -5,7 +5,7 @@ require "formalist/types"
5
5
  module Formalist
6
6
  class Elements
7
7
  class NumberField < Field
8
- Number = Types::Int | Types::Float
8
+ Number = Types::Integer | Types::Float
9
9
 
10
10
  attribute :step, Number
11
11
  attribute :min, Number
@@ -7,11 +7,12 @@ module Formalist
7
7
  class SearchMultiSelectionField < Field
8
8
  attribute :selector_label, Types::String
9
9
  attribute :render_option_as, Types::String
10
+ attribute :render_option_control_as, Types::String
10
11
  attribute :render_selection_as, Types::String
11
12
  attribute :search_url, Types::String
12
- attribute :search_per_page, Types::Int
13
+ attribute :search_per_page, Types::Integer
13
14
  attribute :search_params, Types::Hash
14
- attribute :search_threshold, Types::Int
15
+ attribute :search_threshold, Types::Integer
15
16
  attribute :selections, Types::Array
16
17
  end
17
18
 
@@ -7,11 +7,12 @@ module Formalist
7
7
  class SearchSelectionField < Field
8
8
  attribute :selector_label, Types::String
9
9
  attribute :render_option_as, Types::String
10
+ attribute :render_option_control_as, Types::String
10
11
  attribute :render_selection_as, Types::String
11
12
  attribute :search_url, Types::String
12
- attribute :search_per_page, Types::Int
13
+ attribute :search_per_page, Types::Integer
13
14
  attribute :search_params, Types::Hash
14
- attribute :search_threshold, Types::Int
15
+ attribute :search_threshold, Types::Integer
15
16
  attribute :selection, Types::Hash
16
17
  end
17
18
 
@@ -6,9 +6,9 @@ module Formalist
6
6
  class Elements
7
7
  class TagsField < Field
8
8
  attribute :search_url, Types::String
9
- attribute :search_per_page, Types::Int
9
+ attribute :search_per_page, Types::Integer
10
10
  attribute :search_params, Types::Hash
11
- attribute :search_threshold, Types::Int
11
+ attribute :search_threshold, Types::Integer
12
12
  end
13
13
 
14
14
  register :tags_field, TagsField
@@ -1,3 +1,3 @@
1
1
  module Formalist
2
- VERSION = "0.4.2".freeze
2
+ VERSION = "0.5.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formalist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Riley
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.12'
61
+ version: '0.13'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.12'
68
+ version: '0.13'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: inflecto
71
71
  requirement: !ruby/object:Gem::Requirement