ff-ruby-server-sdk 1.0.3 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3739ab255fb8e84c6ceb4030b4954e3003363849da66e2a40944f612156aa35a
4
- data.tar.gz: 9114143979ff5ce2d456e3733a729727521459b702f5ac7aaead5415098918b8
3
+ metadata.gz: b96f2c46067899e6d26411471722640dab5b9fc27d3325c938bd06ae81e12972
4
+ data.tar.gz: 8323abe069396213c89144542e301c7865422dec5298be018e80e39a02d0a907
5
5
  SHA512:
6
- metadata.gz: 0d0f6a3ead59558beb66acf23199f32bca8d6ada666093353a25459671816122665d77c49922c751cea1b30e1132f9d75ca89d992a28d88038df0e5da7f303b9
7
- data.tar.gz: 2f3ac65c8253548bb2943ae1091fe6de24e44999fb9a9a08c184dbf7e267d21adc59f06e0de706345bddab5dd381ad872bca6b086c3eb635000d2762fee01bc2
6
+ metadata.gz: d3395923af630e74a29f094e5d61275dd43bf7885a76f1c952d15b9671c2e279609a982969b443b921c0dd2e8bb5eaaae428277f96713e1e7a4dd20cdf1d6fc2
7
+ data.tar.gz: 2c6ce8e325afe95845a8f978b3c39f6c8dc82c49f23d0c1941fbac0653620e20e6e5001db280b36eb2ad0ca94fadd477573b004a554bd22795a07bdf11cf000f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [1.0.4]
2
+
3
+ - [FFM-5478] Fixes bug caching some flags due to encoding
4
+
1
5
  # [1.0.3]
2
6
 
3
7
  - [FFM-4058] Fixes bug in storing target segments
@@ -21,22 +21,6 @@ class DefaultCache < Cache
21
21
 
22
22
  lambda = lambda { |*key| @logger.debug "Retrieved #{key}" }
23
23
 
24
- cache_dir = "./cache"
25
- unless directory_exists?(cache_dir)
26
-
27
- FileUtils.mkdir_p cache_dir
28
- unless directory_exists?(cache_dir)
29
-
30
- raise "Failed to initialize filesystem cache at: " + cache_dir
31
- end
32
- end
33
-
34
- @filesystem = CacheBuilder.with(FileCache)
35
- .set_store(cache_dir)
36
- .set_max(@capacity)
37
- .set_post_get(lambda)
38
- .build
39
-
40
24
  @in_memory = CacheBuilder.with(Cache)
41
25
  .set_max(@capacity)
42
26
  .set_post_get(lambda)
@@ -44,16 +28,13 @@ class DefaultCache < Cache
44
28
  end
45
29
 
46
30
  def verify
47
-
48
- @in_memory != nil && @filesystem != nil && @capacity > 0
31
+ @in_memory != nil && @capacity > 0
49
32
  end
50
33
 
51
34
  def set(key, value)
52
35
 
53
36
  begin
54
37
  @in_memory.put(key, value)
55
- @filesystem.put(key, value)
56
- keys.add(key)
57
38
 
58
39
  rescue ArgumentError => e
59
40
 
@@ -66,15 +47,6 @@ class DefaultCache < Cache
66
47
  def get(key)
67
48
 
68
49
  value = @in_memory.get(key)
69
-
70
- if value == nil
71
-
72
- value = @filesystem.get(key)
73
- if value != nil
74
-
75
- @in_memory.put(key, value)
76
- end
77
- end
78
50
  value
79
51
  end
80
52
 
@@ -90,11 +62,6 @@ class DefaultCache < Cache
90
62
  @in_memory.invalidate(key)
91
63
  end
92
64
 
93
- if @filesystem.exists?(key)
94
-
95
- @filesystem.invalidate(key)
96
- end
97
-
98
65
  @keys.delete(key)
99
66
  end
100
67
 
@@ -68,7 +68,7 @@ class PollingProcessor < Closeable
68
68
 
69
69
  if s != nil
70
70
 
71
- @repository.set_flag(s.identifier, s)
71
+ @repository.set_segment(s.identifier, s)
72
72
  segments.push(s)
73
73
  end
74
74
  }
@@ -5,7 +5,7 @@ module Ff
5
5
  module Server
6
6
  module Sdk
7
7
 
8
- VERSION = "1.0.3"
8
+ VERSION = "1.0.4"
9
9
  end
10
10
  end
11
11
  end
data/scripts/sdk_specs.sh CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/bin/bash
2
2
 
3
3
  export ff_ruby_sdk="ff-ruby-server-sdk"
4
- export ff_ruby_sdk_version="1.0.3"
4
+ export ff_ruby_sdk_version="1.0.4"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ff-ruby-server-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Miloš Vasić, cyr.: Милош Васић'
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-18 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake