hairtrigger 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/VERSION +1 -1
- data/lib/hair_trigger/builder.rb +3 -1
- data/lib/hair_trigger/migration_reader.rb +2 -1
- metadata +4 -4
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.13
|
data/lib/hair_trigger/builder.rb
CHANGED
@@ -195,7 +195,9 @@ module HairTrigger
|
|
195
195
|
def to_ruby(indent = '', always_generated = true)
|
196
196
|
prepare!
|
197
197
|
if options[:drop]
|
198
|
-
"#{indent}drop_trigger(#{prepared_name.inspect}, #{options[:table].inspect}
|
198
|
+
str = "#{indent}drop_trigger(#{prepared_name.inspect}, #{options[:table].inspect}"
|
199
|
+
str << ", :generated => true" if always_generated || options[:generated]
|
200
|
+
str << ")"
|
199
201
|
else
|
200
202
|
if @trigger_group
|
201
203
|
str = "t." + chained_calls_to_ruby + " do\n"
|
@@ -53,7 +53,8 @@ module HairTrigger
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def generate_drop_trigger(*arguments)
|
56
|
-
|
56
|
+
options = arguments[2] || {}
|
57
|
+
::HairTrigger::Builder.new(arguments[0], options.update({:table => arguments[1], :drop => true}))
|
57
58
|
end
|
58
59
|
|
59
60
|
def generator
|
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:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 13
|
10
|
+
version: 0.1.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jon Jensen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-16 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|