openplacos 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -141,7 +141,12 @@ module Openplacos
141
141
  end
142
142
 
143
143
  def readable?(path_,login_)
144
- return @permissions[login_]["read"].include?(path_)
144
+ return true if @permissions[login_]["read"].include?(path_)
145
+ #check if one object is readable in the room
146
+ @permissions[login_]["read"].each { |path|
147
+ return true if path.include?(path_)
148
+ }
149
+ return false #else
145
150
  end
146
151
 
147
152
  def writeable?(path_,login_)
data/openplacos.gemspec CHANGED
@@ -17,5 +17,5 @@ GEMSPEC = Gem::Specification.new do |s|
17
17
  s.files = FileList["{lib}/**/*", "openplacos.gemspec", "VERSION"].to_a.sort
18
18
  s.require_path = "lib"
19
19
  s.has_rdoc = false
20
- s.add_dependency('ruby-dbus-openplacos', '>= 0.6.0')
20
+ s.add_dependency('ruby-dbus-openplacos', '>= 0.6.2')
21
21
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openplacos
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Openplacos Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-13 00:00:00 +02:00
18
+ date: 2011-06-18 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 7
29
+ hash: 3
30
30
  segments:
31
31
  - 0
32
32
  - 6
33
- - 0
34
- version: 0.6.0
33
+ - 2
34
+ version: 0.6.2
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: " Openplacos Gem is a set of libraries for openplacos software.\n These libraries allow an easier coding of openplacos clients, plugins or drivers in ruby.\n"