nxt_error_registry 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 39411f4660b2f84e9b90872475acd50301deddce8d75cda339826516da1f3d44
4
- data.tar.gz: 7a65ddbb2ef5dfd1a0129b7350f6b6c971d8dd9c9a831b8b49e8db287bc4f6bf
3
+ metadata.gz: 642b4d9812c832938b63b9239995d9715019b8606a6c2a90a6fb4c530dd4b4d1
4
+ data.tar.gz: 2cea7439ad772694c7ac992f121bd38f1c633ec8307f1a87843c77cc38ea7834
5
5
  SHA512:
6
- metadata.gz: e31a35fccc1a72de32da01fe4f665cfbd9f19bd02bdc403abadb09deed7248d7b6015021694c0483599851e89c7f2128ddca08c3d750f8df2afef8b77a6ccf0f
7
- data.tar.gz: 58b03e32559f6c1813ff85f2bdc0368841b7db4ba459c8ccc0ce6a2d6af3ff4a597807d0c405804d67d8a017bb2f59f96f3de3be745d2715f1ffa98c0dc62db4
6
+ metadata.gz: 9e957610515333fa7895272ce4b5f1292f4299acd3234d512e9ac697023393db44a085d296ef53b9928ea652efbc3a0d604e9db9c0180b772f9bf72f22f3bdfe
7
+ data.tar.gz: 9ce83d272ec501bd58240623a39a9c37fcbdcbff32d7c95def8b5129f9c471bf6f753ce69387ae36e1d5a1aca333ef126619f44b7fd109c162653076031f285a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_error_registry (0.1.2)
4
+ nxt_error_registry (0.1.3)
5
5
  activesupport (< 6.1)
6
6
  rails (< 6.1)
7
7
 
@@ -4,7 +4,7 @@ class RegisterErrorGenerator < Rails::Generators::Base
4
4
  class_option :type, type: :string, default: 'ParentClass'
5
5
 
6
6
  def register_error
7
- Rails.application.eager_load!
7
+ Zeitwerk::Loader.eager_load_all
8
8
  name = options['name'].camelcase
9
9
  type = options['type'].camelcase
10
10
  harness = NxtErrorRegistry::CodesHarness.instance
@@ -13,4 +13,4 @@ class RegisterErrorGenerator < Rails::Generators::Base
13
13
  puts "register_error :#{name}, type: #{type}, code: '#{code}'"
14
14
  puts '----------------------------------------------'
15
15
  end
16
- end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module NxtErrorRegistry
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.3".freeze
3
3
  end
@@ -1,7 +1,7 @@
1
1
  namespace :nxt_error_registry do
2
2
  desc 'Generate a unique error code'
3
3
  task :generate_code, [:name, :type] => [:environment] do |_, args|
4
- Rails.application.eager_load!
4
+ Zeitwerk::Loader.eager_load_all
5
5
  name = args.fetch(:name, 'ErrorName').camelcase
6
6
  type = args.fetch(:type, 'ParentClass').camelcase
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nxt_error_registry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Robecke
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-08-17 00:00:00.000000000 Z
13
+ date: 2019-08-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler