ssm_config 1.3.0 → 1.3.2
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/Gemfile +2 -0
- data/lib/ssm_config/migration_helper.rb +6 -2
- data/lib/ssm_config/ssm_storage/db.rb +1 -1
- data/lib/ssm_config.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39ea172161ade231a6b0f618af1067baa1febca0bd2cc7380b2fd37578f233ea
|
4
|
+
data.tar.gz: ae8a2dd653b786e43de46199d4f64a70d93ca3d886b6f1f4913deb286d56fc9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a5df7293d75fc6abec8b147a2c3beaefe693069d1f946f33247eb38f9488d9ca32ad4946076bb1560957c992b30f88ae8f7cb497e32dcf4e905cd64bcdc94dc
|
7
|
+
data.tar.gz: ce17d711c295fad45c24a23ec5154ba4300c2e38dff188759ec91b2d84e823f66da3c18c444d451daaf170b57faeed05407eddc4dab0fd7c8c316e1c5279fbea
|
data/Gemfile
CHANGED
@@ -49,10 +49,14 @@ module SsmConfig
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
def erb?(value)
|
53
|
+
(value[0..2] == '<%=') && (value[-2..-1] == '%>')
|
54
|
+
end
|
55
|
+
|
52
56
|
def determine_class(value)
|
53
57
|
return 'boolean' if (value == false) || (value == true)
|
54
|
-
return
|
55
|
-
value
|
58
|
+
return value.class unless value.is_a? String
|
59
|
+
erb?(value) ? 'erb' : 'string'
|
56
60
|
end
|
57
61
|
|
58
62
|
def file_path
|
@@ -11,7 +11,7 @@ module SsmConfig
|
|
11
11
|
def table_exists?
|
12
12
|
return active_record_model_exists? if active_record_exists? && constant_exists?
|
13
13
|
false
|
14
|
-
rescue ActiveRecord::NoDatabaseError
|
14
|
+
rescue ActiveRecord::NoDatabaseError, Mysql2::Error::ConnectionError
|
15
15
|
return false
|
16
16
|
end
|
17
17
|
|
data/lib/ssm_config.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssm_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Santiago Herrera
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|