usps-support 0.1.12 → 0.1.13

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: 2c0c2a0aea0cbf009639e7eecaa41da6885bbd98e94d561ed6f02d3e2c4bd990
4
- data.tar.gz: 6a4d7ba5a60b86420b554c3bbc6dd30b453f908abd615d5e483dcd944c17d70a
3
+ metadata.gz: 3f5c8203818887fbadfcea7c7c434b10d62d324febf7149a3048f21c74762a9a
4
+ data.tar.gz: 00fa275eaf8279d506d9e123e8e82fc34dcc6c765892b126b2cd86c62c129e0d
5
5
  SHA512:
6
- metadata.gz: eea8776b12bf74f898f19a673eb4cc4dc7e1bac297db9edbbadd78f9ae11d28fa0002ec138f53e34a4b1c21cc7f9717ca19b31eb57aec0dee0ec20edb4f415c1
7
- data.tar.gz: 2df7a193373cdbc7212c7d42f25356acb7c71f7aa33c803ffdfb0d08aa18fb38c55d983661a72e9ccf62a9f394168555787212f372a665d5cc00d544a274ad36
6
+ metadata.gz: 28273426abcfd3a2ec3f412f65cb025c30e593126702b870d59dec054af5d047334b9dbac25e34339bf209c1dd16388f4a3607fc240e2904c7c431cd15795700
7
+ data.tar.gz: add95d43f7c34bf620d6419e6a9735a8e609764c1b50f4014c9427e628dcb720c80c0587404ac1d8932067a19c2e4a4772d7b70a039c88af5f1ae58950c35c58
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps-support (0.1.12)
4
+ usps-support (0.1.13)
5
5
  sassc-rails
6
6
  usps-imis-api (~> 0.10.4)
7
7
  usps-jwt_auth (~> 1.0.0)
@@ -7,6 +7,11 @@ module Usps::Support::Models::Hq::Members
7
7
  self.table_name = :djftp
8
8
  self.primary_key = %i[certno jobcode year]
9
9
 
10
+ belongs_to(
11
+ :district,
12
+ class_name: '::Squadrons::District',
13
+ foreign_key: 'account', primary_key: 'account', inverse_of: :district_jobs
14
+ )
10
15
  belongs_to(
11
16
  :member,
12
17
  class_name: '::Members::Member',
@@ -25,6 +25,11 @@ module Usps::Support::Models::Hq::Squadrons
25
25
  class_name: '::Members::FormerMember',
26
26
  foreign_key: 'dist', primary_key: 'district', inverse_of: :former_district
27
27
  )
28
+ has_many(
29
+ :district_jobs,
30
+ class_name: '::Members::DistrictJob',
31
+ foreign_key: 'account', primary_key: 'account', inverse_of: :district
32
+ )
28
33
 
29
34
  # Squadrons and Districts are both stored in the same table, along with various historical entries
30
35
  default_scope { where("Name REGEXP '^D?[0-9]{2}$'").where.not(account: nil) }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module Support
5
- VERSION = '0.1.12'
5
+ VERSION = '0.1.13'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander