close_encounters 0.1.1 → 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 +13 -11
- data/app/models/close_encounters/participant_service.rb +12 -4
- data/lib/close_encounters/engine.rb +0 -8
- 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,22 +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
|
+
|
|
12
|
+
###
|
|
11
13
|
|
|
12
|
-
-
|
|
13
|
-
- `reissue` gem for managing releases
|
|
14
|
+
- [] -
|
|
14
15
|
|
|
15
|
-
###
|
|
16
|
+
### Removed
|
|
16
17
|
|
|
17
|
-
-
|
|
18
|
-
- Update ensure_service to not overwrite existing connection_info
|
|
19
|
-
- Allow specs to run properly locally
|
|
20
|
-
- Incorrect manifest paths for sprockets
|
|
18
|
+
- Remove serialize connection_info for manual methods
|
|
21
19
|
|
|
22
|
-
## [0.1.
|
|
20
|
+
## [0.1.2] - 2024-07-11
|
|
23
21
|
|
|
24
22
|
### Added
|
|
25
23
|
|
|
26
|
-
-
|
|
24
|
+
- Check if the table exits before conditionally setting up the serialize column
|
|
25
|
+
|
|
26
|
+
### Removed
|
|
27
|
+
|
|
28
|
+
- Appending engine migrations to the main app's migration path
|
|
@@ -6,13 +6,21 @@ module CloseEncounters
|
|
|
6
6
|
|
|
7
7
|
validates :name, presence: true
|
|
8
8
|
|
|
9
|
-
if columns_hash["connection_info"].type == :text
|
|
10
|
-
serialize :connection_info, coder: JSON
|
|
11
|
-
end
|
|
12
|
-
|
|
13
9
|
# ONLY encrypt if you have the necessary keys
|
|
14
10
|
if Rails.application.credentials.close_encounters_encryption_key.present?
|
|
15
11
|
encrypts :connection_info
|
|
16
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
|
|
17
25
|
end
|
|
18
26
|
end
|
|
@@ -17,13 +17,5 @@ module CloseEncounters
|
|
|
17
17
|
app.config.assets.precompile += %w[close_encounters_manifest.js]
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
initializer :append_migrations do |app|
|
|
22
|
-
unless app.root.to_s.match root.to_s
|
|
23
|
-
config.paths["db/migrate"].expanded.each do |expanded_path|
|
|
24
|
-
app.config.paths["db/migrate"] << expanded_path
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
20
|
end
|
|
29
21
|
end
|