yaccl 1.0.pre.alpha → 1.0.pre.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/lib/yaccl/repository.rb +8 -3
- data/lib/yaccl/server.rb +6 -0
- data/lib/yaccl/version.rb +1 -1
- data/lib/yaccl.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ff7a4a6aca93021fe40a4982b61fd27df22ee4f
|
4
|
+
data.tar.gz: fcdb6ac4bb4de4351cce0cce62f14e9437e01bae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2f32d54a5a8e1a71d01c3f93ac7ac5ab28ae7e38c2c6d3e3ff84dc854cb01f0928dceb17517102b90f8d0fc5aeca9eb6ead86a22f704d80943b13d5431593a3
|
7
|
+
data.tar.gz: 3ceebc2361d3ac2048873d7a70b401b6a4053dc70e0e412c80d58e5db401466b659f679b2542084a3228040553bcd68dbdc63887bbdcbfe8520e30a6586da198
|
data/lib/yaccl/repository.rb
CHANGED
@@ -4,9 +4,10 @@ module YACCL
|
|
4
4
|
attr_reader :connection
|
5
5
|
|
6
6
|
def initialize(raw, connection)
|
7
|
-
|
8
|
-
|
9
|
-
class_eval "def #{key.
|
7
|
+
@hash = raw
|
8
|
+
@hash.each_key do |key|
|
9
|
+
class_eval "def #{key.underscore};@hash['#{key}'];end"
|
10
|
+
class_eval "def #{key.gsub('repository', '').underscore};@hash['#{key}'];end" if key =~ /^repository/
|
10
11
|
end
|
11
12
|
|
12
13
|
@connection = connection
|
@@ -64,6 +65,10 @@ module YACCL
|
|
64
65
|
Type.new(result, self)
|
65
66
|
end
|
66
67
|
|
68
|
+
def has_type?(type_id)
|
69
|
+
types.map(&:id).include?(type_id)
|
70
|
+
end
|
71
|
+
|
67
72
|
def create_type(type)
|
68
73
|
result = connection.execute!({ cmisaction: 'createType',
|
69
74
|
repositoryId: id,
|
data/lib/yaccl/server.rb
CHANGED
data/lib/yaccl/version.rb
CHANGED
data/lib/yaccl.rb
CHANGED
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: 1.0.pre.
|
4
|
+
version: 1.0.pre.alpha2
|
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: 2014-02-
|
12
|
+
date: 2014-02-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|