ts_schema 1.0.0 → 1.0.1

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: 8795cf28b78a0558a5a8d5d602c340007625f8bfe1810cb34cb5bfdf6552f8b5
4
- data.tar.gz: 14bd99114036a2115576d83325fe57c313d3f29a107d0b68eb93856893f4ef3e
3
+ metadata.gz: c5da9a3de42a0dc8c267f6edbb8e73bca254637bd2e3cbec14b9f81d12655e31
4
+ data.tar.gz: e42688b035ed29c846224774996754808c53d9f7f9c752eec2be285bb24896f4
5
5
  SHA512:
6
- metadata.gz: 34e2a5851c811791eaabdcd8faff440d50aa185f226177082820d4cfacfc549eca74e0d5397fc64931b6ffe5284665bb3ac1513bfba0679ed1ba42ece97ba161
7
- data.tar.gz: 4452a9c7c21247d714abcdf08e5c9711413b76bf48e559672f503156ec3edc9cefedc471637802524c2030c1de456fa464fd480004998865981582c93b885cf7
6
+ metadata.gz: a11ea20ef37b2f62bfdda467fe8f73cf33df0a0cd193f6fa10a19b49e819787231eea63027e16b9de349d0a88b770e545284298e66ad91c27a1eae68abd1179e
7
+ data.tar.gz: 2e8c0b4697f9c31a5c07b339d99faa13d2c8e1e349432748c186d55a9918d3d96857b6630cacdde8e2a77b6c006ed89d92f827a18a9175cc8f1145b67abe4b11
@@ -115,6 +115,12 @@ module TsSchema
115
115
  ts_type: "#{association.class_name.constantize.model_name.param_key.camelize}[]"
116
116
  }
117
117
  end
118
+ rescue StandardError => e
119
+ print "#{model} has an incorrect association: #{association.name}\n"
120
+ print "Association details:\n"
121
+ print JSON.parse(association.to_json)
122
+ print "\n\n"
123
+ print e
118
124
  end
119
125
  end
120
126
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TsSchema
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ts_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avram Walden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-18 00:00:00.000000000 Z
11
+ date: 2023-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails