yaccl 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/yaccl/model/property_definition.rb +21 -12
- data/lib/yaccl/model/repository.rb +1 -1
- data/lib/yaccl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTdlNGZmODVmYjM4YzEwYzE5YTY1YzcyOWE0OGEzMTdlOWY2MzIyZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDE5MTI4OGMwOGIxMjAwY2MwN2RiMzQ1YzFiMGRmOWVjZDkzYWJmNg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2EwMjI4YWIyODI3YzNlYmY1YzQwMWZmZDFkMjYyM2UwY2Y2NTBlMGY1NjJm
|
10
|
+
NWNiZDE0YTZmYzAzMTMwNDU0NmU0MWJiOTI4MzM0MWMwZDNlMTFkMDQ4MDc0
|
11
|
+
ZjBjMjc1ZmU0NWNmNjIxY2RjYmY5OGNhNDZmMGNiYTJiYmEyMDQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2NjM2Y5MjdjY2Q3OGRlMGY1ZDFmYzczMTYzNmU5ODYyNzgwNjk5NzgyOGNh
|
14
|
+
ZDUzNDE4MTJhOWMxNzczMWY1MjE1ZTVhMjExNmNiZTg3ZWU5OTA3YWExMzM1
|
15
|
+
MTFmYmM2NDYxMmU2YWRhMzE3Mzk2NmM0YmUyYTFkNjE4NTVlYWY=
|
@@ -7,18 +7,19 @@ module YACCL
|
|
7
7
|
:display_name, :required, :cardinality, :queryable
|
8
8
|
|
9
9
|
def initialize(hash={})
|
10
|
-
@id = hash
|
11
|
-
@local_name = hash
|
12
|
-
@query_name = hash
|
13
|
-
@inherited = hash
|
14
|
-
@open_choice = hash
|
15
|
-
@orderable = hash
|
16
|
-
@property_type = hash
|
17
|
-
@updatability = hash
|
18
|
-
@display_name = hash
|
19
|
-
@required = hash
|
20
|
-
@cardinality = hash
|
21
|
-
@queryable = hash
|
10
|
+
@id = hash.delete(:id)
|
11
|
+
@local_name = hash.delete(:localName)
|
12
|
+
@query_name = hash.delete(:queryName)
|
13
|
+
@inherited = hash.delete(:inherited)
|
14
|
+
@open_choice = hash.delete(:openChoice)
|
15
|
+
@orderable = hash.delete(:orderable)
|
16
|
+
@property_type = hash.delete(:propertyType)
|
17
|
+
@updatability = hash.delete(:updatability)
|
18
|
+
@display_name = hash.delete(:displayName)
|
19
|
+
@required = hash.delete(:required)
|
20
|
+
@cardinality = hash.delete(:cardinality)
|
21
|
+
@queryable = hash.delete(:queryable)
|
22
|
+
@other = hash
|
22
23
|
end
|
23
24
|
|
24
25
|
def readonly?
|
@@ -33,6 +34,14 @@ module YACCL
|
|
33
34
|
updatability == 'readwrite'
|
34
35
|
end
|
35
36
|
|
37
|
+
def method_missing(m, *args, &block)
|
38
|
+
if @other.has_key?(m)
|
39
|
+
@other[m]
|
40
|
+
else
|
41
|
+
super
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
36
45
|
def to_hash
|
37
46
|
# TODO (Needed for updating type?)
|
38
47
|
end
|
data/lib/yaccl/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaccl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenneth Geerts
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|