hairtrigger 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/lib/hair_trigger/builder.rb +1 -1
- data/lib/hair_trigger/version.rb +2 -2
- metadata +150 -135
data/README.rdoc
CHANGED
@@ -263,6 +263,7 @@ you want to support.
|
|
263
263
|
|
264
264
|
== Version History
|
265
265
|
|
266
|
+
* 0.2.1 Bugfix for adapter-specific warnings, loosen parser dependencies
|
266
267
|
* 0.2.0 Rails 3.1+ support, easier installation, ruby 1.9 fix, travis-ci
|
267
268
|
* 0.1.14 sqlite + ruby1.9 bugfix
|
268
269
|
* 0.1.13 drop_trigger fix
|
data/lib/hair_trigger/builder.rb
CHANGED
@@ -157,7 +157,7 @@ module HairTrigger
|
|
157
157
|
def validate!(direction = :down)
|
158
158
|
@errors.each do |(error, *adapters)|
|
159
159
|
raise GenerationError, error if adapters.include?(adapter_name)
|
160
|
-
$stderr.puts "WARNING: " +
|
160
|
+
$stderr.puts "WARNING: " + error if self.class.show_warnings
|
161
161
|
end
|
162
162
|
if direction != :up
|
163
163
|
@triggers.each{ |t| t.validate!(:down) } if @triggers
|
data/lib/hair_trigger/version.rb
CHANGED
metadata
CHANGED
@@ -1,168 +1,170 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hairtrigger
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Jon Jensen
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2013-01-29 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: activerecord
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '2.3'
|
22
|
-
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
requirements:
|
35
|
-
- - '='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.6
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 5
|
29
|
+
segments:
|
30
|
+
- 2
|
31
|
+
- 3
|
32
|
+
version: "2.3"
|
38
33
|
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: ruby_parser
|
39
37
|
prerelease: false
|
40
|
-
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
requirements:
|
51
|
-
- - '='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.2.5
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 2
|
46
|
+
- 0
|
47
|
+
version: "2.0"
|
54
48
|
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: ruby2ruby
|
55
52
|
prerelease: false
|
56
|
-
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
54
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
55
|
+
requirements:
|
56
|
+
- - ~>
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 11
|
59
|
+
segments:
|
60
|
+
- 1
|
61
|
+
- 2
|
62
|
+
version: "1.2"
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
63
66
|
name: rake
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :development
|
71
67
|
prerelease: false
|
72
|
-
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ~>
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 2.12.0
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
86
77
|
type: :development
|
78
|
+
version_requirements: *id004
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: rspec
|
87
81
|
prerelease: false
|
88
|
-
|
82
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
83
|
none: false
|
90
|
-
requirements:
|
84
|
+
requirements:
|
91
85
|
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 63
|
88
|
+
segments:
|
89
|
+
- 2
|
90
|
+
- 12
|
91
|
+
- 0
|
93
92
|
version: 2.12.0
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: mysql
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ~>
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 2.8.1
|
102
93
|
type: :development
|
94
|
+
version_requirements: *id005
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: mysql
|
103
97
|
prerelease: false
|
104
|
-
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
105
99
|
none: false
|
106
|
-
requirements:
|
100
|
+
requirements:
|
107
101
|
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
hash: 45
|
104
|
+
segments:
|
105
|
+
- 2
|
106
|
+
- 8
|
107
|
+
- 1
|
109
108
|
version: 2.8.1
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
name: mysql2
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.2.7
|
118
109
|
type: :development
|
110
|
+
version_requirements: *id006
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: mysql2
|
119
113
|
prerelease: false
|
120
|
-
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
114
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 25
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
- 2
|
123
|
+
- 7
|
125
124
|
version: 0.2.7
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: pg
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ! '>='
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 0.10.1
|
134
125
|
type: :development
|
126
|
+
version_requirements: *id007
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: pg
|
135
129
|
prerelease: false
|
136
|
-
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- -
|
140
|
-
- !ruby/object:Gem::Version
|
130
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
hash: 53
|
136
|
+
segments:
|
137
|
+
- 0
|
138
|
+
- 10
|
139
|
+
- 1
|
141
140
|
version: 0.10.1
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
-
name: sqlite3
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
147
|
-
- - ! '>='
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: 1.3.6
|
150
141
|
type: :development
|
142
|
+
version_requirements: *id008
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: sqlite3
|
151
145
|
prerelease: false
|
152
|
-
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- -
|
156
|
-
- !ruby/object:Gem::Version
|
146
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
147
|
+
none: false
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
hash: 23
|
152
|
+
segments:
|
153
|
+
- 1
|
154
|
+
- 3
|
155
|
+
- 6
|
157
156
|
version: 1.3.6
|
158
|
-
|
159
|
-
|
157
|
+
type: :development
|
158
|
+
version_requirements: *id009
|
159
|
+
description: allows you to declare database triggers in ruby in your models, and then generate appropriate migrations as they change
|
160
160
|
email: jenseng@gmail.com
|
161
161
|
executables: []
|
162
|
+
|
162
163
|
extensions: []
|
163
|
-
|
164
|
+
|
165
|
+
extra_rdoc_files:
|
164
166
|
- README.rdoc
|
165
|
-
files:
|
167
|
+
files:
|
166
168
|
- LICENSE.txt
|
167
169
|
- Rakefile
|
168
170
|
- README.rdoc
|
@@ -188,29 +190,42 @@ files:
|
|
188
190
|
- spec/models/user.rb
|
189
191
|
- spec/schema_dumper_spec.rb
|
190
192
|
homepage: http://github.com/jenseng/hair_trigger
|
191
|
-
licenses:
|
193
|
+
licenses:
|
192
194
|
- MIT
|
193
195
|
post_install_message:
|
194
196
|
rdoc_options: []
|
195
|
-
|
197
|
+
|
198
|
+
require_paths:
|
196
199
|
- lib
|
197
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
200
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
198
201
|
none: false
|
199
|
-
requirements:
|
200
|
-
- -
|
201
|
-
- !ruby/object:Gem::Version
|
202
|
+
requirements:
|
203
|
+
- - ">="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
hash: 57
|
206
|
+
segments:
|
207
|
+
- 1
|
208
|
+
- 8
|
209
|
+
- 7
|
202
210
|
version: 1.8.7
|
203
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
212
|
none: false
|
205
|
-
requirements:
|
206
|
-
- -
|
207
|
-
- !ruby/object:Gem::Version
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
hash: 17
|
217
|
+
segments:
|
218
|
+
- 1
|
219
|
+
- 3
|
220
|
+
- 5
|
208
221
|
version: 1.3.5
|
209
222
|
requirements: []
|
223
|
+
|
210
224
|
rubyforge_project:
|
211
225
|
rubygems_version: 1.8.24
|
212
226
|
signing_key:
|
213
227
|
specification_version: 3
|
214
228
|
summary: easy database triggers for active record
|
215
229
|
test_files: []
|
230
|
+
|
216
231
|
has_rdoc:
|