usps-support 0.2.25 → 0.2.26
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/config/routes.rb +1 -1
- data/lib/usps/all.rb +7 -0
- data/lib/usps/support/engine.rb +4 -0
- data/lib/usps/support/version.rb +1 -1
- data/lib/usps/support.rb +5 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 898b9b3981d27d35e971db1989153c9a01d52fc72255c633f4296b889843e5c7
|
|
4
|
+
data.tar.gz: dcae62557ba345f6cd63725b23e52de3f47fe6f6ddf81c6ece79671806c33ca4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b691967e76aec582bd5dbfee9d1fffeb564b3211402400dbd934de597d0bb9baacfa7ab757ea8121482faff45f23fd47dfcc2945b8e16ecdac5eb21f49006a2
|
|
7
|
+
data.tar.gz: 1a75510cd066087329218fca26ec81ae8ba97620f5ddff76eba7e6655d2153e306459e8167c5f760795b4435efd1160a20e05a75f53c5c9f00e2cb9233e571a5
|
data/config/routes.rb
CHANGED
data/lib/usps/all.rb
CHANGED
data/lib/usps/support/engine.rb
CHANGED
|
@@ -10,6 +10,10 @@ module Usps
|
|
|
10
10
|
# helpers, and authentication plumbing.
|
|
11
11
|
#
|
|
12
12
|
class Engine < ::Rails::Engine
|
|
13
|
+
# The installed gem has no gemspec at its root, so Rails::Engine.find_root
|
|
14
|
+
# otherwise resolves to lib/usps/support and misses our app/ and config/
|
|
15
|
+
# directories. Pin the root to the gem root explicitly.
|
|
16
|
+
config.root = File.expand_path('../../..', __dir__)
|
|
13
17
|
end
|
|
14
18
|
end
|
|
15
19
|
end
|
data/lib/usps/support/version.rb
CHANGED
data/lib/usps/support.rb
CHANGED
|
@@ -14,9 +14,8 @@ require_relative 'support/helpers'
|
|
|
14
14
|
require_relative 'support/models'
|
|
15
15
|
require_relative 'support/lib'
|
|
16
16
|
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# :nocov:
|
|
17
|
+
# The Railtie and Engine requires live in `usps/all`, not here. This file can
|
|
18
|
+
# legitimately be required before Rails is loaded (e.g. from .simplecov to pull
|
|
19
|
+
# in Usps::Support::Lib helpers), and because Ruby caches loaded files, a
|
|
20
|
+
# conditional `if defined?(Rails)` block here would be evaluated once with
|
|
21
|
+
# Rails undefined and then never re-run even after the Rails boot completes.
|