form_core 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 88c1f8ae832ce81300e9a18e3da6e421b6acb4cd
4
- data.tar.gz: a8f383d55d6ffb29b9622997d2a8ddf36de85cf4
3
+ metadata.gz: 636ec9a02eefe5cbe6c9d48a1c4f2bcd24993744
4
+ data.tar.gz: 15eb6842057b88bdf2852e1f6bd184312efd2989
5
5
  SHA512:
6
- metadata.gz: 95b46ed6033fd52676d9c0d9eecf4f72cc69b3627520e9993f112dfc4ae295f02c2da6b961f002d2373bb1d9d2eb0da82b6ec2b2354d10d7a95688bedc4312ab
7
- data.tar.gz: 1044c2dff56c1e3df3909497ca794e509969a0364578744f3d5c9c7d14b705f2a771d2921967796446d403980d41605f6045a2e1ee54c8224fabcf775a9ed15b
6
+ metadata.gz: 3950f8572fc0c8fe2a94537a1fa8a3fa57eb65d13fd1eaf3a6b92b3a7ba06b67ada89cbb943bff69550f54432e79491953072cdb85fb88b041446dc26dad1c27
7
+ data.tar.gz: 8b16c5d66290f35a5f503564cd7c27b6d222099a564ea1cf0f91864070c1c6838f497ea9acdaa1c3c30656e9514fe11b432ed099df7a1a5eb5859c08f763566a
data/lib/form_core.rb CHANGED
@@ -6,24 +6,6 @@ require "form_core/concerns/models/field"
6
6
 
7
7
  module FormCore
8
8
  class << self
9
- def field_classes
10
- @field_classes ||= Set.new
11
- end
12
-
13
- def register_field_class(klass)
14
- unless klass && klass < Field && !klass.abstract_class?
15
- raise ArgumentError, "#{klass} should be sub-class of #{Field} and can't be abstract class."
16
- end
17
-
18
- field_classes << klass
19
- end
20
-
21
- def register_field_classes(*classes)
22
- classes.each do |klass|
23
- register_field_class klass
24
- end
25
- end
26
-
27
9
  def virtual_model_class
28
10
  @virtual_model_class ||= VirtualModel
29
11
  end
@@ -1,3 +1,3 @@
1
1
  module FormCore
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  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.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-23 00:00:00.000000000 Z
11
+ date: 2017-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails