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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/generators/register_error_generator.rb +2 -2
- data/lib/nxt_error_registry/version.rb +1 -1
- data/lib/tasks/generate_code.rake +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 642b4d9812c832938b63b9239995d9715019b8606a6c2a90a6fb4c530dd4b4d1
|
4
|
+
data.tar.gz: 2cea7439ad772694c7ac992f121bd38f1c633ec8307f1a87843c77cc38ea7834
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e957610515333fa7895272ce4b5f1292f4299acd3234d512e9ac697023393db44a085d296ef53b9928ea652efbc3a0d604e9db9c0180b772f9bf72f22f3bdfe
|
7
|
+
data.tar.gz: 9ce83d272ec501bd58240623a39a9c37fcbdcbff32d7c95def8b5129f9c471bf6f753ce69387ae36e1d5a1aca333ef126619f44b7fd109c162653076031f285a
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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,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
|
-
|
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.
|
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-
|
13
|
+
date: 2019-08-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|