hecks-application 0.1.6.rc → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Version +1 -0
  3. data/lib/hecks-application.rb +14 -0
  4. metadata +37 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f90974debab75439f9f447a33526ae41443418cb
4
- data.tar.gz: 8f75aa3891508c1e39a505fdeafb1baf70cda5eb
3
+ metadata.gz: 46ea3a25fe10ec7a94b52126c4b20e0bd3bc4466
4
+ data.tar.gz: 15a2b74be80592b01f17b1825987dbedd435f7a7
5
5
  SHA512:
6
- metadata.gz: 6d82f7a265822808e3413fe10e7c4f8fe44455c9748402b75a14de98b1405dbd3afa922b4fd139b6f11beabbd3253a48057235ae73bc8b3d5520bc026e1815da
7
- data.tar.gz: 36c6f7b5fed786f2a36954c225b9ea38349d03a9d6a3a5a648103795dbcfbffb67486778e548aaec8f5798d61c55b6ad69a282812d21a39c63c064fd82c1437a
6
+ metadata.gz: 623e18b1df847462c1defa3b87a85d4b74c291d0e246a7b78bc108b5ae92fe3358e9e55e039eccdbfe99ffed00661514d89d0e500684686ab242c76a76016fe6
7
+ data.tar.gz: ca3df8a0939b27be8c85559ad72fa11ee47a4747a1dddbc34868856dbecae84c719f238da6cae595262ccdf19bb535f2312d5d01a2be0cb277c49ccd57f0db06
data/lib/Version ADDED
@@ -0,0 +1 @@
1
+ 0.1.6
@@ -2,7 +2,21 @@
2
2
  require_relative 'commands/commands'
3
3
  require_relative 'queries/queries'
4
4
 
5
+ if ['development', 'test'].include?(ENV['HECKS_ENVIRONMENT'])
6
+ ENV['HECKS_PATH'] = File.dirname(__FILE__) + '/../hecks/lib/hecks'
7
+ require_relative "#{File.dirname(__FILE__)}/../../hecks-domain/lib/hecks-domain"
8
+ require_relative "#{File.dirname(__FILE__)}/../../hecks-adapters/lib/hecks-adapters"
9
+ else
10
+ require 'hecks-domain'
11
+ require 'hecks-adapters'
12
+ end
13
+
5
14
  module Hecks
15
+ def self.version
16
+ path = "#{File.dirname(__FILE__)}/Version"
17
+ File.read(path).gsub("\n", '')
18
+ end
19
+
6
20
  class Application
7
21
  attr_reader :database, :domain_spec, :events_port
8
22
  def initialize(database: nil, listeners: [], domain:)
metadata CHANGED
@@ -1,21 +1,50 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hecks-application
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.rc
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Young
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-14 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Make the Domain the center of your programming world
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hecks-domain
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.6
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.6
27
+ - !ruby/object:Gem::Dependency
28
+ name: hecks-adapters
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.6
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.1.6
41
+ description: Hecks Application
14
42
  email: chris@example.com
15
43
  executables: []
16
44
  extensions: []
17
45
  extra_rdoc_files: []
18
46
  files:
47
+ - lib/Version
19
48
  - lib/commands/commands.rb
20
49
  - lib/commands/create.rb
21
50
  - lib/commands/crud_handler.rb
@@ -41,13 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
41
70
  version: '0'
42
71
  required_rubygems_version: !ruby/object:Gem::Requirement
43
72
  requirements:
44
- - - ">"
73
+ - - ">="
45
74
  - !ruby/object:Gem::Version
46
- version: 1.3.1
75
+ version: '0'
47
76
  requirements: []
48
77
  rubyforge_project:
49
78
  rubygems_version: 2.6.10
50
79
  signing_key:
51
80
  specification_version: 4
52
- summary: DDD and Hexagonal Code Generators
81
+ summary: Hecks::Application understands things and acts as an interface to Domains
82
+ built with Hecks::Domain
53
83
  test_files: []