rule-interface 1.0.4 → 1.1.0

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: d7e5858d066a001d5a9301380f5c1ef88e6a2160
4
- data.tar.gz: 327c30867fe439cacb91c8898040c01770b60bc0
3
+ metadata.gz: 4486a31d1eed1958c4afd7b7416d3bf0864429bd
4
+ data.tar.gz: 2740ed94e6353dfe3111f1ce074dac839e14ab8c
5
5
  SHA512:
6
- metadata.gz: c001b63c1dacd5de0daeb5a332079ab7827487ef50f9ad1cb419ad322c3c42acff972658894822659f10af2d631e3f1607315aec6aa3c2b836d01ab3d2ecb7f8
7
- data.tar.gz: 015d6b53a782f8602eb7d91deb880c42395f2d5eb9b72ff20c2fb8ea67d0eeff0089ed88adf050d43e88d6d11711208552f9587f6eb7e9e71f90a8a461b73b8b
6
+ metadata.gz: eac6806abcd51f63f912fb22b3ef31d3d8ad98819808c5b398fd842c8fb39d8c17ac731d87c33d29b3879347c5e56ec68de434bb10b8be004bf7ab0e86262ffa
7
+ data.tar.gz: c28118a82eaa893471e838552d28b4cd54d9c50e1025f8fe2097f1c815eaca5b9d765bad0404a0d37a5623aabdf0e91bb4f132e0c5cb3650a58f1f5ea4eea190
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.1.7
4
+ - 2.4.1
data/Gemfile.lock CHANGED
@@ -1,16 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rule-interface (1.0.4)
5
- activesupport (~> 3)
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 (3.2.22.5)
12
- i18n (~> 0.6, >= 0.6.4)
13
- multi_json (~> 1.0)
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
- multi_json (1.12.2)
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.setup do |config|
50
- config.kiesever_config = {
51
- username: 'blah',
52
- password: 'blah',
53
- hostname: 'http://url',
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
@@ -1,4 +1,5 @@
1
1
  require 'active_support/core_ext/object'
2
+ require 'active_support/json'
2
3
  require 'rest-client'
3
4
 
4
5
  Dir[File.expand_path('rule-interface/*.rb', File.dirname(__FILE__))].each do |file|
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RuleInterface
2
- VERSION = '1.0.4'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
@@ -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', '~> 3'
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
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: 2018-01-04 00:00:00.000000000 Z
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: '3'
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: '3'
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.2.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