ntq_tools 0.5.0 → 0.5.1

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: 111455a759e2c13adadb7e7aebb4a563fad2dbe264800e68e9b7761b30e1b3b2
4
- data.tar.gz: edf585820c221424e5681a028622fed413b0824ce87752541bb5d39ed4d86ad5
3
+ metadata.gz: e852b85c98ac5a88f421e947d452f27c454dd0c6642b90513d312ac0f79bc7b9
4
+ data.tar.gz: eb9e04c44a0ed9b046b119eb1a4e6dde0ef57887c7d077687dfb458b5d2300f3
5
5
  SHA512:
6
- metadata.gz: 93503e87fcbdf84bb7e29f98754a281ed8685d4f84337035036affe91caa43978713e37d4f9a5feec8dd0614be1a417ef17df6a0b1cc9f80cd966db9ffb775a8
7
- data.tar.gz: 2fa8e0c4916d1f95aa1921e99c37c6064a6ec28bbe35301b801c13f6de34bf1562277de01c5f6a6c351cbb4105e39929e03b4bad06aef02fa314b1689150d658
6
+ metadata.gz: 159a98d24dcf9298112f3db9c8e2d399a0a7ebc68e66a1957f6288775825533a40c2559576e502ec6688a9dec20d6d97beb383f8155897d8d1f6e90d7c6b97ae
7
+ data.tar.gz: 359ab06d15629daa95a49775838a2e8a5b0a68a5fcc76a260322840e28896c3dfd9f267ebaacbeece3a35d40e613dfcdec4e76a1ce85273c9d2e89e34fdd2db2
@@ -62,7 +62,7 @@ module NtqTools
62
62
  %i[belongs_to has_one].each do |association_type|
63
63
  class_name.constantize.reflect_on_all_associations(association_type).each do |asso|
64
64
  asso_class_name = asso.options.dig(:class_name) || asso.name.to_s.singularize.camelcase
65
- associations << "field :#{asso.name}, Types::#{asso_class_name.downcase.pluralize.camelcase}::#{asso_class_name}Type"
65
+ associations << "field :#{asso.name}, Types::#{asso_class_name.pluralize.camelcase}::#{asso_class_name}Type"
66
66
  end
67
67
  end
68
68
  [:has_many].each do |association_type|
@@ -70,7 +70,7 @@ module NtqTools
70
70
  asso_class_name = asso.options.dig(:class_name) || asso.name.to_s.singularize.camelcase
71
71
  next if asso_class_name == 'PaperTrail::Version'
72
72
 
73
- associations << "field :#{asso.name}, [Types::#{asso_class_name.downcase.pluralize.camelcase}::#{asso_class_name}Type]"
73
+ associations << "field :#{asso.name}, [Types::#{asso_class_name.pluralize.camelcase}::#{asso_class_name}Type]"
74
74
  end
75
75
  end
76
76
 
@@ -1,3 +1,3 @@
1
1
  module NtqTools
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ntq_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-11 00:00:00.000000000 Z
11
+ date: 2023-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails