yaccl 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ N2E0ZDM4YmRmOWZjOWJkYWE5NTI4NDY5MWVlNGIyNWMyZDRlN2RlOA==
5
+ data.tar.gz: !binary |-
6
+ OTRmOWU4NjFiYzkxYWJhZmMwNWIzNzRlMmQ4MTcyN2JhM2QyYmJmNw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MjBmNWQyY2I3NTA2YWVjNzlmZDFkMTNkMWQ5MzBmYWYwYTE0MjRmZDY0ZTY2
10
+ MmUwYmViNTEwMGQ3YjJlZGZhMTBiYmNkMTY5ZjRlMjNjZDQ2MDliNGJkNTNl
11
+ ZjljYmJjZTBjNjUzN2QyY2VhMmYxZGEyMzk1NGEwMGQzZjRkODc=
12
+ data.tar.gz: !binary |-
13
+ MjFkYzUwMzUzNmQ5ZmNjNmI2M2ZjNjdkZmQ5ODdkMTU1NmI3ZWNkMDEzZGU3
14
+ YjhjNGM1YzEwMzk5NTQ2NzVmZTFmM2RiMDk0YjdiZmFmMmQzZWJlYThkZWY5
15
+ ZDc1MDU5NjJmNzgxOGJkY2M4NTExZjA0NmEyOTkzZjdmOTgxNDg=
@@ -79,7 +79,6 @@ module YACCL
79
79
  _types(Services.get_type_descendants(id, nil, nil, nil))
80
80
  end
81
81
 
82
-
83
82
  def create_type(type)
84
83
  Type.create(id, Services.create_type(id, type.to_hash))
85
84
  end
@@ -92,6 +91,26 @@ module YACCL
92
91
  Services.delete_type(id, type_id)
93
92
  end
94
93
 
94
+ # relationship
95
+
96
+ def create(object)
97
+ properties = object.create_properties
98
+ if object.is_a? Folder
99
+ raise 'create object in folder'
100
+ elsif object.is_a? Document
101
+ raise 'create document in folder'
102
+ elsif object.is_a? Relationship
103
+ o = Services.create_relationship(id, properties, nil, nil, nil)
104
+ elsif object.is_a? Policy
105
+ raise 'create policy in folder'
106
+ elsif object.is_a? Item
107
+ raise 'create item in folder'
108
+ else
109
+ raise "Unexpected base_type_id: #{object.base_type_id}"
110
+ end
111
+ ObjectFactory.create(id, o)
112
+ end
113
+
95
114
  # discovery
96
115
 
97
116
  def query(statement)
@@ -1,3 +1,3 @@
1
1
  module YACCL
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaccl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
4
+ version: 0.0.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kenneth Geerts
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-03-05 00:00:00.000000000 Z
12
+ date: 2013-03-28 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: httparty
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
@@ -31,7 +28,6 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: multipart-post
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ~>
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ~>
45
40
  - !ruby/object:Gem::Version
@@ -47,7 +42,6 @@ dependencies:
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: multi_json
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ~>
53
47
  - !ruby/object:Gem::Version
@@ -55,7 +49,6 @@ dependencies:
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ~>
61
54
  - !ruby/object:Gem::Version
@@ -63,7 +56,6 @@ dependencies:
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: lrucache
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
60
  - - ~>
69
61
  - !ruby/object:Gem::Version
@@ -71,7 +63,6 @@ dependencies:
71
63
  type: :runtime
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
67
  - - ~>
77
68
  - !ruby/object:Gem::Version
@@ -125,27 +116,26 @@ files:
125
116
  - yaccl.gemspec
126
117
  homepage: https://github.com/UP-nxt
127
118
  licenses: []
119
+ metadata: {}
128
120
  post_install_message:
129
121
  rdoc_options: []
130
122
  require_paths:
131
123
  - lib
132
124
  required_ruby_version: !ruby/object:Gem::Requirement
133
- none: false
134
125
  requirements:
135
126
  - - ! '>='
136
127
  - !ruby/object:Gem::Version
137
128
  version: '0'
138
129
  required_rubygems_version: !ruby/object:Gem::Requirement
139
- none: false
140
130
  requirements:
141
131
  - - ! '>='
142
132
  - !ruby/object:Gem::Version
143
133
  version: '0'
144
134
  requirements: []
145
135
  rubyforge_project:
146
- rubygems_version: 1.8.24
136
+ rubygems_version: 2.0.3
147
137
  signing_key:
148
- specification_version: 3
138
+ specification_version: 4
149
139
  summary: CMIS browser binding client lib.
150
140
  test_files:
151
141
  - spec/helper.rb