form_core 0.1.2 → 0.1.3

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: a016a1344a482ebe99e58d9daea62366b5f9ffe57e78bd2b64b1d10274f2292c
4
- data.tar.gz: 145bb989f255f07635a799351d715f5cbc5f801bdb203913afe7495baf44815a
3
+ metadata.gz: 9fde099a67585eb039df1f5674102caae42faa428e3fccbd06b08f5bbb3de740
4
+ data.tar.gz: ca0963efc74b13e27e1d9539a5d75d43da2ceb1a5f6c2d00f36da727055ee6c3
5
5
  SHA512:
6
- metadata.gz: 39a93c46530072522e9cfc9212e81c5d90b0e2f62887d8ccfde56f4bcca8f059f0d0dda2a2ed87564939727a0c177e2e78feddd382d15b97d655695076428b92
7
- data.tar.gz: d765f57550efb4587eccf55aeb4cabf7532c7e5744f848e71ac2a79decac93b2a339ebf314d230550c6f32bc6218dcf5a9e94aca87ee2e0e397090afb94162b4
6
+ metadata.gz: 91b88b510441db3e7b3397bb12be4b6466303394adba480e5f6e3c48d7f726bccc6a244309d9f58a957897bb64492ce8a861e2c41e7e4b504968ab0bcaa1e425
7
+ data.tar.gz: db1300da508e1748fe3008aef50b9d2fdd71ad314e6c9689487c8a04a0ca79991a394b0fc838ee369f33bdd9b0d60b74db41a8f6ed841989b8c9dd2d6995fcae
@@ -3,7 +3,6 @@
3
3
  class CreateForms < ActiveRecord::Migration[5.1]
4
4
  def change
5
5
  create_table :forms do |t|
6
- t.string :name, null: false, index: { unique: true }
7
6
  t.string :type, null: false, index: true
8
7
 
9
8
  t.timestamps
@@ -5,16 +5,6 @@ module FormCore::Concerns
5
5
  module Form
6
6
  extend ActiveSupport::Concern
7
7
 
8
- NAME_REGEX = /\A[a-z][a-z_0-9]*\z/.freeze
9
-
10
- included do
11
- validates :name,
12
- presence: true,
13
- uniqueness: true,
14
- exclusion: { in: FormCore.reserved_names },
15
- format: { with: NAME_REGEX }
16
- end
17
-
18
8
  def to_virtual_model(model_name: "Form",
19
9
  fields_scope: proc { |fields| fields },
20
10
  overrides: {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FormCore
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: form_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-05 00:00:00.000000000 Z
11
+ date: 2019-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeentity