hecks-domain 0.1.6.rc → 0.1.6

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: 23525aefb104718b7b876c43d7ac0a797704fa27
4
- data.tar.gz: c16ff20116e3bd156216fe624bf9fa6c43940a72
3
+ metadata.gz: 9604352e11679256a77d30cd621b2441ec15e7b6
4
+ data.tar.gz: 1ef4d3d5293901d23f4467ae4af3f0e599febe70
5
5
  SHA512:
6
- metadata.gz: ea1e0c48311cef15eea477812e83c98ab1d5b6eea7d1d122ac7798b5b06999d429f0fe79905a5c517198f09f2db5f5181cbab8a425ed209152b72b5663e71309
7
- data.tar.gz: 60787911b9f9e56b0d753bf5050dadf85ec1a586b4f02d018eec9de6714d3ff993e1a79230ea8757d29a8c1a43e833a86329ea3830ef41108f74758c91f79c07
6
+ metadata.gz: cfa41f69a451ee04d209a31996436040e7bdab45ee803963e2b59aa08036265e5235bcf84d029001dd7e38fca13634fec4e78a83fef5a110305cd5f3197c6fab
7
+ data.tar.gz: 215af1a8779a5cb879d21b03c74d004758badb7d4ee93a0240a045a5bc6158fa75c9c750ba2d1f1dfdd74d6e6c962f69ac63b2338ce4138d39fde1367d7df875
@@ -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.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
11
+ date: 2017-04-10 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.6.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.6.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: []