sequel 0.4.4.2 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +971 -953
- data/Rakefile +58 -44
- data/lib/sequel/database.rb +60 -2
- data/lib/sequel/dataset.rb +1 -0
- data/lib/sequel/dataset/sql.rb +7 -2
- data/lib/sequel/model.rb +22 -14
- data/lib/sequel/model/base.rb +1 -0
- data/lib/sequel/model/record.rb +2 -0
- data/lib/sequel/model/schema.rb +1 -1
- data/lib/sequel/model/validations.rb +117 -0
- data/lib/sequel/schema/schema_generator.rb +8 -0
- data/lib/sequel/schema/schema_sql.rb +2 -0
- data/spec/database_spec.rb +15 -0
- data/spec/dataset_spec.rb +9 -0
- data/spec/model/base_spec.rb +148 -0
- data/spec/model/caching_spec.rb +148 -0
- data/spec/model/hooks_spec.rb +105 -0
- data/spec/model/plugins_spec.rb +59 -0
- data/spec/model/record_spec.rb +360 -0
- data/spec/model/relations_spec.rb +148 -0
- data/spec/model/schema_spec.rb +80 -0
- data/spec/model/validations_spec.rb +292 -0
- data/spec/model_spec.rb +331 -1102
- data/spec/rcov.opts +4 -0
- data/spec/spec.opts +1 -4
- data/spec/spec_helper.rb +3 -2
- metadata +15 -4
data/spec/rcov.opts
ADDED
data/spec/spec.opts
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
require
|
1
|
+
require 'rubygems'
|
2
|
+
require File.join(File.dirname(__FILE__), "../lib/sequel")
|
2
3
|
|
3
4
|
class MockDataset < Sequel::Dataset
|
4
5
|
def insert(*args)
|
@@ -30,4 +31,4 @@ class MockDatabase < Sequel::Database
|
|
30
31
|
def transaction; yield; end
|
31
32
|
|
32
33
|
def dataset; MockDataset.new(self); end
|
33
|
-
end
|
34
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sharon Rosner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2007-12-
|
12
|
+
date: 2007-12-25 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -67,8 +67,18 @@ files:
|
|
67
67
|
- spec/database_spec.rb
|
68
68
|
- spec/dataset_spec.rb
|
69
69
|
- spec/migration_spec.rb
|
70
|
+
- spec/model
|
71
|
+
- spec/model/base_spec.rb
|
72
|
+
- spec/model/caching_spec.rb
|
73
|
+
- spec/model/hooks_spec.rb
|
74
|
+
- spec/model/plugins_spec.rb
|
75
|
+
- spec/model/record_spec.rb
|
76
|
+
- spec/model/relations_spec.rb
|
77
|
+
- spec/model/schema_spec.rb
|
78
|
+
- spec/model/validations_spec.rb
|
70
79
|
- spec/model_spec.rb
|
71
80
|
- spec/pretty_table_spec.rb
|
81
|
+
- spec/rcov.opts
|
72
82
|
- spec/schema_generator_spec.rb
|
73
83
|
- spec/schema_spec.rb
|
74
84
|
- spec/sequelizer_spec.rb
|
@@ -114,6 +124,7 @@ files:
|
|
114
124
|
- lib/sequel/model/record.rb
|
115
125
|
- lib/sequel/model/relations.rb
|
116
126
|
- lib/sequel/model/schema.rb
|
127
|
+
- lib/sequel/model/validations.rb
|
117
128
|
- lib/sequel/model.rb
|
118
129
|
- lib/sequel/mysql.rb
|
119
130
|
- lib/sequel/odbc.rb
|
@@ -161,8 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
172
|
version:
|
162
173
|
requirements: []
|
163
174
|
|
164
|
-
rubyforge_project:
|
165
|
-
rubygems_version: 0.
|
175
|
+
rubyforge_project: sequel
|
176
|
+
rubygems_version: 1.0.1
|
166
177
|
signing_key:
|
167
178
|
specification_version: 2
|
168
179
|
summary: Lightweight ORM library for Ruby
|