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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d25208cd9077c5ee5664ca4751be09d336af8655ea251f36724075da31fc5b88
4
- data.tar.gz: 2589b53abede0624c4fb55a48bb7cd5e954940d6f984cd0c5971906cbfe79a24
3
+ metadata.gz: ad2eb14acac02e5a5795ffd9508b0bb7dd19987265e398bcdbb73fe48ff42407
4
+ data.tar.gz: 123e788ca23010056255b21bc9a71a4fd27e4bdd1e340586b22147f8fe10e8cb
5
5
  SHA512:
6
- metadata.gz: de2552af2d64096df4613627a64b92d07178217366b9af8c5730562c8059142308b5dfeced444c889ac66a789b152bfebecd19c1c6038e06fa879a9baacae904
7
- data.tar.gz: 588ba90d0f89e0c1a8bafbadadb7a5da6398b728fa0a3db1e044a982f3ea2fe19743f718028241a6dbac012966c4b0effd541936a0b1346ec849311a57f05ab5
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.1] - 2024-07-11
8
+ ## [0.1.3] - 2024-07-11
9
9
 
10
- ### Added
10
+ ## [] -
11
+
12
+ ###
11
13
 
12
- - Support for Importmaps
13
- - `reissue` gem for managing releases
14
+ - [] -
14
15
 
15
- ### Fixed
16
+ ### Removed
16
17
 
17
- - Alter newest scope to properly return a relation limited to 1 record
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.0] - 2024-05-08
20
+ ## [0.1.2] - 2024-07-11
23
21
 
24
22
  ### Added
25
23
 
26
- - Initial implimentation
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
@@ -1,3 +1,3 @@
1
1
  module CloseEncounters
2
- VERSION = "0.1.1"
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay