triggerhappy 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/lib/triggerhappy/schema_dumper.rb +8 -4
- data/lib/triggerhappy/version.rb +1 -1
- metadata +11 -13
data/CHANGELOG
CHANGED
@@ -37,8 +37,10 @@ module ActiveRecord
|
|
37
37
|
@connection.triggers.sort.each do |t|
|
38
38
|
next if ["schema_info", ignore_triggers].flatten.any? do |ignored|
|
39
39
|
case ignored
|
40
|
-
when String
|
41
|
-
|
40
|
+
when String
|
41
|
+
t == ignored
|
42
|
+
when Regexp
|
43
|
+
t =~ ignored
|
42
44
|
else
|
43
45
|
raise StandardError, 'ActiveRecord::SchemaDumper.ignore_triggers accepts an array of String and / or Regexp values.'
|
44
46
|
end
|
@@ -52,8 +54,10 @@ module ActiveRecord
|
|
52
54
|
@connection.procs.sort.each do |p|
|
53
55
|
next if [ignore_procs].flatten.any? do |ignored|
|
54
56
|
case ignored
|
55
|
-
when String
|
56
|
-
|
57
|
+
when String
|
58
|
+
p == ignored
|
59
|
+
when Regexp
|
60
|
+
p =~ ignored
|
57
61
|
else
|
58
62
|
raise StandardError, 'ActiveRecord::SchemaDumper.ignore_procs accepts an array of String and / or Regexp values.'
|
59
63
|
end
|
data/lib/triggerhappy/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: triggerhappy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Stuart Wade
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-12-11 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: Provide create_trigger and drop_trigger in migrations. Also extends SchemaDumper to clue in about triggers
|
@@ -29,18 +28,17 @@ extra_rdoc_files: []
|
|
29
28
|
|
30
29
|
files:
|
31
30
|
- lib/core_ext/module.rb
|
32
|
-
- lib/triggerhappy.rb
|
33
|
-
- lib/triggerhappy/
|
34
|
-
- lib/triggerhappy/
|
31
|
+
- lib/triggerhappy/connection_adapters/abstract/schema_definitions.rb
|
32
|
+
- lib/triggerhappy/connection_adapters/abstract/schema_statements.rb
|
33
|
+
- lib/triggerhappy/connection_adapters/abstract_adapter.rb
|
35
34
|
- lib/triggerhappy/connection_adapters/mysql_adapter.rb
|
36
35
|
- lib/triggerhappy/connection_adapters/sqlserver_adapter.rb
|
37
|
-
- lib/triggerhappy/
|
38
|
-
- lib/triggerhappy/
|
39
|
-
- lib/triggerhappy
|
36
|
+
- lib/triggerhappy/schema_dumper.rb
|
37
|
+
- lib/triggerhappy/version.rb
|
38
|
+
- lib/triggerhappy.rb
|
40
39
|
- CHANGELOG
|
41
40
|
- Rakefile
|
42
41
|
- README
|
43
|
-
has_rdoc: true
|
44
42
|
homepage: http://blog.stewbawka.com
|
45
43
|
licenses: []
|
46
44
|
|
@@ -72,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
70
|
requirements: []
|
73
71
|
|
74
72
|
rubyforge_project: triggerhappy
|
75
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.8.15
|
76
74
|
signing_key:
|
77
75
|
specification_version: 3
|
78
76
|
summary: sql triggers in migrations
|