rule-interface 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile.lock +11 -6
- data/README.md +5 -7
- data/lib/rule-interface.rb +1 -0
- data/lib/rule-interface/configuartion.rb +0 -6
- data/lib/rule-interface/version.rb +1 -1
- data/rule-interface.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4486a31d1eed1958c4afd7b7416d3bf0864429bd
|
4
|
+
data.tar.gz: 2740ed94e6353dfe3111f1ce074dac839e14ab8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eac6806abcd51f63f912fb22b3ef31d3d8ad98819808c5b398fd842c8fb39d8c17ac731d87c33d29b3879347c5e56ec68de434bb10b8be004bf7ab0e86262ffa
|
7
|
+
data.tar.gz: c28118a82eaa893471e838552d28b4cd54d9c50e1025f8fe2097f1c815eaca5b9d765bad0404a0d37a5623aabdf0e91bb4f132e0c5cb3650a58f1f5ea4eea190
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rule-interface (1.0
|
5
|
-
activesupport (~>
|
4
|
+
rule-interface (1.1.0)
|
5
|
+
activesupport (~> 5)
|
6
6
|
rest-client (~> 1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (
|
12
|
-
|
13
|
-
|
11
|
+
activesupport (5.1.4)
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
i18n (~> 0.7)
|
14
|
+
minitest (~> 5.1)
|
15
|
+
tzinfo (~> 1.1)
|
14
16
|
addressable (2.5.2)
|
15
17
|
public_suffix (>= 2.0.2, < 4.0)
|
16
18
|
byebug (9.0.6)
|
@@ -26,7 +28,7 @@ GEM
|
|
26
28
|
i18n (0.9.1)
|
27
29
|
concurrent-ruby (~> 1.0)
|
28
30
|
mime-types (2.99.3)
|
29
|
-
|
31
|
+
minitest (5.10.3)
|
30
32
|
netrc (0.11.0)
|
31
33
|
public_suffix (3.0.1)
|
32
34
|
rake (10.5.0)
|
@@ -48,6 +50,9 @@ GEM
|
|
48
50
|
rspec-support (~> 3.7.0)
|
49
51
|
rspec-support (3.7.0)
|
50
52
|
safe_yaml (1.0.4)
|
53
|
+
thread_safe (0.3.6)
|
54
|
+
tzinfo (1.2.4)
|
55
|
+
thread_safe (~> 0.1)
|
51
56
|
unf (0.1.4)
|
52
57
|
unf_ext
|
53
58
|
unf_ext (0.0.7.4)
|
data/README.md
CHANGED
@@ -46,13 +46,11 @@ ENV variable can be used to configure KIE server details
|
|
46
46
|
You can also configure the KIE server details programmatically
|
47
47
|
|
48
48
|
```ruby
|
49
|
-
RuleInterface::Configuration
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
}
|
55
|
-
end
|
49
|
+
RuleInterface::Configuration::kiesever_config = {
|
50
|
+
username: 'blah',
|
51
|
+
password: 'blah',
|
52
|
+
hostname: 'http://url',
|
53
|
+
}
|
56
54
|
```
|
57
55
|
|
58
56
|
All the attribute specified in the above configuration is optional. If specified, it will overwrite ENV configuration for that attribute
|
data/lib/rule-interface.rb
CHANGED
@@ -3,10 +3,6 @@ module RuleInterface
|
|
3
3
|
|
4
4
|
class << self
|
5
5
|
|
6
|
-
def setup *args, &block
|
7
|
-
@config_block = block
|
8
|
-
end
|
9
|
-
|
10
6
|
# eg: {
|
11
7
|
# username: 'blah',
|
12
8
|
# password: 'blah',
|
@@ -20,8 +16,6 @@ module RuleInterface
|
|
20
16
|
def kiesever_config
|
21
17
|
return @kiesever_config if @cached
|
22
18
|
|
23
|
-
@config_block.call(self) if @config_block
|
24
|
-
|
25
19
|
@kiesever_config ||= {}
|
26
20
|
|
27
21
|
@kiesever_config[:username] ||= ENV['KIE_SERVER_USERNAME'].presence
|
data/rule-interface.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.required_ruby_version = '>= 1.9.8'
|
20
20
|
s.require_paths = ['lib']
|
21
21
|
|
22
|
-
s.add_dependency 'activesupport', '~>
|
22
|
+
s.add_dependency 'activesupport', '~> 5'
|
23
23
|
s.add_dependency 'rest-client', '~> 1'
|
24
24
|
|
25
25
|
s.add_development_dependency 'webmock',' ~> 3'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rule-interface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ranveer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rest-client
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
159
|
+
rubygems_version: 2.6.11
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: ruby interface for drool rule engine
|