triggerable 0.1.13 → 0.1.14

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: 4ae7a6d0914d86abf6eefa16067fcc087d7d006f
4
- data.tar.gz: 5b8690f8b3c063a708f23b03037f787ce7bdf943
3
+ metadata.gz: deafcb6fe578aebcc41754cc791cb1ee73660a27
4
+ data.tar.gz: 6589f945a4858adfb1be1bd6c127db37804edc79
5
5
  SHA512:
6
- metadata.gz: 4133d5659157bad890dd95058b9b7da45749b6f125fb3f90f8395734f551fa1d9fa0fa89092367a47c41186a16f9c7c362312b1d331788695998655142df4853
7
- data.tar.gz: 069cebeb6b6166db4fb38600b6391c7cdacdbef4433d962db8d3755034c015943073e30aa481d922c591c7986d25ff767d8387fa1d3e851d5b6456d0e38f7c66
6
+ metadata.gz: b3043f59f893d3d9596ce505c3300d9f825c2970215382e10bf0cc2f5cf87d3a26e623fefd4478a2942bd1b7275d52d1a74692b010af3edd2f242074209b71ce
7
+ data.tar.gz: 9370eea0b8dc45d03a14df5141ab4ac5cf694f29934b4adccbd2f757420ecf2640a435699892d8da76bf06a9cba26f3f124c96a780ba43facab2d67bdae04800
data/README.md CHANGED
@@ -47,8 +47,8 @@ trigger on: :after_create, if: { field: { in: [1, 2, 3] } }, ...
47
47
  # short form
48
48
  trigger on: :after_create, if: { field: [1, 2, 3] }, ...
49
49
 
50
- trigger on: :after_create, if: { field: { greater_then: 1 } }, ...
51
- trigger on: :after_create, if: { field: { less_then: 1 } }, ...
50
+ trigger on: :after_create, if: { field: { greater_than: 1 } }, ...
51
+ trigger on: :after_create, if: { field: { less_than: 1 } }, ...
52
52
 
53
53
  trigger on: :after_create, if: { field: { exists: true } }, ...
54
54
 
@@ -18,9 +18,9 @@ module Triggerable
18
18
 
19
19
  # automation_time is Time.now rounded by Engine.interval
20
20
  def automation_time
21
- i = Triggerable::Engine.interval
21
+ i = Triggerable::Engine.interval.to_i
22
22
  Time.at((Time.now.to_i / i) * i).utc
23
23
  end
24
24
  end
25
25
  end
26
- end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module Triggerable
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triggerable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitryTsepelev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-11 00:00:00.000000000 Z
11
+ date: 2015-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.4.2
178
+ rubygems_version: 2.4.8
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: Triggerable is a powerful engine for adding a conditional behaviour for ActiveRecord