globalid 0.4.0 → 0.4.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.
Potentially problematic release.
This version of globalid might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/global_id.rb +13 -3
- data/lib/global_id/railtie.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67df636d5882a415108166f9dcb39e6f92a7f5e7
|
4
|
+
data.tar.gz: 5fe46ff2503cf37219c26e94e42187299523996c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9b26b5c02b4102befdd6da829ca5e56fa0eeec953e755c2a69f77d563b3b0355c9d8ed0477e22e6230a99d851d5878c0d31b58eafc08bdcee7a8a54cd67526e
|
7
|
+
data.tar.gz: c27ffc78e6679bd1c799df5c72494d77ca3106ce9c44eff7004c9e38da7749651041cf03958437f5ec41d6c3499174cc87753486193a494a4f13aaa884e233c3
|
data/lib/global_id.rb
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
require 'global_id/global_id'
|
2
|
+
require 'active_support'
|
2
3
|
|
3
4
|
autoload :SignedGlobalID, 'global_id/signed_global_id'
|
4
5
|
|
5
6
|
class GlobalID
|
6
|
-
|
7
|
-
|
8
|
-
|
7
|
+
extend ActiveSupport::Autoload
|
8
|
+
|
9
|
+
eager_autoload do
|
10
|
+
autoload :Locator
|
11
|
+
autoload :Identification
|
12
|
+
autoload :Verifier
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.eager_load!
|
16
|
+
super
|
17
|
+
require 'global_id/signed_global_id'
|
18
|
+
end
|
9
19
|
end
|
data/lib/global_id/railtie.rb
CHANGED
@@ -11,6 +11,7 @@ class GlobalID
|
|
11
11
|
# Set up the signed GlobalID verifier and include Active Record support.
|
12
12
|
class Railtie < Rails::Railtie # :nodoc:
|
13
13
|
config.global_id = ActiveSupport::OrderedOptions.new
|
14
|
+
config.eager_load_namespaces << GlobalID
|
14
15
|
|
15
16
|
initializer 'global_id' do |app|
|
16
17
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globalid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.6.
|
78
|
+
rubygems_version: 2.6.12
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: 'Refer to any model with a URI: gid://app/class/id'
|