close_encounters 0.1.2 → 0.1.3
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 +10 -12
- data/app/models/close_encounters/participant_service.rb +12 -9
- data/lib/close_encounters/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad2eb14acac02e5a5795ffd9508b0bb7dd19987265e398bcdbb73fe48ff42407
|
4
|
+
data.tar.gz: 123e788ca23010056255b21bc9a71a4fd27e4bdd1e340586b22147f8fe10e8cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdf6130ae5170dc17f1af37cc16e7405c334b722d0ced759c8012782a1b314a73a518886bbd5f7d9199384097bf8554373379da16cb0a92dea781190095ff028
|
7
|
+
data.tar.gz: a652c2aaa5215275695811da24003816689a19de14407ba053186ef7c007f9825010d5053b00e2cd9421b6399f74f4b44d7255994ee22bab98f57056f360a897
|
data/CHANGELOG.md
CHANGED
@@ -5,26 +5,24 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
7
7
|
|
8
|
-
## [0.1.
|
8
|
+
## [0.1.3] - 2024-07-11
|
9
9
|
|
10
|
-
|
10
|
+
## [] -
|
11
11
|
|
12
|
-
|
12
|
+
###
|
13
|
+
|
14
|
+
- [] -
|
13
15
|
|
14
16
|
### Removed
|
15
17
|
|
16
|
-
-
|
18
|
+
- Remove serialize connection_info for manual methods
|
17
19
|
|
18
|
-
## [0.1.
|
20
|
+
## [0.1.2] - 2024-07-11
|
19
21
|
|
20
22
|
### Added
|
21
23
|
|
22
|
-
-
|
23
|
-
- `reissue` gem for managing releases
|
24
|
+
- Check if the table exits before conditionally setting up the serialize column
|
24
25
|
|
25
|
-
###
|
26
|
+
### Removed
|
26
27
|
|
27
|
-
-
|
28
|
-
- Update ensure_service to not overwrite existing connection_info
|
29
|
-
- Allow specs to run properly locally
|
30
|
-
- Incorrect manifest paths for sprockets
|
28
|
+
- Appending engine migrations to the main app's migration path
|
@@ -6,18 +6,21 @@ module CloseEncounters
|
|
6
6
|
|
7
7
|
validates :name, presence: true
|
8
8
|
|
9
|
-
# if the table exists, then we can check the column type
|
10
|
-
if connection.table_exists?(table_name) && (
|
11
|
-
columns_hash = connection.schema_cache.columns_hash(table_name)
|
12
|
-
)
|
13
|
-
if columns_hash["connection_info"].type == :text
|
14
|
-
serialize :connection_info, coder: JSON
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
9
|
# ONLY encrypt if you have the necessary keys
|
19
10
|
if Rails.application.credentials.close_encounters_encryption_key.present?
|
20
11
|
encrypts :connection_info
|
21
12
|
end
|
13
|
+
|
14
|
+
def connection_info
|
15
|
+
if super.is_a?(String)
|
16
|
+
JSON.parse(super)
|
17
|
+
else
|
18
|
+
super
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def connection_info=(value)
|
23
|
+
super(value.to_json)
|
24
|
+
end
|
22
25
|
end
|
23
26
|
end
|