hecks-domain 0.1.8.rc → 0.1.8

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
  SHA1:
3
- metadata.gz: 07a6b01e44f65e55b26ac39446e19908b4272e19
4
- data.tar.gz: a601e52d075e96931e29a30a7fbf42e16a7fe7ea
3
+ metadata.gz: 1a2ddd9afe2d8898cee42313fd49d6a3637dbbda
4
+ data.tar.gz: 2f844d1c77342d9fe14dfca95af97121a8fb082c
5
5
  SHA512:
6
- metadata.gz: b75275c361ea2640e9a29adf2d80067e24a9e3e6f2f84c3100c0bb4e259249cf4a93b15364e666a66e4593fabc2780e49a92a45a44febc4b44b549b2d36ebbd5
7
- data.tar.gz: a8cc69cdca4a9a3ac28a652f21316226adc8801460836873878238b4a0063c5fac5acdd62443247f73c8208f52abb4a93be9e1f8d82c6a875aa06c50682c2568
6
+ metadata.gz: bdee0a0f586351c4f01d67377f260e2abd5bf4181714010cc03b31bb3946f2664ece4387383e58b51842dfa28a9ab0069c3b52aaf6d47f3337c9943d96b4b64c
7
+ data.tar.gz: 25320f9d3522e084bb6f3b0b50b0865395bd906e8c0347d9fbf1398f9de383481ef05c9283134aa30b2e588a3e8d516ed69b56af6ba6a7abcdec5cdf930d392b
@@ -7,6 +7,6 @@ Gem::Specification.new do |s|
7
7
  s.description = "Description"
8
8
  s.authors = ["Author"]
9
9
  s.email = 'email@example.com'
10
- s.files = Dir["lib/**/*"]
10
+ s.files = Dir["lib/**/*"] + ['Domain']
11
11
  s.license = 'MIT'
12
12
  end
@@ -38,6 +38,10 @@ module Hecks
38
38
  !primitive? && !list?
39
39
  end
40
40
 
41
+ def domain_reference?
42
+ @string.include?('::')
43
+ end
44
+
41
45
  def referenced_object
42
46
  return unless reference?
43
47
  return @string.split("::").last if @string.include?("::")
@@ -29,6 +29,11 @@ module Hecks
29
29
  @attributes.reject(&:primitive?)
30
30
  end
31
31
 
32
+ def domain_references
33
+ @attributes.select(&:domain_reference?)
34
+ end
35
+
36
+
32
37
  private
33
38
 
34
39
  def type_with_domain_module(attribute)
metadata CHANGED
@@ -1,30 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hecks-domain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.rc
4
+ version: 0.1.8
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-15 00:00:00.000000000 Z
11
+ date: 2017-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: hecks-adapters-sql-database
14
+ name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.8.rc
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.8.rc
27
- description: Make the Domain the center of your programming world
26
+ version: '5.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.19'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.19'
41
+ description: Hecks Domain
28
42
  email: chris@example.com
29
43
  executables: []
30
44
  extensions: []
@@ -89,13 +103,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
103
  version: '0'
90
104
  required_rubygems_version: !ruby/object:Gem::Requirement
91
105
  requirements:
92
- - - ">"
106
+ - - ">="
93
107
  - !ruby/object:Gem::Version
94
- version: 1.3.1
108
+ version: '0'
95
109
  requirements: []
96
110
  rubyforge_project:
97
111
  rubygems_version: 2.6.10
98
112
  signing_key:
99
113
  specification_version: 4
100
- summary: DDD and Hexagonal Code Generators
114
+ summary: Here be Domain Driven Design Generators and Builders
101
115
  test_files: []