close_encounters 0.1.1 → 0.1.2

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: d25208cd9077c5ee5664ca4751be09d336af8655ea251f36724075da31fc5b88
4
- data.tar.gz: 2589b53abede0624c4fb55a48bb7cd5e954940d6f984cd0c5971906cbfe79a24
3
+ metadata.gz: 20a98acff8fa4c0e6c76e3ed6395f5717ee7dbf47873c4090dc31d5017e86ef2
4
+ data.tar.gz: 96af7f9bc65d6f0ad66932f87d4d6a0f6ed80416b718b787ae73bcf332058943
5
5
  SHA512:
6
- metadata.gz: de2552af2d64096df4613627a64b92d07178217366b9af8c5730562c8059142308b5dfeced444c889ac66a789b152bfebecd19c1c6038e06fa879a9baacae904
7
- data.tar.gz: 588ba90d0f89e0c1a8bafbadadb7a5da6398b728fa0a3db1e044a982f3ea2fe19743f718028241a6dbac012966c4b0effd541936a0b1346ec849311a57f05ab5
6
+ metadata.gz: 8398c29adc130ca89723d8af7e05d507f6427bcb4b5037c3f587249dbbdcf3773b2821122a81cdc6c57768785bd6fade2ed665bca4d242b0e14468b94ce6c102
7
+ data.tar.gz: 35fd7ce3f343d2a9fea20c875f8ef50f4c79c690fc7641d49b8797801a655694a49dc1741c42df4126b0347a0b31e9d89b5c4dd105e68093a631e9a8c874ba6c
data/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ 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
9
+
10
+ ### Added
11
+
12
+ - Check if the table exits before conditionally setting up the serialize column
13
+
14
+ ### Removed
15
+
16
+ - Appending engine migrations to the main app's migration path
17
+
8
18
  ## [0.1.1] - 2024-07-11
9
19
 
10
20
  ### Added
@@ -18,9 +28,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
18
28
  - Update ensure_service to not overwrite existing connection_info
19
29
  - Allow specs to run properly locally
20
30
  - Incorrect manifest paths for sprockets
21
-
22
- ## [0.1.0] - 2024-05-08
23
-
24
- ### Added
25
-
26
- - Initial implimentation
@@ -6,8 +6,13 @@ 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
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
11
16
  end
12
17
 
13
18
  # ONLY encrypt if you have the necessary keys
@@ -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.2"
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay