rails3_pg_deferred_constraints 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -2
- data/lib/rails3_pg_deferred_constraints/version.rb +1 -1
- metadata +78 -50
data/README.md
CHANGED
@@ -1,11 +1,18 @@
|
|
1
1
|
# Rails3 PG deferred constraints
|
2
2
|
|
3
|
+
Copyright: 2011 TMX Credit
|
4
|
+
|
5
|
+
Author: Potapov Sergey (aka Blake)
|
6
|
+
|
7
|
+
|
8
|
+
## Intro
|
9
|
+
|
3
10
|
This is a Rails 3 engine which provides a hack to avoid
|
4
11
|
[RI\_ConstraintTrigger Error bug](http://kopongo.com/2008/7/25/postgres-ri_constrainttrigger-error).
|
5
12
|
|
6
13
|
It tested with PosgreSQL 9.0.4 and Rails 3.1.0
|
7
14
|
|
8
|
-
|
15
|
+
## Usage
|
9
16
|
|
10
17
|
I would recommend to use it only for tests and __NEVER USE IN PRODUCTION__
|
11
18
|
|
@@ -15,7 +22,7 @@ Add to your Gemfile:
|
|
15
22
|
gem 'rails3_pg_deferred_constraints'
|
16
23
|
end
|
17
24
|
|
18
|
-
|
25
|
+
## Testing
|
19
26
|
|
20
27
|
* Open ./test/dummy/config/database.yml and modified db connections
|
21
28
|
* Run `rake test` from the root directory of gem(not dummy application)
|
metadata
CHANGED
@@ -1,57 +1,77 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails3_pg_deferred_constraints
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Potapov Sergey
|
14
|
+
- TMX Credit
|
9
15
|
autorequire:
|
10
16
|
bindir: bin
|
11
17
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
18
|
+
|
19
|
+
date: 2011-09-29 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
type: :runtime
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
25
|
none: false
|
18
|
-
requirements:
|
26
|
+
requirements:
|
19
27
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 3
|
32
|
+
- 1
|
33
|
+
- 0
|
21
34
|
version: 3.1.0
|
22
|
-
|
35
|
+
version_requirements: *id001
|
36
|
+
name: rails
|
37
|
+
- !ruby/object:Gem::Dependency
|
23
38
|
prerelease: false
|
24
|
-
version_requirements: *10319800
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: pg
|
27
|
-
requirement: &10318100 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - ! '>='
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
33
39
|
type: :runtime
|
34
|
-
|
35
|
-
version_requirements: *10318100
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: foreigner
|
38
|
-
requirement: &10317340 !ruby/object:Gem::Requirement
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
version_requirements: *id002
|
50
|
+
name: pg
|
51
|
+
- !ruby/object:Gem::Dependency
|
45
52
|
prerelease: false
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
53
|
+
type: :development
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
version_requirements: *id003
|
64
|
+
name: foreigner
|
65
|
+
description: Rails 3 engine which provides a hack to avoid RI_ConstraintTrigger Error bug
|
66
|
+
email:
|
50
67
|
- blake131313@gmail.com
|
51
68
|
executables: []
|
69
|
+
|
52
70
|
extensions: []
|
71
|
+
|
53
72
|
extra_rdoc_files: []
|
54
|
-
|
73
|
+
|
74
|
+
files:
|
55
75
|
- lib/rails3_pg_deferred_constraints/fixtures.rb
|
56
76
|
- lib/rails3_pg_deferred_constraints/version.rb
|
57
77
|
- lib/rails3_pg_deferred_constraints/postgresql_adapter.rb
|
@@ -109,30 +129,38 @@ files:
|
|
109
129
|
- test/dummy/Gemfile.lock
|
110
130
|
homepage: https://github.com/greyblake/rails3_pg_deferred_constraints
|
111
131
|
licenses: []
|
132
|
+
|
112
133
|
post_install_message:
|
113
134
|
rdoc_options: []
|
114
|
-
|
135
|
+
|
136
|
+
require_paths:
|
115
137
|
- lib
|
116
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
117
139
|
none: false
|
118
|
-
requirements:
|
119
|
-
- -
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
|
122
|
-
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
hash: 3
|
144
|
+
segments:
|
145
|
+
- 0
|
146
|
+
version: "0"
|
147
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
148
|
none: false
|
124
|
-
requirements:
|
125
|
-
- -
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
hash: 3
|
153
|
+
segments:
|
154
|
+
- 0
|
155
|
+
version: "0"
|
128
156
|
requirements: []
|
157
|
+
|
129
158
|
rubyforge_project:
|
130
159
|
rubygems_version: 1.8.10
|
131
160
|
signing_key:
|
132
161
|
specification_version: 3
|
133
|
-
summary: Rails 3 engine which provides a hack to avoid RI_ConstraintTrigger Error
|
134
|
-
|
135
|
-
test_files:
|
162
|
+
summary: Rails 3 engine which provides a hack to avoid RI_ConstraintTrigger Error bug
|
163
|
+
test_files:
|
136
164
|
- test/rails3_pg_deferred_constraints_test.rb
|
137
165
|
- test/test_helper.rb
|
138
166
|
- test/dummy/config/boot.rb
|