yaccl 0.0.18 → 0.0.19

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
- OTIzNjljOTQ0YTA0YjI4NjNiNGQzNmI0NmRiMDY0NDNlYTgzNzhlOQ==
4
+ NDMxM2Q1NjAyYzIyZGUxYTgxMmYxOWU4OGNlNjRjNTg0NmZjNmEzMA==
5
5
  data.tar.gz: !binary |-
6
- YzFlMzQ0ZTdmOTljY2YxYmNkZjc1ZjZmNzM1ZTdlMzhhMzhiNzNlZA==
6
+ M2FiNTMxMDMwMTMyYzhiYjk5MzkzNmNmYjIyOTZhYjMyMWI0NDMyMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmUxYjFiNTlhYWEyOTc5MTY1YmZlMDZiOTliYmMzMWE4NTk0NTNmNmIyZmMz
10
- ODRiMzM1Y2I5ZjdjZTgyN2YxMzRiYjIyMDYzZmUwMmExYmE4OGY0Y2RiNDJi
11
- MWQ4OTBhNDNiZGRiZjQ1YTFlYjFmMTlhZWRlYTFiZjlhYzVlZDU=
9
+ NDJkYTE0OTFjYmY2MzUwMzAwYjA0OWE5YzEyNjBlYWY3OWRjN2MyZjEwMWVj
10
+ NDkzOWM1ZDJiN2YyYzFkZDcyOTdjNzI4YWY5OWVhZGIzOWNhOTRmZjQ4NDIz
11
+ ZmMzNWEwODFlM2JkNDgxZmU3NmNlNzZlZjJmY2RjYzY2N2I2OTE=
12
12
  data.tar.gz: !binary |-
13
- Y2NhNTA1NDEyNGMyNTk2ZWYyMmRjOWQ2MmE1YWI2ZDcyNDZmN2E5MmFlYmRh
14
- ODBiNGEzNzg0ZmVmYzkzMDhhNDczOGY0NTRlZGFmNTk2M2IwNWE5MjJkOWEy
15
- MTA0MzQwYWVmMzY0YzEwNzJmYWFhM2U0MGUyYzlmMDRhNGQ2NjM=
13
+ MmJmYjFkMTI5MGNlYmZmNzcyYmM1ZDZhOWQ3NmU4YzE0MzIwZTIwM2MxNmI4
14
+ Njc0MjI5MTIxNTUxOGU3YzAzMTc0MDcxYTAwZTQ3N2NmYmRlMTFhZDc0MTA2
15
+ ZTdhZDQ1N2FiZTVhNTFhNTI0N2Y3NGNkODkwMGE2ZmY5YTUxNGY=
@@ -127,13 +127,14 @@ module YACCL
127
127
  if raw[:succinctProperties]
128
128
  result = raw[:succinctProperties]
129
129
  elsif raw[:properties]
130
- result = raw[:properties].reduce({}) { |h, (k, v)| h.merge(k => v[:value]) }
130
+ result = raw[:properties].reduce({}) do |h, (k, v)|
131
+ val = v[:value]
132
+ val = Time.at(val / 1000) if v[:type] == 'datetime'
133
+ h.merge(k => val)
134
+ end
131
135
  else
132
136
  result = {}
133
137
  end
134
- [:'cmis:creationDate', :'cmis:lastModificationDate'].each do |k|
135
- result[k] = Time.at(result[k] / 1000) if result[k]
136
- end
137
138
  result
138
139
  end
139
140
  end
@@ -57,6 +57,7 @@ module YACCL
57
57
  else
58
58
  if object_id.nil?
59
59
  if @repository_urls.fetch(repository_id).nil?
60
+ raise "No configuration found for <#{repository_id}>. Does repository exist?" unless Basement.get(@service_url)[repository_id]
60
61
  repository_url = Basement.get(@service_url)[repository_id]['repositoryUrl']
61
62
  @repository_urls.store(repository_id, repository_url)
62
63
  end
@@ -1,3 +1,3 @@
1
1
  module YACCL
2
- VERSION = '0.0.18'
2
+ VERSION = '0.0.19'
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.18
4
+ version: 0.0.19
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-04-26 00:00:00.000000000 Z
12
+ date: 2013-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty