yaccl 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/lib/yaccl/model/object.rb +1 -1
- data/lib/yaccl/model/property_definition.rb +5 -3
- data/lib/yaccl/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
N2EwMjI4YWIyODI3YzNlYmY1YzQwMWZmZDFkMjYyM2UwY2Y2NTBlMGY1NjJm
|
10
|
-
NWNiZDE0YTZmYzAzMTMwNDU0NmU0MWJiOTI4MzM0MWMwZDNlMTFkMDQ4MDc0
|
11
|
-
ZjBjMjc1ZmU0NWNmNjIxY2RjYmY5OGNhNDZmMGNiYTJiYmEyMDQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
Y2NjM2Y5MjdjY2Q3OGRlMGY1ZDFmYzczMTYzNmU5ODYyNzgwNjk5NzgyOGNh
|
14
|
-
ZDUzNDE4MTJhOWMxNzczMWY1MjE1ZTVhMjExNmNiZTg3ZWU5OTA3YWExMzM1
|
15
|
-
MTFmYmM2NDYxMmU2YWRhMzE3Mzk2NmM0YmUyYTFkNjE4NTVlYWY=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 90aaa45b1a8369b191b51529e8107b5e7960f1ed
|
4
|
+
data.tar.gz: 5b55cd0d49bd015d59a55aa64185ff4ce8e66d9d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d56d9b0dff8ed84e38b764a4ee4e54db0731a28554da39e31c8f5fbc21e8f903d70a4c5697a73e3ba7413be486fa703164e7bfd2a5318eb7eef9b752df8b7a17
|
7
|
+
data.tar.gz: f28da141c98242bc8a1d2f9af453df41d77f680b3dae093ca260368ca69bca0b073734389e89b353c14212fd8de3a52f2d1088848d36150eebbc1b85384a129a
|
data/lib/yaccl/model/object.rb
CHANGED
@@ -129,7 +129,7 @@ module YACCL
|
|
129
129
|
elsif raw[:properties]
|
130
130
|
result = raw[:properties].reduce({}) do |h, (k, v)|
|
131
131
|
val = v[:value]
|
132
|
-
val = Time.at(val / 1000) if v[:type] == 'datetime'
|
132
|
+
val = Time.at(val / 1000) if val and v[:type] == 'datetime'
|
133
133
|
h.merge(k => val)
|
134
134
|
end
|
135
135
|
else
|
@@ -2,14 +2,16 @@ module YACCL
|
|
2
2
|
module Model
|
3
3
|
class PropertyDefinition
|
4
4
|
|
5
|
-
attr_accessor :id, :local_name, :query_name,
|
6
|
-
:
|
7
|
-
:
|
5
|
+
attr_accessor :id, :local_name, :query_name,
|
6
|
+
:description, :inherited, :open_choice,
|
7
|
+
:orderable, :property_type, :updatability,
|
8
|
+
:display_name, :required, :cardinality, :queryable, :other
|
8
9
|
|
9
10
|
def initialize(hash={})
|
10
11
|
@id = hash.delete(:id)
|
11
12
|
@local_name = hash.delete(:localName)
|
12
13
|
@query_name = hash.delete(:queryName)
|
14
|
+
@description = hash.delete(:description)
|
13
15
|
@inherited = hash.delete(:inherited)
|
14
16
|
@open_choice = hash.delete(:openChoice)
|
15
17
|
@orderable = hash.delete(:orderable)
|
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.27
|
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-
|
12
|
+
date: 2013-07-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -112,12 +112,12 @@ require_paths:
|
|
112
112
|
- lib
|
113
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- -
|
120
|
+
- - '>='
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|