rightresource 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/right_resource/server.rb +8 -0
- metadata +4 -4
@@ -38,5 +38,13 @@ class Server < RightResource::Base
|
|
38
38
|
path = element_path(id, :settings)
|
39
39
|
generate_attributes(format.decode(connection.get(path)))
|
40
40
|
end
|
41
|
+
|
42
|
+
def tags(resource_href)
|
43
|
+
query_options={'resource_href'=>resource_href}
|
44
|
+
path = "tags/search.#{format.extension}#{query_string(query_options)}"
|
45
|
+
Hash[ *format.decode(connection.get( path )).collect { |tag|
|
46
|
+
tag['name'].split('=')
|
47
|
+
}.flatten ]
|
48
|
+
end
|
41
49
|
end
|
42
50
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rightresource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Satoshi Ohki
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-12 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|