istox 0.1.148 → 0.1.149.pre.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,7 @@ module Istox
48
48
  end
49
49
  end
50
50
 
51
- def get(key:, field:)
51
+ def get(key:, field:, auto_convert_openstruct: true)
52
52
  raise 'You must provide a callback block if cache doesnt exist' unless block_given?
53
53
 
54
54
  key = key.to_s
@@ -60,7 +60,7 @@ module Istox
60
60
 
61
61
  if result.present?
62
62
  begin
63
- return ::Istox::CommonHelper.to_open_struct(JSON.parse(result))
63
+ return auto_convert_openstruct ? ::Istox::CommonHelper.to_open_struct(JSON.parse(result)) : result
64
64
  rescue StandardError => e
65
65
  log.warn('Unable to process result from cache store, is it not a json?')
66
66
  log.warn(e)
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.148'.freeze
2
+ VERSION = '0.1.149-1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.148
4
+ version: 0.1.149.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-26 00:00:00.000000000 Z
11
+ date: 2020-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -471,11 +471,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
471
471
  version: '0'
472
472
  required_rubygems_version: !ruby/object:Gem::Requirement
473
473
  requirements:
474
- - - ">="
474
+ - - ">"
475
475
  - !ruby/object:Gem::Version
476
- version: '0'
476
+ version: 1.3.1
477
477
  requirements: []
478
- rubygems_version: 3.0.8
478
+ rubygems_version: 3.0.3
479
479
  signing_key:
480
480
  specification_version: 4
481
481
  summary: istox backend shared gem