hecks-domain 0.1.7.rc → 0.1.7

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: fef573ffef15ec49d5b965e37547992ae3cf2476
4
- data.tar.gz: d48b699b9dbe979b1f3e9dfca0c05fb2573fff61
3
+ metadata.gz: ae69d7f25b160cb900a322bc0ed20aa68ea218ba
4
+ data.tar.gz: 1ce24b4c94b1ee6de83fdd34321c03f250d1b77b
5
5
  SHA512:
6
- metadata.gz: c16880a8995e1f26584e62aa3c5905d9b7509e456aa573917afbfe1492d98ce6c8cd89f9313aab45069ccd509f24a2179c29a0f52e7cb873530603d58ebf29d4
7
- data.tar.gz: 24bb4b7a3516d8017652637026d23c30360ec34293ddb1ddbed2482acc397535cc0e0533b16b4a0aed1f1c6a5b58ede2825e5940951f2690cf6371440ae4e097
6
+ metadata.gz: 39554ed4c714000f961d107fa0e807110a30a9f097dd8e882af1d5ce94e3da8e3de827374468b727e6ece6155df45221ae517b8118223d22acd13f969e6d68e1
7
+ data.tar.gz: 60f3759f0af55eca38525a19c9bb7a32996ed4090ef1217a02fd56e2d1caf32a4895294af8ff76266f59f3c0b63b817ca62185321f94a26e5874a74f63c62031
@@ -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.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
11
+ date: 2017-04-12 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.7.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.7.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: []