schema-model 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/schema/model.rb +6 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03e326c7a2593f07b97ced07ffd5386d9ac9c561d4e65d373b1f50d916fc5765
4
- data.tar.gz: f4420f6bec67221fa990019aabfd1f762b93f0c5878ea8ff6fafc263a88ca1fe
3
+ metadata.gz: 764956c8604af4075e04b65288078003c6dd7bcf18cd5244e0e8178d3e2c680a
4
+ data.tar.gz: 974c5a9f815257910a70420d31af7318dbb22eafce771dfd7dfea1102ec57b15
5
5
  SHA512:
6
- metadata.gz: bf24c10ab44f7337877c6b2875c70b384537abcde14c09bd44d340b235ac0456ee5f9db55f72c46d0e8b8e96165a406a0a77fb99e18621ec3b4081eed1be6e02
7
- data.tar.gz: 81f46010bef83c29a3367d50a9911f1dc1c27557a54e3ea122e9842affe1c72f1e224a80038c2e9bb4d21064d8a2660b32711746c315a4921983abbc60c42134
6
+ metadata.gz: d5a8a186d41416db20b4208658441c3959064574b515a7f9b1dfb37aa57db793a973296db8e581fb445e8a608821b351badbafe3ab40090504207be9632be14f
7
+ data.tar.gz: 7d46f4c3629af7e994669f14106476aba5631ca3f54e98ffd87ab5b1ffb7db01c9f111452de8c0b9da5564caf1d306e3813c10bba4e7559621fb041871b1ffac
data/lib/schema/model.rb CHANGED
@@ -117,6 +117,12 @@ STR
117
117
  @parsing_errors ||= Errors.new
118
118
  end
119
119
 
120
+ def not_set?
121
+ self.class.schema.values.all? do |field_options|
122
+ !instance_variable_defined?(field_options[:instance_variable])
123
+ end
124
+ end
125
+
120
126
  private
121
127
 
122
128
  def get_schema(data)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch