hairtrigger 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +2 -1
  2. data/VERSION +1 -1
  3. data/lib/hair_trigger/adapter.rb +2 -2
  4. metadata +38 -38
@@ -235,6 +235,7 @@ you want to support.
235
235
 
236
236
  == Version History
237
237
 
238
+ * 0.1.9 mysql fixes for inferred root@localhost
238
239
  * 0.1.7 Rails 3 support, fixed a couple manual create_trigger bugs
239
240
  * 0.1.6 rake db:schema:dump support, respect non-timestamped migrations
240
241
  * 0.1.4 Compatibility tracking, fixed Postgres return bug, ensure last action
@@ -246,4 +247,4 @@ you want to support.
246
247
 
247
248
  == Copyright
248
249
 
249
- Copyright (c) 2011 Jon Jensen. See LICENSE.txt for further details.
250
+ Copyright (c) 2011 Jon Jensen. See LICENSE.txt for further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
@@ -24,8 +24,8 @@ module HairTrigger
24
24
  when :mysql
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
- triggers[name] = <<-SQL
28
- CREATE #{definer != "#{@config[:username] || 'root'}@#{@config[:host]}" ? "DEFINER = #{definer} " : ""}TRIGGER #{name} #{timing} #{event} ON #{table}
27
+ triggers[name.strip] = <<-SQL
28
+ CREATE #{definer != "#{@config[:username] || 'root'}@#{@config[:host] || 'localhost'}" ? "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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jon Jensen
@@ -15,13 +15,14 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-19 00:00:00 -06:00
18
+ date: 2011-04-20 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
23
24
  type: :runtime
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
28
  - - ">="
@@ -32,12 +33,12 @@ dependencies:
32
33
  - 3
33
34
  - 0
34
35
  version: 2.3.0
35
- name: activerecord
36
- version_requirements: *id001
36
+ requirement: *id001
37
37
  - !ruby/object:Gem::Dependency
38
38
  prerelease: false
39
+ name: rspec
39
40
  type: :development
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
42
  none: false
42
43
  requirements:
43
44
  - - ~>
@@ -48,12 +49,12 @@ dependencies:
48
49
  - 3
49
50
  - 0
50
51
  version: 2.3.0
51
- name: rspec
52
- version_requirements: *id002
52
+ requirement: *id002
53
53
  - !ruby/object:Gem::Dependency
54
54
  prerelease: false
55
+ name: bundler
55
56
  type: :development
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
+ version_requirements: &id003 !ruby/object:Gem::Requirement
57
58
  none: false
58
59
  requirements:
59
60
  - - ~>
@@ -64,12 +65,12 @@ dependencies:
64
65
  - 0
65
66
  - 0
66
67
  version: 1.0.0
67
- name: bundler
68
- version_requirements: *id003
68
+ requirement: *id003
69
69
  - !ruby/object:Gem::Dependency
70
70
  prerelease: false
71
+ name: jeweler
71
72
  type: :development
72
- requirement: &id004 !ruby/object:Gem::Requirement
73
+ version_requirements: &id004 !ruby/object:Gem::Requirement
73
74
  none: false
74
75
  requirements:
75
76
  - - ~>
@@ -80,12 +81,12 @@ dependencies:
80
81
  - 5
81
82
  - 2
82
83
  version: 1.5.2
83
- name: jeweler
84
- version_requirements: *id004
84
+ requirement: *id004
85
85
  - !ruby/object:Gem::Dependency
86
86
  prerelease: false
87
+ name: rcov
87
88
  type: :development
88
- requirement: &id005 !ruby/object:Gem::Requirement
89
+ version_requirements: &id005 !ruby/object:Gem::Requirement
89
90
  none: false
90
91
  requirements:
91
92
  - - ">="
@@ -94,12 +95,12 @@ dependencies:
94
95
  segments:
95
96
  - 0
96
97
  version: "0"
97
- name: rcov
98
- version_requirements: *id005
98
+ requirement: *id005
99
99
  - !ruby/object:Gem::Dependency
100
100
  prerelease: false
101
+ name: mysql
101
102
  type: :development
102
- requirement: &id006 !ruby/object:Gem::Requirement
103
+ version_requirements: &id006 !ruby/object:Gem::Requirement
103
104
  none: false
104
105
  requirements:
105
106
  - - ">="
@@ -110,12 +111,12 @@ dependencies:
110
111
  - 8
111
112
  - 1
112
113
  version: 2.8.1
113
- name: mysql
114
- version_requirements: *id006
114
+ requirement: *id006
115
115
  - !ruby/object:Gem::Dependency
116
116
  prerelease: false
117
+ name: mysql2
117
118
  type: :development
118
- requirement: &id007 !ruby/object:Gem::Requirement
119
+ version_requirements: &id007 !ruby/object:Gem::Requirement
119
120
  none: false
120
121
  requirements:
121
122
  - - ">="
@@ -126,12 +127,12 @@ dependencies:
126
127
  - 2
127
128
  - 7
128
129
  version: 0.2.7
129
- name: mysql2
130
- version_requirements: *id007
130
+ requirement: *id007
131
131
  - !ruby/object:Gem::Dependency
132
132
  prerelease: false
133
+ name: pg
133
134
  type: :development
134
- requirement: &id008 !ruby/object:Gem::Requirement
135
+ version_requirements: &id008 !ruby/object:Gem::Requirement
135
136
  none: false
136
137
  requirements:
137
138
  - - ">="
@@ -142,12 +143,12 @@ dependencies:
142
143
  - 10
143
144
  - 1
144
145
  version: 0.10.1
145
- name: pg
146
- version_requirements: *id008
146
+ requirement: *id008
147
147
  - !ruby/object:Gem::Dependency
148
148
  prerelease: false
149
+ name: sqlite3-ruby
149
150
  type: :development
150
- requirement: &id009 !ruby/object:Gem::Requirement
151
+ version_requirements: &id009 !ruby/object:Gem::Requirement
151
152
  none: false
152
153
  requirements:
153
154
  - - ">="
@@ -158,12 +159,12 @@ dependencies:
158
159
  - 3
159
160
  - 2
160
161
  version: 1.3.2
161
- name: sqlite3-ruby
162
- version_requirements: *id009
162
+ requirement: *id009
163
163
  - !ruby/object:Gem::Dependency
164
164
  prerelease: false
165
+ name: activerecord
165
166
  type: :runtime
166
- requirement: &id010 !ruby/object:Gem::Requirement
167
+ version_requirements: &id010 !ruby/object:Gem::Requirement
167
168
  none: false
168
169
  requirements:
169
170
  - - ">="
@@ -174,12 +175,12 @@ dependencies:
174
175
  - 3
175
176
  - 0
176
177
  version: 2.3.0
177
- name: activerecord
178
- version_requirements: *id010
178
+ requirement: *id010
179
179
  - !ruby/object:Gem::Dependency
180
180
  prerelease: false
181
+ name: rspec
181
182
  type: :development
182
- requirement: &id011 !ruby/object:Gem::Requirement
183
+ version_requirements: &id011 !ruby/object:Gem::Requirement
183
184
  none: false
184
185
  requirements:
185
186
  - - ~>
@@ -190,8 +191,7 @@ dependencies:
190
191
  - 3
191
192
  - 0
192
193
  version: 2.3.0
193
- name: rspec
194
- version_requirements: *id011
194
+ requirement: *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.6.2
260
+ rubygems_version: 1.4.2
261
261
  signing_key:
262
262
  specification_version: 3
263
263
  summary: easy database triggers for active record