yaccl 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjI5ZjE5MjY0YzdmNjQzOGNjOTZlNzI5ZGExNTEzZDc2NzUwM2UyOQ==
4
+ YTdlNGZmODVmYjM4YzEwYzE5YTY1YzcyOWE0OGEzMTdlOWY2MzIyZg==
5
5
  data.tar.gz: !binary |-
6
- MjIyODc0ZjM4Zjg5ZWNmZTgwZGU4OGI1NmQ2MmJkOTljMTM0N2NmZg==
6
+ MDE5MTI4OGMwOGIxMjAwY2MwN2RiMzQ1YzFiMGRmOWVjZDkzYWJmNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTIxYWU4YjcxODRiYThlNzUzYTY0YmQxNWFjZTFiYjhlNjRjNjBjZmI2YjAz
10
- ZDI3MmNiNjQyN2QwNjkzNmFkYmVlNDc3NzU5NGU2YTE4OWQyNzhjYTE4YTY1
11
- N2E5NGI4Y2JmMTNjYzM4YzBmMjVkZjU0OWNjNzRmMTQwOGM5ODU=
9
+ N2EwMjI4YWIyODI3YzNlYmY1YzQwMWZmZDFkMjYyM2UwY2Y2NTBlMGY1NjJm
10
+ NWNiZDE0YTZmYzAzMTMwNDU0NmU0MWJiOTI4MzM0MWMwZDNlMTFkMDQ4MDc0
11
+ ZjBjMjc1ZmU0NWNmNjIxY2RjYmY5OGNhNDZmMGNiYTJiYmEyMDQ=
12
12
  data.tar.gz: !binary |-
13
- YjRmYjQ3YWQxMjRhYzQ0ZGRmZGUwMWQ1ZDVlMGZlMzVmNTM2YzAyOWI3NDdm
14
- ZTk4ZmFjZjViZmE0ZDJmYjAwNjVhYmJiMjcyYTQ0YmQ3MTk1YjJmNDM1Yzk1
15
- OWY3ODBiMThlZWQ4ODYwZTcxMzM2NTRjNTkzYjgwMjllMDIxZTk=
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[:id]
11
- @local_name = hash[:localName]
12
- @query_name = hash[:queryName]
13
- @inherited = hash[:inherited]
14
- @open_choice = hash[:openChoice]
15
- @orderable = hash[:orderable]
16
- @property_type = hash[:propertyType]
17
- @updatability = hash[:updatability]
18
- @display_name = hash[:displayName]
19
- @required = hash[:required]
20
- @cardinality = hash[:cardinality]
21
- @queryable = hash[:queryable]
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
@@ -86,7 +86,7 @@ module YACCL
86
86
  end
87
87
 
88
88
  def types
89
- _types(Services.get_type_descendants(id, nil, nil, nil))
89
+ _types(Services.get_type_descendants(id, nil, nil, true))
90
90
  end
91
91
 
92
92
  def create_type(type)
data/lib/yaccl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module YACCL
2
- VERSION = '0.0.25'
2
+ VERSION = '0.0.26'
3
3
  end
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.25
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-07 00:00:00.000000000 Z
12
+ date: 2013-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty