yaccl 0.0.28 → 0.0.29

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 513d266c392abc057af8528a1b4acc9cf1735d05
4
- data.tar.gz: 31be5f7320b5367747dca8df11a68ef91b02cd32
3
+ metadata.gz: 39afa3833f7344bc28ab082c6f330aebea202971
4
+ data.tar.gz: 585ffb7f96d766bfe83501bbc6a36170e72a19ee
5
5
  SHA512:
6
- metadata.gz: d4b81cb7b8aa94af2bafd86f0591003fecf5903bf1550e44b8241e6841d36ce63ea323f346458f141cef597addda5e75a1b3846a1c567725d5ddfb784322db83
7
- data.tar.gz: 9adb72449411e0a2e0f732b1df76c76d2daec9e0e4478c993fe2a283cd10cb61da6322e72f3363e6c64d5bad19d68388a6e4c9a69a557c1dff7080d126ad47c5
6
+ metadata.gz: fdb86aee90707a966d3abf68ab181ed5ea85540752f635218df2bd7e8a3b73220761333b56899c53f032a1882eea05120bbc4c9b1b9772fd6a534e4b6d8fe3f9
7
+ data.tar.gz: 1b4f936fe3b7e04ed2547c25339d9ec2ece2cb78215feacd672d1875a1da89e1d2e0367d12cd27b5d146889bc1ec04035be60964e2ca0371ce4d6850530337d9
@@ -54,7 +54,7 @@ module YACCL
54
54
  if detached?
55
55
  @local_content = content
56
56
  else
57
- Services.set_content_stream(repository_id, object_id, nil, nil, content)
57
+ Services.set_content_stream(repository_id, object_id, nil, change_token, content)
58
58
  end
59
59
  end
60
60
 
@@ -45,7 +45,7 @@ module YACCL
45
45
  end
46
46
 
47
47
  def update_properties(properties)
48
- Services.update_properties(repository_id, object_id, nil, properties)
48
+ Services.update_properties(repository_id, object_id, change_token, properties)
49
49
  end
50
50
 
51
51
  def parents
@@ -102,8 +102,15 @@ module YACCL
102
102
  props.each_with_index do |(id, value), index|
103
103
  value = value.to_time if value.is_a?(Date) or value.is_a?(DateTime)
104
104
  value = (value.to_f * 1000).to_i if value.is_a?(Time)
105
- hash.merge!("propertyId[#{index}]" => id,
106
- "propertyValue[#{index}]" => value)
105
+ if value.is_a?(Array)
106
+ hash.merge!("propertyId[#{index}]" => id)
107
+ value.each_with_index { |v, idx|
108
+ hash.merge!("propertyValue[#{index}][#{idx}]" => value[idx])
109
+ }
110
+ else
111
+ hash.merge!("propertyId[#{index}]" => id,
112
+ "propertyValue[#{index}]" => value)
113
+ end
107
114
  end
108
115
  end
109
116
  end
data/lib/yaccl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module YACCL
2
- VERSION = '0.0.28'
2
+ VERSION = '0.0.29'
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.28
4
+ version: 0.0.29
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-08-06 00:00:00.000000000 Z
12
+ date: 2013-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty