fino-redis 1.0.2 → 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: fa90dbe9bc405aa74f910d3c0bd232e4cd1016b727f9f378a6112e6ab8192ddb
4
- data.tar.gz: 17549359108670bbb30b97ef7ebb9dba5337de3ae0470de0cfe2f156d7ece031
3
+ metadata.gz: c4361d70cda7320052365282a5cdb3c9572f2dfb0b796893325936bb487e3310
4
+ data.tar.gz: a616dfc24ee79ff28e7e0ba8d35bc8c55a69e536ddafc282b63710451b04c8e9
5
5
  SHA512:
6
- metadata.gz: 23c7d2acad7fe27cef43a865c59bb2d4d842a491e4e13d5c8e2663d8658c8f6005c96cb7ffdb81c0951441f383c1ae781791bb9604ca1b49d0a976541678cdcb
7
- data.tar.gz: 5c51e20a4909109d408126ad4a3c15c4ff9fbd834ab6174f44f5bbbe63f2484cdd2e992d4c20123924bcf51727755c0157b3afdffd99f4be92d0f894135acc3c
6
+ metadata.gz: 1b8e5295616183cdce2f9c5da2a160ab34b6f4b348139929020079b419d9b29ce999ae608fd1f281e0d2f9fc666b4a550a882ee987c98021fdeb7e753a2a95d0
7
+ data.tar.gz: 6036300b2cb5da1d45b322850bd4cc72eaa8492fc08afd91a4e7269f7ab779ea98b2f8957acb83fb4a762b0ea67b1d5266e2b3eb97d02a80ce30d38a38533d46
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Egor Iskrenkov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -51,24 +51,26 @@ end
51
51
  ### Work with settings
52
52
 
53
53
  ```ruby
54
- Fino.value(:model, :openai) #=> "gpt-4o"
55
- Fino.value(:temperature, :openai) #=> 0.7
54
+ Fino.value(:model, at: :openai) #=> "gpt-4o"
55
+ Fino.value(:temperature, at: :openai) #=> 0.7
56
56
 
57
- Fino.set("gpt-5", :model, :openai)
58
- Fino.value(:model, :openai) #=> "gpt-5"
57
+ Fino.values(:model, :temperature, at: :openai) #=> ["gpt-4", 0.7]
58
+
59
+ Fino.set("gpt-5", :model, at: :openai)
60
+ Fino.value(:model, at: :openai) #=> "gpt-5"
59
61
  ```
60
62
 
61
63
  ### Manage settings via UI
62
64
 
63
65
  ```ruby
64
- gem "fino-ui"
66
+ gem "fino-rails"
65
67
  ```
66
68
 
67
- Mount Fino UI in your `config/routes.rb`:
69
+ Mount Fino Rails engine in your `config/routes.rb`:
68
70
 
69
71
  ```ruby
70
72
  Rails.application.routes.draw do
71
- mount Fino::UI::Engine, at: "/fino"
73
+ mount Fino::Rails::Engine, at: "/fino"
72
74
  end
73
75
  ```
74
76
 
@@ -28,7 +28,7 @@ class Fino::Redis::Adapter
28
28
  end
29
29
 
30
30
  def fetch_value_from(raw_adapter_data)
31
- raw_adapter_data.key?(VALUE_KEY) ? raw_adapter_data.delete(VALUE_KEY) : Fino::Setting::UNSET_VALUE
31
+ raw_adapter_data.key?(VALUE_KEY) ? raw_adapter_data.delete(VALUE_KEY) : Fino::EMPTINESS
32
32
  end
33
33
 
34
34
  private
data/lib/fino/version.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fino
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.4"
5
+ REQUIRED_RUBY_VERSION = ">= 3.0.0"
5
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fino-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egor Iskrenkov
@@ -15,26 +15,26 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 1.0.2
18
+ version: 1.0.4
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 1.0.2
25
+ version: 1.0.4
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: redis
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - ">="
30
+ - - "~>"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '5.0'
40
40
  email:
@@ -43,14 +43,16 @@ executables: []
43
43
  extensions: []
44
44
  extra_rdoc_files: []
45
45
  files:
46
+ - LICENSE
46
47
  - README.md
47
48
  - lib/fino/redis/adapter.rb
48
49
  - lib/fino/version.rb
49
50
  homepage: https://github.com/eiskrenkov/fino
50
- licenses: []
51
+ licenses:
52
+ - MIT
51
53
  metadata:
52
- homepage_uri: https://github.com/eiskrenkov/fino
53
54
  source_code_uri: https://github.com/eiskrenkov/fino
55
+ bug_tracker_uri: https://github.com/eiskrenkov/fino/issues
54
56
  rubygems_mfa_required: 'true'
55
57
  rdoc_options: []
56
58
  require_paths: