usps-support 0.2.3 → 0.2.5
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/lib/usps/support/models/hq/members/associate_member.rb +1 -1
- data/lib/usps/support/models/hq/members/district_job_description.rb +1 -1
- data/lib/usps/support/models/hq/members/former_member.rb +1 -1
- data/lib/usps/support/models/hq/members/national_job_description.rb +1 -1
- data/lib/usps/support/models/hq/members/squadron_job_description.rb +1 -1
- data/lib/usps/support/models/hq/shared_record.rb +7 -0
- data/lib/usps/support/models/hq/squadrons/website.rb +1 -1
- data/lib/usps/support/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2137607168cbc26b3de7c79dd8807206f03244780e716727192e3d2e49903fc5
|
|
4
|
+
data.tar.gz: 662aae79626c6bea74f008c8bdda7f79438f9c5dfcf262e702caa8156df38a25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50636c411e9822e8829e82aca2b7bdb72282ba5c5961f0e8750da4c4eaeb29548642e754aff1f7fb13edee3bcefa83a3e3dd14ddcd6eea8cf29016d88f335cf3
|
|
7
|
+
data.tar.gz: c8ee5b0bbdc2d3030383184c2ce9df613f2691c4b0360736daa092641a858a07d32538b579d6e5fe145075ec78e9720fdc6d966e0f3de4cff113b05a3ee8c77f
|
|
@@ -5,7 +5,7 @@ module Usps::Support::Models::Hq::Members
|
|
|
5
5
|
#
|
|
6
6
|
class AssociateMember < BaseRecord
|
|
7
7
|
self.table_name = :associates
|
|
8
|
-
|
|
8
|
+
ignore_type_column_sti!
|
|
9
9
|
|
|
10
10
|
belongs_to(
|
|
11
11
|
:member,
|
|
@@ -6,7 +6,7 @@ module Usps::Support::Models::Hq::Members
|
|
|
6
6
|
class DistrictJobDescription < BaseRecord
|
|
7
7
|
self.table_name = :djdesc
|
|
8
8
|
self.primary_key = :jobcode
|
|
9
|
-
|
|
9
|
+
ignore_type_column_sti!
|
|
10
10
|
|
|
11
11
|
has_many(
|
|
12
12
|
:district_jobs,
|
|
@@ -6,7 +6,7 @@ module Usps::Support::Models::Hq::Members
|
|
|
6
6
|
class FormerMember < BaseRecord
|
|
7
7
|
self.table_name = :abftp2
|
|
8
8
|
self.primary_key = :certificate
|
|
9
|
-
|
|
9
|
+
ignore_type_column_sti!
|
|
10
10
|
|
|
11
11
|
belongs_to(
|
|
12
12
|
:former_squadron,
|
|
@@ -6,7 +6,7 @@ module Usps::Support::Models::Hq::Members
|
|
|
6
6
|
class NationalJobDescription < BaseRecord
|
|
7
7
|
self.table_name = :njdesc
|
|
8
8
|
self.primary_key = :jobcode
|
|
9
|
-
|
|
9
|
+
ignore_type_column_sti!
|
|
10
10
|
|
|
11
11
|
has_many(
|
|
12
12
|
:national_jobs,
|
|
@@ -6,7 +6,7 @@ module Usps::Support::Models::Hq::Members
|
|
|
6
6
|
class SquadronJobDescription < BaseRecord
|
|
7
7
|
self.table_name = :sjdesc
|
|
8
8
|
self.primary_key = :jobcode
|
|
9
|
-
|
|
9
|
+
ignore_type_column_sti!
|
|
10
10
|
|
|
11
11
|
has_many(
|
|
12
12
|
:squadron_jobs,
|
|
@@ -10,6 +10,13 @@ module Usps::Support::Models::Hq
|
|
|
10
10
|
after_initialize :readonly!, unless: -> { Rails.env.test? || self.class.allow_hq_database_edits? }
|
|
11
11
|
|
|
12
12
|
def self.allow_hq_database_edits? = false
|
|
13
|
+
|
|
14
|
+
# The database has a `type` column, which gets confused with Rails STI
|
|
15
|
+
#
|
|
16
|
+
# As long as we don't need to set the column to anything specific, this helper cleans up the
|
|
17
|
+
# repeated use case of ignoring it.
|
|
18
|
+
#
|
|
19
|
+
def self.ignore_type_column_sti! = self.inheritance_column = nil
|
|
13
20
|
end
|
|
14
21
|
# rubocop:enable Rails/ApplicationRecord
|
|
15
22
|
end
|
|
@@ -7,7 +7,7 @@ module Usps::Support::Models::Hq::Squadrons
|
|
|
7
7
|
self.abstract_class = true
|
|
8
8
|
self.table_name = :websites
|
|
9
9
|
self.primary_key = :id
|
|
10
|
-
|
|
10
|
+
ignore_type_column_sti!
|
|
11
11
|
|
|
12
12
|
# This is a default behavior, that is overwritten by FormerSquadron
|
|
13
13
|
alias_attribute :account_number, :account
|
data/lib/usps/support/version.rb
CHANGED
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.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julian Fiander
|
|
@@ -29,14 +29,14 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.11.
|
|
32
|
+
version: 0.11.14
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.11.
|
|
39
|
+
version: 0.11.14
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: usps-jwt_auth
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|