yaccl 0.0.9 → 0.0.11

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
- NzZlOTUxZjY2NWMzODZjMDE5NTNjZDZiYmMxNWViMTA1N2ZlYTFkZA==
4
+ YTA3YTEyNmIzMWE4OGNjN2U0ODVhMTZiZTlmYmJjMjIzM2Q1NzlmNw==
5
5
  data.tar.gz: !binary |-
6
- NGI2MTAxYjgwMWE1MzBhZWNiMzkxZTkwZjg5N2EyYzY4NjQyMDE4OQ==
6
+ ZWQ5MGIzZjQ5MjdjYjU1MzY5YTQyMmNjODhkMTQ1YmYwZTEyZTA5ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZmE4Nzg3N2I3MzE1ZTU0M2U2M2IzNWY1MWI3Mjk1MDJhOGRjMGIwMDNiYTZh
10
- MDQxMmQxYzJmMDY2NTYwNzEwZmFlZTYzZGQxNmYwZGQ2N2ZhMjU3OTlkY2Iy
11
- N2VhODYxOTQyOGI3ZjA3MWFhZDRiNzBmYTVhYWU1NThhNmM3NmM=
9
+ YTVlMzAxOGYzY2M1MTQxYzAzMzUxNTE5NmJlZmJhOTM4OWRiM2FkYzExZDMx
10
+ ODAzNmU0MzI2ODg3YWUzOGI5MzIyY2VlM2IwMGMzOTgwODU3YjU2MzgzY2Q5
11
+ YmNiN2NjNjVmNzAzMDk2MThkZTRjMjlkNWU0NmI3MGY0NWVlOTI=
12
12
  data.tar.gz: !binary |-
13
- OTBmMjlhN2FmMTVhYjY3YzhiMDI2MGI4OWU1M2RlODE0ZWU3MTJhMzNlYjJm
14
- NzFlMWIyZTFhMzVkMTMzNzRkM2QzOTFhNDY2YTkxZjAwZWY4NTliYWE5ZDNl
15
- OGNhMmQ5ODZlNTA2ZTAzYjBiOWMxMjhmMjYyNzQ0MTJiZjA2YzI=
13
+ ODYyMDFlMDk5ODAzNmY3ZDllZWVjM2E3OTQ1OTE1YjU2YmE0ZDM5YWUzMWE4
14
+ Y2Q4N2VhNjAxZmIzYzk5MDI0NjUyYTcxNDg1Y2I4Mzk3YTUxNGQzMDU5Y2Jk
15
+ MzQ3ZDg5YTAwYWY2NGM2NjViNzgzMTVlZTcyMmZlNDhkMTcxZjE=
@@ -63,12 +63,12 @@ module YACCL
63
63
 
64
64
  def relationships(direction=:either)
65
65
  result = Services.get_object_relationships(repository_id, object_id, nil, direction, nil, nil, false, nil, nil)
66
- result[:objects].map { |r| Relationship.create(repository_id, r) }
66
+ result[:objects].map { |r| Relationship.new(repository_id, r) }
67
67
  end
68
68
 
69
69
  def policies
70
70
  Services.get_applied_policies(repository_id, object_id, nil).map do |policy|
71
- Policy.create(repository_id, policy)
71
+ Policy.new(repository_id, policy)
72
72
  end
73
73
  end
74
74
 
@@ -6,16 +6,16 @@ module YACCL
6
6
 
7
7
  def initialize(repository_id, raw={})
8
8
  super
9
- @source_id = @properties['cmis:sourceId']
10
- @target_id = @properties['cmis:targetId']
9
+ @source_id = @properties[:'cmis:sourceId']
10
+ @target_id = @properties[:'cmis:targetId']
11
11
  end
12
12
 
13
13
  def source
14
- Object.create(Services.get_object(repository_id, source_id, nil, false, false, nil, false, false))
14
+ ObjectFactory.create(repository_id, Services.get_object(repository_id, source_id, nil, false, nil, nil, false, false))
15
15
  end
16
16
 
17
17
  def target
18
- Object.create(Services.get_object(repository_id, target_id, nil, false, false, nil, false, false))
18
+ ObjectFactory.create(repository_id, Services.get_object(repository_id, target_id, nil, false, nil, nil, false, false))
19
19
  end
20
20
  end
21
21
  end
data/lib/yaccl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module YACCL
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.11'
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.9
4
+ version: 0.0.11
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-02 00:00:00.000000000 Z
12
+ date: 2013-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty