active_cmis 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ActiveCMIS Release 0.2.1 #
1
+ # ActiveCMIS Release 0.2.2 #
2
2
  **Homepage**: <http://xaop.com/labs/activecmis>
3
3
  **Git**: <http://github.com/xaop/activecmis>
4
4
  **Documentation**: <http://rdoc.info/github/xaop/activecmis/master/frames>
data/active_cmis.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active_cmis}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joeri Samson"]
12
- s.date = %q{2011-05-17}
12
+ s.date = %q{2011-05-31}
13
13
  s.description = %q{A CMIS library implementing both reading and updating capabilities through the AtomPub/REST binding to CMIS.}
14
14
  s.email = %q{joeri@xaop.com}
15
15
  s.extra_rdoc_files = [
@@ -52,14 +52,13 @@ Gem::Specification.new do |s|
52
52
  s.homepage = %q{http://xaop.com/labs/activecmis/}
53
53
  s.require_paths = ["lib"]
54
54
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.6")
55
- s.rubygems_version = %q{1.3.6}
55
+ s.rubygems_version = %q{1.6.2}
56
56
  s.summary = %q{A library to interact with CMIS repositories through the AtomPub/REST binding}
57
57
 
58
58
  if s.respond_to? :specification_version then
59
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
60
59
  s.specification_version = 3
61
60
 
62
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
61
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
63
62
  s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.1"])
64
63
  else
65
64
  s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
@@ -5,14 +5,14 @@ module ActiveCMIS
5
5
  def content_stream
6
6
  if content = data.xpath("at:content", NS::COMBINED).first
7
7
  if content['src']
8
- ActiveCMIS::Rendition.new(repository, "href" => content['src'], "type" => content["type"])
8
+ ActiveCMIS::Rendition.new(repository, self, "href" => content['src'], "type" => content["type"])
9
9
  else
10
10
  if content['type'] =~ /\+xml$/
11
11
  content_data = content.to_xml # FIXME: this may not preserve whitespace
12
12
  else
13
13
  content_data = data.unpack("m*").first
14
14
  end
15
- ActiveCMIS::Rendition.new(repository, "data" => content_data, "type" => content["type"])
15
+ ActiveCMIS::Rendition.new(repository, self, "data" => content_data, "type" => content["type"])
16
16
  end
17
17
  elsif content = data.xpath("cra:content", NS::COMBINED).first
18
18
  content.children.each do |node|
@@ -21,7 +21,7 @@ module ActiveCMIS
21
21
  content_type = node.text if node.name == "mediaType"
22
22
  end
23
23
  data = content_data.unpack("m*").first
24
- ActiveCMIS::Rendition.new(repository, "data" => content_data, "type" => content_type)
24
+ ActiveCMIS::Rendition.new(repository, self, "data" => content_data, "type" => content_type)
25
25
  end
26
26
  end
27
27
  cache :content_stream
@@ -36,7 +36,7 @@ module ActiveCMIS
36
36
 
37
37
  links = data.xpath("at:link[@rel = 'alternate']", NS::COMBINED)
38
38
  links.map do |link|
39
- ActiveCMIS::Rendition.new(repository, link)
39
+ ActiveCMIS::Rendition.new(repository, self, link)
40
40
  end
41
41
  end
42
42
  cache :renditions
@@ -8,10 +8,13 @@ module ActiveCMIS
8
8
  attr_reader :rendition_kind
9
9
  # @return [String,nil] The format is equal to the mime type, but may be unset or misleading
10
10
  attr_reader :format
11
+ # @return [ActiveCMIS::Document] The document to which the rendition belongs
12
+ attr_reader :document
11
13
 
12
14
  # @private
13
- def initialize(repository, link)
15
+ def initialize(repository, document, link)
14
16
  @repository = repository
17
+ @document = document
15
18
 
16
19
  @rel = link['rel'] == "alternate"
17
20
  @rendition_kind = link['renditionKind'] if rendition?
@@ -2,7 +2,7 @@ module ActiveCMIS
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- PATCH = 1
5
+ PATCH = 2
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_cmis
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 19
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 1
9
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Joeri Samson
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-05-17 00:00:00 +02:00
18
+ date: 2011-05-31 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: nokogiri
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 5
27
30
  segments:
28
31
  - 1
29
32
  - 4
@@ -82,25 +85,29 @@ rdoc_options: []
82
85
  require_paths:
83
86
  - lib
84
87
  required_ruby_version: !ruby/object:Gem::Requirement
88
+ none: false
85
89
  requirements:
86
90
  - - ">="
87
91
  - !ruby/object:Gem::Version
92
+ hash: 59
88
93
  segments:
89
94
  - 1
90
95
  - 8
91
96
  - 6
92
97
  version: 1.8.6
93
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
+ none: false
94
100
  requirements:
95
101
  - - ">="
96
102
  - !ruby/object:Gem::Version
103
+ hash: 3
97
104
  segments:
98
105
  - 0
99
106
  version: "0"
100
107
  requirements: []
101
108
 
102
109
  rubyforge_project:
103
- rubygems_version: 1.3.6
110
+ rubygems_version: 1.6.2
104
111
  signing_key:
105
112
  specification_version: 3
106
113
  summary: A library to interact with CMIS repositories through the AtomPub/REST binding