forked from JimRoepcke/Rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rules.podspec
56 lines (44 loc) · 1.9 KB
/
Rules.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Be sure to run `pod lib lint Rules.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'Rules'
s.version = '0.2.0'
s.summary = 'A forward-chaining inference engine rule engine'
s.description = <<-DESC
Rules provides a simple forward-chaining inference rule engine that is configurable at runtime.
When you provide a set of _known facts_, and a set of _rules_, _inferred facts_
can be determined.
For example:
- _known fact_: the sky is blue
- _rule_: if the sky is blue, then the weather is sunny
- _inferrable fact_: the weather is sunny
You you make much more complicated rules than this, which are
based on more facts, even based on inferred facts.
For example:
- _known fact_: the sky is blue
- _known fact_: the season is summer
- _rule_: if the sky is blue, then the weather is sunny
- _rule_: if true, the beach is empty (this is a fallback rule)
- _rule_: if the weather is sunny and the season is summer, then the beach is full
- _inferred fact_: the beach is full
- _known fact_: the season is autumn
- _inferred fact_: the beach is empty
Rules can be specified using a simple textual format, and can be decoded from JSON
to load into a `Brain`.
DESC
s.homepage = 'https://github.com/JimRoepcke/Rules'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Jim Roepcke' => '[email protected]' }
s.source = { :git => 'https://github.com/JimRoepcke/Rules.git', :tag => s.version.to_s }
s.ios.deployment_target = '9.0'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '2.0'
s.osx.deployment_target = '10.12'
s.swift_version = '5.0'
s.source_files = 'Rules/Sources/**/*'
end