yaccl 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +6 -0
- data/Rakefile +7 -0
- data/examples/create_type_manual.rb +40 -0
- data/lib/yaccl.rb +10 -0
- data/lib/yaccl/model.rb +10 -0
- data/lib/yaccl/model/document.rb +63 -0
- data/lib/yaccl/model/folder.rb +66 -0
- data/lib/yaccl/model/item.rb +9 -0
- data/lib/yaccl/model/object.rb +98 -0
- data/lib/yaccl/model/object_factory.rb +18 -0
- data/lib/yaccl/model/policy.rb +20 -0
- data/lib/yaccl/model/relationship.rb +22 -0
- data/lib/yaccl/model/repository.rb +106 -0
- data/lib/yaccl/model/server.rb +13 -0
- data/lib/yaccl/model/type.rb +88 -0
- data/lib/yaccl/services.rb +31 -0
- data/lib/yaccl/services/acl_services.rb +21 -0
- data/lib/yaccl/services/discovery_services.rb +27 -0
- data/lib/yaccl/services/internal/browser_binding_service.rb +99 -0
- data/lib/yaccl/services/multi_filing_services.rb +20 -0
- data/lib/yaccl/services/navigation_services.rb +78 -0
- data/lib/yaccl/services/object_services.rb +192 -0
- data/lib/yaccl/services/policy_services.rb +27 -0
- data/lib/yaccl/services/relationship_services.rb +17 -0
- data/lib/yaccl/services/repository_services.rb +60 -0
- data/lib/yaccl/services/versioning_services.rb +21 -0
- data/readme.md +21 -0
- data/spec/helper.rb +19 -0
- data/spec/model/document_spec.rb +44 -0
- data/spec/model/folder_spec.rb +73 -0
- data/spec/model/object_spec.rb +103 -0
- data/spec/model/repository_spec.rb +134 -0
- data/spec/model/server_spec.rb +16 -0
- data/yaccl.gemspec +23 -0
- metadata +136 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
require_relative '../helper'
|
2
|
+
|
3
|
+
describe YACCL::Model::Server do
|
4
|
+
it 'repositories' do
|
5
|
+
YACCL::Model::Server.repositories.each do |repo|
|
6
|
+
repo.should be_a_kind_of YACCL::Model::Repository
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'repository' do
|
11
|
+
id = 'meta'
|
12
|
+
repo = YACCL::Model::Server.repository(id)
|
13
|
+
repo.should be_a_kind_of YACCL::Model::Repository
|
14
|
+
repo.id.should eq id
|
15
|
+
end
|
16
|
+
end
|
data/yaccl.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require 'yaccl'
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'yaccl'
|
7
|
+
s.version = YACCL::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ['Kenneth', 'Michael']
|
10
|
+
s.email = ['kenneth@up-nxt.com']
|
11
|
+
s.homepage = 'http://www.up-nxt.com'
|
12
|
+
s.summary = 'Ruby CMIS browser binding client lib.'
|
13
|
+
s.description = 'Ruby CMIS browser binding client lib.'
|
14
|
+
|
15
|
+
s.add_dependency 'httparty', '~> 0.10.2'
|
16
|
+
s.add_dependency 'multipart-post', '~> 1.1.5'
|
17
|
+
s.add_dependency 'multi_json', '~> 1.5'
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split("\n")
|
20
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
22
|
+
s.require_paths = ['lib']
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: yaccl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Kenneth
|
9
|
+
- Michael
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-02-21 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: httparty
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.10.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 0.10.2
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: multipart-post
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 1.1.5
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.1.5
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: multi_json
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.5'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.5'
|
63
|
+
description: Ruby CMIS browser binding client lib.
|
64
|
+
email:
|
65
|
+
- kenneth@up-nxt.com
|
66
|
+
executables: []
|
67
|
+
extensions: []
|
68
|
+
extra_rdoc_files: []
|
69
|
+
files:
|
70
|
+
- .gitignore
|
71
|
+
- Gemfile
|
72
|
+
- Rakefile
|
73
|
+
- examples/create_type_manual.rb
|
74
|
+
- lib/yaccl.rb
|
75
|
+
- lib/yaccl/model.rb
|
76
|
+
- lib/yaccl/model/document.rb
|
77
|
+
- lib/yaccl/model/folder.rb
|
78
|
+
- lib/yaccl/model/item.rb
|
79
|
+
- lib/yaccl/model/object.rb
|
80
|
+
- lib/yaccl/model/object_factory.rb
|
81
|
+
- lib/yaccl/model/policy.rb
|
82
|
+
- lib/yaccl/model/relationship.rb
|
83
|
+
- lib/yaccl/model/repository.rb
|
84
|
+
- lib/yaccl/model/server.rb
|
85
|
+
- lib/yaccl/model/type.rb
|
86
|
+
- lib/yaccl/services.rb
|
87
|
+
- lib/yaccl/services/acl_services.rb
|
88
|
+
- lib/yaccl/services/discovery_services.rb
|
89
|
+
- lib/yaccl/services/internal/browser_binding_service.rb
|
90
|
+
- lib/yaccl/services/multi_filing_services.rb
|
91
|
+
- lib/yaccl/services/navigation_services.rb
|
92
|
+
- lib/yaccl/services/object_services.rb
|
93
|
+
- lib/yaccl/services/policy_services.rb
|
94
|
+
- lib/yaccl/services/relationship_services.rb
|
95
|
+
- lib/yaccl/services/repository_services.rb
|
96
|
+
- lib/yaccl/services/versioning_services.rb
|
97
|
+
- readme.md
|
98
|
+
- spec/helper.rb
|
99
|
+
- spec/model/document_spec.rb
|
100
|
+
- spec/model/folder_spec.rb
|
101
|
+
- spec/model/object_spec.rb
|
102
|
+
- spec/model/repository_spec.rb
|
103
|
+
- spec/model/server_spec.rb
|
104
|
+
- yaccl.gemspec
|
105
|
+
homepage: http://www.up-nxt.com
|
106
|
+
licenses: []
|
107
|
+
post_install_message:
|
108
|
+
rdoc_options: []
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ! '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ! '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 1.8.24
|
126
|
+
signing_key:
|
127
|
+
specification_version: 3
|
128
|
+
summary: Ruby CMIS browser binding client lib.
|
129
|
+
test_files:
|
130
|
+
- spec/helper.rb
|
131
|
+
- spec/model/document_spec.rb
|
132
|
+
- spec/model/folder_spec.rb
|
133
|
+
- spec/model/object_spec.rb
|
134
|
+
- spec/model/repository_spec.rb
|
135
|
+
- spec/model/server_spec.rb
|
136
|
+
has_rdoc:
|