singlettings 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 503b5c0b3f0ca714aac39b985ec5ac5904cec66f
4
- data.tar.gz: 0a4bab476d36c958bfaea1fbb45ae5c4016a9f05
3
+ metadata.gz: f347cd873ba6481b79dfb39bfae7f20b22561ce7
4
+ data.tar.gz: 004d5fd453fd073f0d7179bdf96d2af9fbc96b44
5
5
  SHA512:
6
- metadata.gz: c4408f496f349e594a5be5560bf03d7f8edd6153848e051b058aa022fd89af77b83fae252fdba8299f072a2b83083f5f3f1ea9b386f70a8ef6f17f859fb5fbdb
7
- data.tar.gz: 14f7f051ee0f04ab19054f13daa6bdd799310403168ff5a04d4a991ea35cc3a7a89f48e177fb6b4c13b21598117c7f03eba2e1969ebebb45a05ad6b56cf95000
6
+ metadata.gz: e92bbe8c92a8ea401384eb9639aec82db313d012d70a4f6905aecf14db0384b55cb9ab33b6ea81b07a6da2e8fa11021308765602659f8476ecfe5209a8839600
7
+ data.tar.gz: 2a180ca7aa89665708474c3c55a2e399c483f677ed5068ee27e816e81d54d7f360d91a4352c21be8c4a0948c812d2527dee6b76f0a9f6aaad8701c1d26b40ae0
@@ -9,7 +9,17 @@ module Singlettings
9
9
  end
10
10
 
11
11
  class Rails < ::Rails::Engine
12
- initializer 'singlettings' do
12
+ # The priorities of ActiveSupport hooks are shown as below:
13
+ # => before_configuration
14
+ # => before_initialize
15
+ # => before_eager_load
16
+ # => action_controller
17
+ # => action_view
18
+ # => active_record
19
+ # => after_initialize
20
+ # Since Singlettings is for configuration,
21
+ # it should be loaded before configuration.
22
+ config.before_configuration do
13
23
  Singlettings.hook_rails!
14
24
  end
15
25
  end if defined?(::Rails)
@@ -1,3 +1,3 @@
1
1
  module Singlettings
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1 @@
1
+ SETTINGS = Yetting
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singlettings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jingkai He
@@ -100,6 +100,7 @@ files:
100
100
  - myapp/config/initializers/mime_types.rb
101
101
  - myapp/config/initializers/secret_token.rb
102
102
  - myapp/config/initializers/session_store.rb
103
+ - myapp/config/initializers/test_yetting.rb
103
104
  - myapp/config/initializers/wrap_parameters.rb
104
105
  - myapp/config/locales/en.yml
105
106
  - myapp/config/routes.rb