hecks-application 0.1.7.rc → 0.1.7

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: fdc91afa1e089eaf23402656504311b7187b0fc4
4
- data.tar.gz: d73997d67302658edbc131020aab2227860998b1
3
+ metadata.gz: 1996bf59c6d1f2663455244d1366ce21fdd74ade
4
+ data.tar.gz: a6bec3e538b602760a89257615fec519b689f2fa
5
5
  SHA512:
6
- metadata.gz: e25e37c4166e385174c21dee389a1c9d184484609462556263b6e140ca7e0782e2c050137c32bb545b0e9205bc8388c9e36ab020ac7bb83418b9444e9e3a848a
7
- data.tar.gz: 5837c89ddbb66f282b2860c7e5a0d920c828a4badc9196d970e7a7709d8ec0554af3baa846467a0fb48473ebf8f0b98185dda73189b82200a045701124c7ca37
6
+ metadata.gz: eb29b056070d0f722bec9d12df522758031e5602f002592a86566f7cc86b22de4691a11d19173a9f102f08d5adc257c08123ed56cb24046db4a30b2ddad6a971
7
+ data.tar.gz: e21b5d493976c11ad824d5dd1d686e4a85adb3c07f54b437070b7a4df0a00cf33473f79ebc259031dabbb115dc150a35ca03821d2f2303e90543bca27eb1c2da
data/lib/Version ADDED
@@ -0,0 +1 @@
1
+ 0.1.7
@@ -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.7.rc
4
+ version: 0.1.7
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-12 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.7
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.7
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.7
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.7
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: []