hairtrigger 0.2.18 → 0.2.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hair_trigger/builder.rb +3 -1
- data/lib/hair_trigger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f42f7d04b773f6a0ce1f5acc86e90746f35322b1
|
4
|
+
data.tar.gz: d05ccf70ece346e5e73ed4433e11dc678c0bd6e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d78e2251de79e05fdd17f1194b7f3ac7afd1711bd5cd5a40fd0205f39f4f884ca63839152e45d3a70bc60c50f2210fef4a9a6ff72e736ba05c69f0d78bda570
|
7
|
+
data.tar.gz: 970c56031d52a6ad9f355e97dcad81f877ccf806a9bc4a7d6d1a659b5a5e0c04cc9505251be5982a126e625e227859c99217c3ef140678a889915a0a8f806ca2
|
data/lib/hair_trigger/builder.rb
CHANGED
@@ -140,7 +140,7 @@ module HairTrigger
|
|
140
140
|
def #{method}(*args)
|
141
141
|
@chained_calls << :#{method}
|
142
142
|
if @triggers || @trigger_group
|
143
|
-
@errors << ["mysql doesn't support #{method} within a trigger group", :mysql] unless [:name, :where, :all].include?(:#{method})
|
143
|
+
@errors << ["mysql doesn't support #{method} within a trigger group", :mysql] unless [:name, :where, :all, :of].include?(:#{method})
|
144
144
|
end
|
145
145
|
set_#{method}(*args, &(block_given? ? Proc.new : nil))
|
146
146
|
end
|
@@ -310,6 +310,8 @@ module HairTrigger
|
|
310
310
|
"for_each(#{options[:for_each].downcase.to_sym.inspect})"
|
311
311
|
when :declare
|
312
312
|
"declare(#{options[:declarations].inspect})"
|
313
|
+
when :all
|
314
|
+
'all'
|
313
315
|
else
|
314
316
|
"#{c}(#{options[c].inspect})"
|
315
317
|
end
|
data/lib/hair_trigger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hairtrigger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Jensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|