close_encounters 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20a98acff8fa4c0e6c76e3ed6395f5717ee7dbf47873c4090dc31d5017e86ef2
4
- data.tar.gz: 96af7f9bc65d6f0ad66932f87d4d6a0f6ed80416b718b787ae73bcf332058943
3
+ metadata.gz: ad2eb14acac02e5a5795ffd9508b0bb7dd19987265e398bcdbb73fe48ff42407
4
+ data.tar.gz: 123e788ca23010056255b21bc9a71a4fd27e4bdd1e340586b22147f8fe10e8cb
5
5
  SHA512:
6
- metadata.gz: 8398c29adc130ca89723d8af7e05d507f6427bcb4b5037c3f587249dbbdcf3773b2821122a81cdc6c57768785bd6fade2ed665bca4d242b0e14468b94ce6c102
7
- data.tar.gz: 35fd7ce3f343d2a9fea20c875f8ef50f4c79c690fc7641d49b8797801a655694a49dc1741c42df4126b0347a0b31e9d89b5c4dd105e68093a631e9a8c874ba6c
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.2] - 2024-07-11
8
+ ## [0.1.3] - 2024-07-11
9
9
 
10
- ### Added
10
+ ## [] -
11
11
 
12
- - Check if the table exits before conditionally setting up the serialize column
12
+ ###
13
+
14
+ - [] -
13
15
 
14
16
  ### Removed
15
17
 
16
- - Appending engine migrations to the main app's migration path
18
+ - Remove serialize connection_info for manual methods
17
19
 
18
- ## [0.1.1] - 2024-07-11
20
+ ## [0.1.2] - 2024-07-11
19
21
 
20
22
  ### Added
21
23
 
22
- - Support for Importmaps
23
- - `reissue` gem for managing releases
24
+ - Check if the table exits before conditionally setting up the serialize column
24
25
 
25
- ### Fixed
26
+ ### Removed
26
27
 
27
- - Alter newest scope to properly return a relation limited to 1 record
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
@@ -1,3 +1,3 @@
1
1
  module CloseEncounters
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: close_encounters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay