bayeux-rack 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +58 -58
  2. data/lib/bayeux.rb +1 -1
  3. metadata +8 -8
data/Rakefile CHANGED
@@ -1,58 +1,58 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- require 'jeweler'
5
- require './lib/bayeux'
6
-
7
- Jeweler::Tasks.new do |gem|
8
- gem.name = "bayeux-rack"
9
- gem.version = Bayeux::VERSION
10
- gem.homepage = "http://github.com/cjheath/bayeux-rack"
11
- gem.license = "MIT"
12
- gem.summary = %Q{Bayeux (COMET or long-polling) protocol server as a Sinatra application}
13
- gem.description = %Q{
14
- Bayeux (COMET or long-polling) protocol server as a Sinatra application.
15
- Light weight and high scalability are achieved by using the
16
- asynchronous Rack extensions added to Thin by async_sinatra.}
17
- gem.email = %w[clifford.heath@gmail.com]
18
- gem.authors = ["Clifford Heath"]
19
- gem.add_runtime_dependency 'json', '>= 1.5.1'
20
- gem.add_runtime_dependency 'async_sinatra', '> 0.1'
21
- gem.add_runtime_dependency 'eventmachine', '>= 0.12'
22
- gem.add_runtime_dependency 'thin', '>= 1.2'
23
- # gem.add_development_dependency 'rspec', '> 1.2.3'
24
- end
25
- Jeweler::RubygemsDotOrgTasks.new
26
-
27
- require 'rake/testtask'
28
- Rake::TestTask.new(:test) do |test|
29
- test.libs << 'lib' << 'test'
30
- test.pattern = 'test/**/test_*.rb'
31
- test.verbose = true
32
- end
33
- task :default => :test
34
-
35
- require 'rdoc/task'
36
- Rake::RDocTask.new do |rdoc|
37
- rdoc.rdoc_dir = 'rdoc'
38
- rdoc.title = "bayeux-rack #{Bayeux::VERSION}"
39
- rdoc.rdoc_files.include('README.rdoc')
40
- # rdoc.rdoc_files.include('History.rdoc')
41
- rdoc.rdoc_files.include('lib/**/*.rb')
42
- end
43
-
44
- desc 'Generate website files'
45
- task :website_generate do
46
- sh %q{ruby script/txt2html website/index.txt > website/index.html}
47
- end
48
-
49
- desc 'Upload website files via rsync'
50
- task :website_upload do
51
- local_dir = 'website'
52
- website_config = YAML.load(File.read("config/website.yml"))
53
- host = website_config["host"]
54
- host = host ? "#{host}:" : ""
55
- remote_dir = website_config["remote_dir"]
56
- sh %{rsync -aCv #{local_dir}/ #{host}#{remote_dir}}
57
- end
58
-
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ require 'jeweler'
5
+ require './lib/bayeux'
6
+
7
+ Jeweler::Tasks.new do |gem|
8
+ gem.name = "bayeux-rack"
9
+ gem.version = Bayeux::VERSION
10
+ gem.homepage = "http://github.com/cjheath/bayeux-rack"
11
+ gem.license = "MIT"
12
+ gem.summary = %Q{Bayeux (COMET or long-polling) protocol server as a Sinatra application}
13
+ gem.description = %Q{
14
+ Bayeux (COMET or long-polling) protocol server as a Sinatra application.
15
+ Light weight and high scalability are achieved by using the
16
+ asynchronous Rack extensions added to Thin by async_sinatra.}
17
+ gem.email = %w[clifford.heath@gmail.com]
18
+ gem.authors = ["Clifford Heath"]
19
+ gem.add_runtime_dependency 'json', '>= 1.4.6'
20
+ gem.add_runtime_dependency 'async_sinatra', '> 0.1'
21
+ gem.add_runtime_dependency 'eventmachine', '>= 0.12'
22
+ gem.add_runtime_dependency 'thin', '>= 1.2'
23
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
24
+ end
25
+ Jeweler::RubygemsDotOrgTasks.new
26
+
27
+ require 'rake/testtask'
28
+ Rake::TestTask.new(:test) do |test|
29
+ test.libs << 'lib' << 'test'
30
+ test.pattern = 'test/**/test_*.rb'
31
+ test.verbose = true
32
+ end
33
+ task :default => :test
34
+
35
+ require 'rdoc/task'
36
+ Rake::RDocTask.new do |rdoc|
37
+ rdoc.rdoc_dir = 'rdoc'
38
+ rdoc.title = "bayeux-rack #{Bayeux::VERSION}"
39
+ rdoc.rdoc_files.include('README.rdoc')
40
+ # rdoc.rdoc_files.include('History.rdoc')
41
+ rdoc.rdoc_files.include('lib/**/*.rb')
42
+ end
43
+
44
+ desc 'Generate website files'
45
+ task :website_generate do
46
+ sh %q{ruby script/txt2html website/index.txt > website/index.html}
47
+ end
48
+
49
+ desc 'Upload website files via rsync'
50
+ task :website_upload do
51
+ local_dir = 'website'
52
+ website_config = YAML.load(File.read("config/website.yml"))
53
+ host = website_config["host"]
54
+ host = host ? "#{host}:" : ""
55
+ remote_dir = website_config["remote_dir"]
56
+ sh %{rsync -aCv #{local_dir}/ #{host}#{remote_dir}}
57
+ end
58
+
@@ -14,7 +14,7 @@ require 'eventmachine'
14
14
  # implementing the COMET protocol.
15
15
  class Bayeux < Sinatra::Base
16
16
  # The Gem version of this implementation
17
- VERSION = "0.6.1"
17
+ VERSION = "0.6.2"
18
18
  register Sinatra::Async
19
19
 
20
20
  # A connected client
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bayeux-rack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Clifford Heath
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-28 00:00:00 Z
18
+ date: 2011-08-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 1
28
+ hash: 11
29
29
  segments:
30
30
  - 1
31
- - 5
32
- - 1
33
- version: 1.5.1
31
+ - 4
32
+ - 6
33
+ version: 1.4.6
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency