citier 0.1.11 → 0.1.12

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/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('citier', '0.1.11') do |p|
5
+ Echoe.new('citier', '0.1.12') do |p|
6
6
  p.description = "CITIER (Class Inheritance & Table Inheritance Embeddings for Rails) is a solution for single and multiple class table inheritance.
7
7
  For full information: http://peterhamilton.github.com/citier/
8
8
  For the original version by ALTRABio see www.github.com/altrabio/"
data/citier.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{citier}
5
- s.version = "0.1.11"
5
+ s.version = "0.1.12"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Peter Hamilton, Originally from Laurent Buffat, Pierre-Emmanuel Jouve"]
@@ -49,6 +49,11 @@ module ChildInstanceMethods
49
49
  end
50
50
  return parent_saved && current_saved
51
51
  end
52
+
53
+ def save!
54
+ raise ActiveRecord::RecordInvalid.new(self) unless self.valid?
55
+ self.save
56
+ end
52
57
 
53
58
  include InstanceMethods
54
59
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: citier
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 11
10
- version: 0.1.11
5
+ version: 0.1.12
11
6
  platform: ruby
12
7
  authors:
13
8
  - Peter Hamilton, Originally from Laurent Buffat, Pierre-Emmanuel Jouve
@@ -15,7 +10,8 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-04-29 00:00:00 Z
13
+ date: 2011-04-29 00:00:00 +01:00
14
+ default_executable:
19
15
  dependencies: []
20
16
 
21
17
  description: |-
@@ -48,6 +44,7 @@ files:
48
44
  - lib/citier/sql_adapters.rb
49
45
  - Manifest
50
46
  - citier.gemspec
47
+ has_rdoc: true
51
48
  homepage: https://github.com/peterhamilton/citier/
52
49
  licenses: []
53
50
 
@@ -66,24 +63,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
63
  requirements:
67
64
  - - ">="
68
65
  - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
66
  version: "0"
73
67
  required_rubygems_version: !ruby/object:Gem::Requirement
74
68
  none: false
75
69
  requirements:
76
70
  - - ">="
77
71
  - !ruby/object:Gem::Version
78
- hash: 11
79
- segments:
80
- - 1
81
- - 2
82
72
  version: "1.2"
83
73
  requirements: []
84
74
 
85
75
  rubyforge_project: citier
86
- rubygems_version: 1.7.2
76
+ rubygems_version: 1.6.2
87
77
  signing_key:
88
78
  specification_version: 3
89
79
  summary: "CITIER (Class Inheritance & Table Inheritance Embeddings for Rails) is a solution for single and multiple class table inheritance. For full information: http://peterhamilton.github.com/citier/ For the original version by ALTRABio see www.github.com/altrabio/"