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 +4 -4
- data/README.md +2 -2
- data/lib/triggerable/conditions/schedule/schedule_condition.rb +2 -2
- data/lib/triggerable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deafcb6fe578aebcc41754cc791cb1ee73660a27
|
4
|
+
data.tar.gz: 6589f945a4858adfb1be1bd6c127db37804edc79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: {
|
51
|
-
trigger on: :after_create, if: { field: {
|
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
|
data/lib/triggerable/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|