legacy_data 0.1.4 → 0.1.5

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -22,7 +22,7 @@ class <%= class_name -%> < ActiveRecord::Base
22
22
  <%- end -%>
23
23
  <%= "validates_presence_of #{constraints[:presence_of].map {|cols| cols.downcase.to_sym.inspect}.join(', ')}" unless constraints[:presence_of].blank? %>
24
24
  <%- constraints[:boolean_presence].each do |col|
25
- -%> validates_inclusion_of <%= col %>, :in => %w(true false)
25
+ -%> validates_inclusion_of <%= col.to_sym.inspect %>, :in => %w(true false)
26
26
  <%- end -%>
27
27
  <%- [:allow_nil, :do_not_allow_nil].each do |nullable|
28
28
  unless constraints[:numericality_of][nullable].blank?
@@ -33,7 +33,9 @@ class <%= class_name -%> < ActiveRecord::Base
33
33
  -%> validate <%= "validate_#{name}".to_sym.inspect %>
34
34
  def <%= "validate_#{name}" %>
35
35
  # TODO: validate this SQL constraint
36
- "<%= sql_rule %>"
36
+ <<-SQL
37
+ <%= sql_rule %>
38
+ SQL
37
39
  end
38
40
  <%- end -%>
39
41
  end
data/legacy_data.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{legacy_data}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alex Rothenberg"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legacy_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rothenberg