tap-ubiquity 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History +10 -0
- data/lib/tap/ubiquity/utils.rb +7 -7
- data/tap-ubiquity.gemspec +3 -2
- metadata +5 -3
data/History
ADDED
data/lib/tap/ubiquity/utils.rb
CHANGED
@@ -33,20 +33,20 @@ module Tap
|
|
33
33
|
response['Content-Type'] = 'application/x-javascript'
|
34
34
|
command
|
35
35
|
else
|
36
|
-
|
37
|
-
block_given? ? yield(link) : link
|
36
|
+
block_given? ? yield(command_link) : command_link
|
38
37
|
end
|
39
38
|
end
|
40
|
-
|
39
|
+
|
41
40
|
# Returns true if the current request indicates the command javascript
|
42
41
|
# should be returned by serve (ie the path_info ends with '.js')
|
43
42
|
def command_request?
|
44
43
|
File.extname(request.path_info) == '.js'
|
45
44
|
end
|
46
|
-
|
47
|
-
# Returns the
|
48
|
-
|
49
|
-
|
45
|
+
|
46
|
+
# Returns the link tag for subscribing to a ubiquity command served
|
47
|
+
# from the specified action.
|
48
|
+
def command_link(action=self.action)
|
49
|
+
"<link rel='commands' href='#{uri(action)}.js' />"
|
50
50
|
end
|
51
51
|
|
52
52
|
# Formats a Ubiquity command that calls action with an 'input' parameter
|
data/tap-ubiquity.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "tap-ubiquity"
|
3
|
-
s.version = "0.2.
|
3
|
+
s.version = "0.2.1"
|
4
4
|
s.author = "Simon Chiang"
|
5
5
|
s.email = "simon.a.chiang@gmail.com"
|
6
6
|
s.homepage = "http://tap.rubyforge.org/ubiquity/"
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.require_path = "lib"
|
10
10
|
s.rubyforge_project = "tap"
|
11
11
|
s.add_dependency("tap-server", ">= 0.3.0")
|
12
|
-
s.add_dependency("
|
12
|
+
s.add_dependency("json_pure", ">= 1.1.3")
|
13
13
|
s.has_rdoc = true
|
14
14
|
s.rdoc_options.concat %W{--main README -S -N --title Tap\sUbiquity}
|
15
15
|
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.extra_rdoc_files = %W{
|
18
18
|
MIT-LICENSE
|
19
19
|
README
|
20
|
+
History
|
20
21
|
}
|
21
22
|
|
22
23
|
# list the files you want to include here. you can
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tap-ubiquity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Chiang
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-30 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
version: 0.3.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
26
|
+
name: json_pure
|
27
27
|
type: :runtime
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -41,6 +41,7 @@ extensions: []
|
|
41
41
|
extra_rdoc_files:
|
42
42
|
- MIT-LICENSE
|
43
43
|
- README
|
44
|
+
- History
|
44
45
|
files:
|
45
46
|
- lib/tap/ubiquity/ubiquity.rb
|
46
47
|
- lib/tap/ubiquity/utils.rb
|
@@ -50,6 +51,7 @@ files:
|
|
50
51
|
- views/tap/ubiquity/ubiquity/index.erb
|
51
52
|
- MIT-LICENSE
|
52
53
|
- README
|
54
|
+
- History
|
53
55
|
has_rdoc: true
|
54
56
|
homepage: http://tap.rubyforge.org/ubiquity/
|
55
57
|
post_install_message:
|