hairtrigger 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/hair_trigger/adapter.rb +1 -1
  3. metadata +38 -38
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -25,7 +25,7 @@ module HairTrigger
25
25
  select_rows("SHOW TRIGGERS").each do |(name, event, table, actions, timing, created, sql_mode, definer)|
26
26
  next if options[:only] && !options[:only].include?(name)
27
27
  triggers[name] = <<-SQL
28
- CREATE #{definer != "#{@config[:username]}@#{@config[:host]}" ? "DEFINER = #{definer} " : ""}TRIGGER #{name} #{timing} #{event} ON #{table}
28
+ CREATE #{definer != "#{@config[:username] || 'root'}@#{@config[:host]}" ? "DEFINER = #{definer} " : ""}TRIGGER #{name} #{timing} #{event} ON #{table}
29
29
  FOR EACH ROW
30
30
  #{actions}
31
31
  SQL
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hairtrigger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jon Jensen
@@ -15,14 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-17 00:00:00 -06:00
18
+ date: 2011-04-19 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  prerelease: false
23
- name: activerecord
24
23
  type: :runtime
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
26
25
  none: false
27
26
  requirements:
28
27
  - - ">="
@@ -33,12 +32,12 @@ dependencies:
33
32
  - 3
34
33
  - 0
35
34
  version: 2.3.0
36
- requirement: *id001
35
+ name: activerecord
36
+ version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
38
  prerelease: false
39
- name: rspec
40
39
  type: :development
41
- version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ requirement: &id002 !ruby/object:Gem::Requirement
42
41
  none: false
43
42
  requirements:
44
43
  - - ~>
@@ -49,12 +48,12 @@ dependencies:
49
48
  - 3
50
49
  - 0
51
50
  version: 2.3.0
52
- requirement: *id002
51
+ name: rspec
52
+ version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
54
54
  prerelease: false
55
- name: bundler
56
55
  type: :development
57
- version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ requirement: &id003 !ruby/object:Gem::Requirement
58
57
  none: false
59
58
  requirements:
60
59
  - - ~>
@@ -65,12 +64,12 @@ dependencies:
65
64
  - 0
66
65
  - 0
67
66
  version: 1.0.0
68
- requirement: *id003
67
+ name: bundler
68
+ version_requirements: *id003
69
69
  - !ruby/object:Gem::Dependency
70
70
  prerelease: false
71
- name: jeweler
72
71
  type: :development
73
- version_requirements: &id004 !ruby/object:Gem::Requirement
72
+ requirement: &id004 !ruby/object:Gem::Requirement
74
73
  none: false
75
74
  requirements:
76
75
  - - ~>
@@ -81,12 +80,12 @@ dependencies:
81
80
  - 5
82
81
  - 2
83
82
  version: 1.5.2
84
- requirement: *id004
83
+ name: jeweler
84
+ version_requirements: *id004
85
85
  - !ruby/object:Gem::Dependency
86
86
  prerelease: false
87
- name: rcov
88
87
  type: :development
89
- version_requirements: &id005 !ruby/object:Gem::Requirement
88
+ requirement: &id005 !ruby/object:Gem::Requirement
90
89
  none: false
91
90
  requirements:
92
91
  - - ">="
@@ -95,12 +94,12 @@ dependencies:
95
94
  segments:
96
95
  - 0
97
96
  version: "0"
98
- requirement: *id005
97
+ name: rcov
98
+ version_requirements: *id005
99
99
  - !ruby/object:Gem::Dependency
100
100
  prerelease: false
101
- name: mysql
102
101
  type: :development
103
- version_requirements: &id006 !ruby/object:Gem::Requirement
102
+ requirement: &id006 !ruby/object:Gem::Requirement
104
103
  none: false
105
104
  requirements:
106
105
  - - ">="
@@ -111,12 +110,12 @@ dependencies:
111
110
  - 8
112
111
  - 1
113
112
  version: 2.8.1
114
- requirement: *id006
113
+ name: mysql
114
+ version_requirements: *id006
115
115
  - !ruby/object:Gem::Dependency
116
116
  prerelease: false
117
- name: mysql2
118
117
  type: :development
119
- version_requirements: &id007 !ruby/object:Gem::Requirement
118
+ requirement: &id007 !ruby/object:Gem::Requirement
120
119
  none: false
121
120
  requirements:
122
121
  - - ">="
@@ -127,12 +126,12 @@ dependencies:
127
126
  - 2
128
127
  - 7
129
128
  version: 0.2.7
130
- requirement: *id007
129
+ name: mysql2
130
+ version_requirements: *id007
131
131
  - !ruby/object:Gem::Dependency
132
132
  prerelease: false
133
- name: pg
134
133
  type: :development
135
- version_requirements: &id008 !ruby/object:Gem::Requirement
134
+ requirement: &id008 !ruby/object:Gem::Requirement
136
135
  none: false
137
136
  requirements:
138
137
  - - ">="
@@ -143,12 +142,12 @@ dependencies:
143
142
  - 10
144
143
  - 1
145
144
  version: 0.10.1
146
- requirement: *id008
145
+ name: pg
146
+ version_requirements: *id008
147
147
  - !ruby/object:Gem::Dependency
148
148
  prerelease: false
149
- name: sqlite3-ruby
150
149
  type: :development
151
- version_requirements: &id009 !ruby/object:Gem::Requirement
150
+ requirement: &id009 !ruby/object:Gem::Requirement
152
151
  none: false
153
152
  requirements:
154
153
  - - ">="
@@ -159,12 +158,12 @@ dependencies:
159
158
  - 3
160
159
  - 2
161
160
  version: 1.3.2
162
- requirement: *id009
161
+ name: sqlite3-ruby
162
+ version_requirements: *id009
163
163
  - !ruby/object:Gem::Dependency
164
164
  prerelease: false
165
- name: activerecord
166
165
  type: :runtime
167
- version_requirements: &id010 !ruby/object:Gem::Requirement
166
+ requirement: &id010 !ruby/object:Gem::Requirement
168
167
  none: false
169
168
  requirements:
170
169
  - - ">="
@@ -175,12 +174,12 @@ dependencies:
175
174
  - 3
176
175
  - 0
177
176
  version: 2.3.0
178
- requirement: *id010
177
+ name: activerecord
178
+ version_requirements: *id010
179
179
  - !ruby/object:Gem::Dependency
180
180
  prerelease: false
181
- name: rspec
182
181
  type: :development
183
- version_requirements: &id011 !ruby/object:Gem::Requirement
182
+ requirement: &id011 !ruby/object:Gem::Requirement
184
183
  none: false
185
184
  requirements:
186
185
  - - ~>
@@ -191,7 +190,8 @@ dependencies:
191
190
  - 3
192
191
  - 0
193
192
  version: 2.3.0
194
- requirement: *id011
193
+ name: rspec
194
+ version_requirements: *id011
195
195
  description: allows you to declare database triggers in ruby in your models, and then generate appropriate migrations as they change
196
196
  email: jenseng@gmail.com
197
197
  executables: []
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  requirements: []
258
258
 
259
259
  rubyforge_project:
260
- rubygems_version: 1.4.2
260
+ rubygems_version: 1.6.2
261
261
  signing_key:
262
262
  specification_version: 3
263
263
  summary: easy database triggers for active record