nucleus-core 0.1.0 → 0.1.2

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: b2545a3c813f8b6c7fc829e527ed77dc5105b10857af9ea2621bcb8ac81264de
4
- data.tar.gz: 2b1724c47837c91d2039625f3efdea8fbc550d3513f0a9a253b0cb5104dd7c8c
3
+ metadata.gz: 2e8f1e827a4aff4f39d769c090f5f7d8ef84943a9200a4f4c23321b7f797fc0f
4
+ data.tar.gz: 7cf9cba46cd45f56e8b6eaea86d066f2cb95315a91918a088e80f35dda326c23
5
5
  SHA512:
6
- metadata.gz: 84e7a40ba56b63f86dedf43cf139386cb73e128e30986ba3fb169ac39e46dea24625658f466183302a5706edb9aca5b1414b8392663f753abf417807a2b32dae
7
- data.tar.gz: 5f7237b583e69352ebd3a805cd3bd4bbbe73951a9e06b128f8bbac7950631a110fd1abcd246c284fc30c6a958574d6bb804fbf4077f31606fd0b0ecab4f63f01
6
+ metadata.gz: 673a551fa263daa8ade580dc2950741255ee4366bfd201b15228e8525cfbd6d21563aa82c8e279de51f4f54c870411d91e2a2d169f74a22a261e391b07c2e119
7
+ data.tar.gz: 6b153a4819376e7b4c054078f6efb6527462faaca7bf8bf44c9b0fdf553a3c6088232951493167a6361a41968a0c885d3438af8d1365ad318d4b0e1a8847dbb6
@@ -1,5 +1,3 @@
1
- require "nucleus_core/exceptions"
2
-
3
1
  module NucleusCore
4
2
  class Policy
5
3
  attr_reader :user, :record
@@ -1,3 +1,3 @@
1
1
  module NucleusCore
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
data/lib/nucleus_core.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require "ostruct"
2
- require "nucleus_core/exceptions"
3
2
  require "json"
4
3
  require "set"
5
4
 
@@ -18,6 +17,12 @@ module NucleusCore
18
17
  autoload :Workflow, "nucleus_core/workflow"
19
18
  autoload :Responder, "nucleus_core/responder"
20
19
 
20
+ class BaseException < StandardError; end
21
+ class NotAuthorized < BaseException; end
22
+ class NotFound < BaseException; end
23
+ class Unprocessable < BaseException; end
24
+ class BadRequest < BaseException; end
25
+
21
26
  class Configuration
22
27
  attr_reader :exceptions_map, :response_adapter
23
28
  attr_accessor :logger
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nucleus-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - dodgerogers
@@ -151,7 +151,6 @@ files:
151
151
  - lib/nucleus_core/aggregate.rb
152
152
  - lib/nucleus_core/basic_object.rb
153
153
  - lib/nucleus_core/cli.rb
154
- - lib/nucleus_core/exceptions.rb
155
154
  - lib/nucleus_core/extensions/array.rb
156
155
  - lib/nucleus_core/extensions/rack.rb
157
156
  - lib/nucleus_core/operation.rb
@@ -1,5 +0,0 @@
1
- class NucleusCore::BaseException < StandardError; end
2
- class NucleusCore::NotAuthorized < NucleusCore::BaseException; end
3
- class NucleusCore::NotFound < NucleusCore::BaseException; end
4
- class NucleusCore::Unprocessable < NucleusCore::BaseException; end
5
- class NucleusCore::BadRequest < NucleusCore::BaseException; end