foobara-rails-command-connector 0.0.5 → 0.0.6
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/CHANGELOG.md +4 -0
- data/lib/foobara/rails/controller.rb +16 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95033861b6135195809a66eeba02b343ff62a2bab5b5f4d2dfcb3ef5b779f3f3
|
4
|
+
data.tar.gz: b275f6963cc880e9eda74065be92f8da4f470c9d6cb05c69487e4467c5651021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eca975ad4409c1694f07e512757226e851e7f20086fb64bcd4640fcedb50e453ebc3cd4c301c1369cc58b820a6ab6ad078f0a1dcf350c28ffe84fe0dfc031c75
|
7
|
+
data.tar.gz: '08c45dfbd468bd16715d5bdd4590621bd27af6c02d23622860a1357552f3ebbc2c47ddb00575f1e9cd4b300ed4c8fe418b4e47f8f86a3da7963ca625464ca3ee'
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
class Foobara::RailsController < ApplicationController
|
2
|
+
include ActionController::Cookies
|
3
|
+
|
2
4
|
before_action :run_and_set_foobara_response
|
3
5
|
|
4
6
|
def run
|
@@ -27,6 +29,20 @@ class Foobara::RailsController < ApplicationController
|
|
27
29
|
response.set_header(key, value)
|
28
30
|
end
|
29
31
|
|
32
|
+
foobara_response.cookies&.each do |cookie|
|
33
|
+
cookie_hash = { value: cookie.value }
|
34
|
+
|
35
|
+
cookie_hash[:path] = cookie.path if cookie.path
|
36
|
+
cookie_hash[:httponly] = cookie.httponly if cookie.httponly
|
37
|
+
cookie_hash[:secure] = cookie.secure if cookie.secure
|
38
|
+
cookie_hash[:same_site] = cookie.same_site if cookie.same_site
|
39
|
+
cookie_hash[:domain] = cookie.domain if cookie.domain
|
40
|
+
cookie_hash[:expires] = cookie.expires if cookie.expires
|
41
|
+
cookie_hash[:max_age] = cookie.max_age if cookie.max_age
|
42
|
+
|
43
|
+
cookies[cookie.name] = cookie_hash
|
44
|
+
end
|
45
|
+
|
30
46
|
format = if response.content_type == "application/json"
|
31
47
|
:json
|
32
48
|
else
|
metadata
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-rails-command-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-29 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: foobara-rack-connector
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version:
|
18
|
+
version: 0.0.1
|
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:
|
25
|
+
version: 0.0.1
|
26
26
|
email:
|
27
27
|
- azimux@gmail.com
|
28
28
|
executables: []
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
requirements: []
|
63
|
-
rubygems_version: 3.6.
|
63
|
+
rubygems_version: 3.6.6
|
64
64
|
specification_version: 4
|
65
65
|
summary: Exposes Foobara commands through Rails router
|
66
66
|
test_files: []
|