hecks-domain 0.1.9.rc → 0.1.9

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: 6f207c2c63cca83ea41bb71a33c43ddf33717fd6
4
- data.tar.gz: f98557848f11700a3f1ba728cbc9b29646f7ef5b
3
+ metadata.gz: a14d8199dafa3f56d6d5bd045f0c3837f7273974
4
+ data.tar.gz: c30c6169ddc7fcda87eda13b011297d9177862d4
5
5
  SHA512:
6
- metadata.gz: 93dc55d983e66f841eb3e4142cde6512bdf3e7a29ba09a2c04e535c968edbac760185cea484d62267e8f63e912602dfdca417ab92f9a44228c5ac5f43f68a6eb
7
- data.tar.gz: a9c2a041e00f40b0e7a2eeb2ad008e63f2d42de80a4fa066588aadb7e0196031f630b423655ab574ad8257417de4196f942f529e8a28512d774c3b4539ece909
6
+ metadata.gz: 0070cd8f910b36d54611902f663b969cb6c0696ceaf5365a0e26e286283103d6dfd0caa5a57a3cbb173047943cdca68a9b08651b64202590a5a0c318ac291155
7
+ data.tar.gz: 774e2ac56841f060368eb95d40680c77ec2f0850d6fea209b1333186e0de20fcdc7bcff668caab7935be37b964526ee77d50ee4fa8aaa8f0c57026f7f521b9c2
@@ -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,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hecks-domain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9.rc
4
+ version: 0.1.9
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
12
- dependencies: []
11
+ date: 2017-04-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
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'
13
41
  description: Hecks Domain
14
42
  email: chris@example.com
15
43
  executables: []
@@ -75,9 +103,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
103
  version: '0'
76
104
  required_rubygems_version: !ruby/object:Gem::Requirement
77
105
  requirements:
78
- - - ">"
106
+ - - ">="
79
107
  - !ruby/object:Gem::Version
80
- version: 1.3.1
108
+ version: '0'
81
109
  requirements: []
82
110
  rubyforge_project:
83
111
  rubygems_version: 2.6.10