triggerhappy 0.1.1 → 0.1.2

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/CHANGELOG CHANGED
@@ -1,2 +1,3 @@
1
1
  0.0.1 - Released May 11, 2011
2
2
  * Initial release
3
+ 0.1.2 - ruby 1.9 friendly
@@ -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: t == ignored
41
- when Regexp: t =~ ignored
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: p == ignored
56
- when Regexp: p =~ ignored
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
@@ -2,7 +2,7 @@ module TriggerHappy
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.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: 2011-08-11 00:00:00 -03:00
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/version.rb
34
- - lib/triggerhappy/schema_dumper.rb
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/connection_adapters/abstract_adapter.rb
38
- - lib/triggerhappy/connection_adapters/abstract/schema_statements.rb
39
- - lib/triggerhappy/connection_adapters/abstract/schema_definitions.rb
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.5.3
73
+ rubygems_version: 1.8.15
76
74
  signing_key:
77
75
  specification_version: 3
78
76
  summary: sql triggers in migrations