sinatra-cometio 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/lib/sinatra/application.rb +4 -1
- data/lib/sinatra-cometio.rb +1 -1
- metadata +3 -3
data/History.txt
CHANGED
data/lib/sinatra/application.rb
CHANGED
|
@@ -6,6 +6,10 @@ module Sinatra
|
|
|
6
6
|
def cometio_js
|
|
7
7
|
"#{env['rack.url_scheme']}://#{env['HTTP_HOST']}#{env['SCRIPT_NAME']}/cometio/cometio.js"
|
|
8
8
|
end
|
|
9
|
+
|
|
10
|
+
def cometio_url
|
|
11
|
+
"#{env['rack.url_scheme']}://#{env['HTTP_HOST']}#{env['SCRIPT_NAME']}/cometio/io"
|
|
12
|
+
end
|
|
9
13
|
end
|
|
10
14
|
|
|
11
15
|
get '/cometio/cometio.js' do
|
|
@@ -15,7 +19,6 @@ module Sinatra
|
|
|
15
19
|
File.open(File.expand_path '../js/cometio.js', File.dirname(__FILE__)) do |f|
|
|
16
20
|
js = f.read
|
|
17
21
|
end
|
|
18
|
-
cometio_url = "#{env['rack.url_scheme']}://#{env['HTTP_HOST']}#{env['SCRIPT_NAME']}/cometio/io"
|
|
19
22
|
ERB.new(js).result(binding)
|
|
20
23
|
)
|
|
21
24
|
end
|
data/lib/sinatra-cometio.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra-cometio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-11-
|
|
12
|
+
date: 2012-11-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sinatra
|
|
@@ -194,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
194
194
|
version: '0'
|
|
195
195
|
segments:
|
|
196
196
|
- 0
|
|
197
|
-
hash:
|
|
197
|
+
hash: -1862944850052237251
|
|
198
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
none: false
|
|
200
200
|
requirements:
|