globalid 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of globalid might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 833f7e0950a55c0aa3a0e62176de2d163a395c05
4
- data.tar.gz: 86b23bf6f2710971970c3a25a1301028184887f6
3
+ metadata.gz: 67df636d5882a415108166f9dcb39e6f92a7f5e7
4
+ data.tar.gz: 5fe46ff2503cf37219c26e94e42187299523996c
5
5
  SHA512:
6
- metadata.gz: 497931559ea0b7aa8d21b9ea2dfb4ae219739a8449763e2dad590c5b30f1cb4675b66841837f3f43c7480698dbbd478e4677c6ce43c01cff50a9f1e46e6af864
7
- data.tar.gz: b96a45a0e29e90e417b8282cef8bc8b6b23b079c6f25decff10ec9ad8ae5b0d08255820936460f8a58944b3a9847d4f7bb3c7ce59bf963c54319ddb6af01bc43
6
+ metadata.gz: f9b26b5c02b4102befdd6da829ca5e56fa0eeec953e755c2a69f77d563b3b0355c9d8ed0477e22e6230a99d851d5878c0d31b58eafc08bdcee7a8a54cd67526e
7
+ data.tar.gz: c27ffc78e6679bd1c799df5c72494d77ca3106ce9c44eff7004c9e38da7749651041cf03958437f5ec41d6c3499174cc87753486193a494a4f13aaa884e233c3
@@ -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
- autoload :Locator, 'global_id/locator'
7
- autoload :Identification, 'global_id/identification'
8
- autoload :Verifier, 'global_id/verifier'
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
@@ -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.0
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-04-16 00:00:00.000000000 Z
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.11
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'