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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c525b3a5e80e73dfe8dfa9d1b6e8cd3f0c9636b
4
- data.tar.gz: 4d02307f955177263f83b9412221e3fa2bcab7da
3
+ metadata.gz: f42f7d04b773f6a0ce1f5acc86e90746f35322b1
4
+ data.tar.gz: d05ccf70ece346e5e73ed4433e11dc678c0bd6e9
5
5
  SHA512:
6
- metadata.gz: 5631a904515f61388c15cdd07dad116796f9dd731a8e20e077251ef9c3432351ae82ee34d4ac8c7dfdbe850f1ef17626393796846dc7033ac8c754f83f392cc6
7
- data.tar.gz: a90b316838dee6303756ded7833f21905f716699633aba8c50f8769af2f84b3d1fee286870fd8d3f116f7dd043ed64fcb797d3199d2df7de3ab3b6cad4987c9f
6
+ metadata.gz: 5d78e2251de79e05fdd17f1194b7f3ac7afd1711bd5cd5a40fd0205f39f4f884ca63839152e45d3a70bc60c50f2210fef4a9a6ff72e736ba05c69f0d78bda570
7
+ data.tar.gz: 970c56031d52a6ad9f355e97dcad81f877ccf806a9bc4a7d6d1a659b5a5e0c04cc9505251be5982a126e625e227859c99217c3ef140678a889915a0a8f806ca2
@@ -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
@@ -1,5 +1,5 @@
1
1
  module HairTrigger
2
- VERSION = "0.2.18"
2
+ VERSION = "0.2.19"
3
3
 
4
4
  def VERSION.<=>(other)
5
5
  split(/\./).map(&:to_i) <=> other.split(/\./).map(&:to_i)
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.18
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-04 00:00:00.000000000 Z
11
+ date: 2017-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord