rocket-server 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,22 +1,11 @@
1
- ## MAC OS
2
1
  .DS_Store
3
-
4
- ## TEXTMATE
5
2
  *.tmproj
6
3
  tmtags
7
-
8
- ## EMACS
9
4
  *~
10
5
  \#*
11
6
  .\#*
12
-
13
- ## VIM
14
7
  *.swp
15
-
16
- ## PROJECT::GENERAL
17
8
  coverage
18
9
  rdoc
19
10
  pkg
20
-
21
- ## PROJECT::SPECIFIC
22
11
  *.rdb
data/Rakefile CHANGED
@@ -1,60 +1,43 @@
1
1
  # -*- ruby -*-
2
-
3
2
  $:.unshift(File.expand_path('../lib', __FILE__))
4
3
  $:.unshift(File.expand_path('../../rocket/lib', __FILE__))
5
-
6
4
  require 'rspec/core/rake_task'
7
5
  require 'rake/rdoctask'
8
- require 'rocket/server/version'
9
-
10
- SUMMARY = %Q{Fast and extensible web socket server built upon em-websockets.}
11
- DESCRIPTION = %Q{
12
- This is a fast web socket server built on awesome EventMachine with em-websockets help.
13
- It provides easy to use, event-oriented middleware for your web-socket powered applications.
14
- }
15
-
16
- begin
17
- require 'jeweler'
18
- Jeweler::Tasks.new do |gem|
19
- gem.version = Rocket::Server.version
20
- gem.name = "rocket-server"
21
- gem.email = "chris@nu7hat.ch"
22
- gem.homepage = "http://github.com/araneo/rocket"
23
- gem.authors = ["Araneo", "Chris Kowalik"]
24
- gem.summary = SUMMARY
25
- gem.description = DESCRIPTION
26
- #gem.add_dependency "rocket", "0.0.1"
27
- gem.add_dependency "optitron", "~> 0.2"
28
- gem.add_dependency "json", "~> 1.4"
29
- gem.add_dependency "eventmachine", ">= 0.12"
30
- gem.add_dependency "em-websocket", ">= 0.1.4"
31
- gem.add_dependency "logging", "~> 1.4"
32
- gem.add_dependency "daemons", "~> 1.1"
33
- gem.add_dependency "konfigurator", ">= 0.1.1"
34
- gem.add_development_dependency "rspec", "~> 2.0"
35
- gem.add_development_dependency "mocha", "~> 0.9"
36
- end
37
- Jeweler::GemcutterTasks.new
38
- rescue
39
- puts 'Jeweler is not available here'
40
- end
6
+ require 'rocket/version'
41
7
 
42
8
  RSpec::Core::RakeTask.new(:spec) do |t|
43
9
  t.pattern = 'spec/**/*_spec.rb'
44
- t.rspec_opts = %q[-I../rocket/lib -Ilib -c -b]
10
+ t.rspec_opts = %q[-I../rocket-core/lib -I../rocket/lib -Ilib -c -b]
45
11
  end
46
12
 
47
13
  RSpec::Core::RakeTask.new(:rcov) do |t|
48
14
  t.rcov = true
49
- t.rspec_opts = %q[-I../rocket/lib -Ilib -c -b]
50
- t.rcov_opts = %q[-I../rocket/lib -Ilib -T -x "spec"]
15
+ t.rspec_opts = %q[-I../rocket-core/lib -I../rocket/lib -Ilib -c -b]
16
+ t.rcov_opts = %q[-I../rocket-core/lib -I../rocket/lib -Ilib -T -x "spec"]
51
17
  end
52
18
 
53
19
  Rake::RDocTask.new do |rdoc|
54
- rdoc.title = "Rocket server #{Rocket::Server.version}"
20
+ rdoc.title = "Rocket Server #{Rocket.version}"
55
21
  rdoc.rdoc_dir = 'rdoc'
56
22
  rdoc.rdoc_files.include('README*')
57
23
  rdoc.rdoc_files.include('lib/**/*.rb')
58
24
  end
59
25
 
26
+ desc "Build current version as a rubygem"
27
+ task :build do
28
+ sh "gem build rocket-server.gemspec"
29
+ sh "mkdir -p pkg"
30
+ sh "mv rocket-server-*.gem pkg/"
31
+ end
32
+
33
+ desc "Relase current version to rubygems.org"
34
+ task :release => :build do
35
+ sh "gem push pkg/rocket-server-#{Rocket.version}.gem"
36
+ end
37
+
38
+ desc "Perform installation via rubygems"
39
+ task :install => :build do
40
+ sh "gem install pkg/rocket-server-#{Rocket.version}.gem"
41
+ end
42
+
60
43
  task :default => :spec
@@ -82,6 +82,3 @@ module Rocket
82
82
  end # << self
83
83
  end # Server
84
84
  end # Rocket
85
-
86
- require 'rocket/server/version'
87
-
@@ -8,7 +8,7 @@ module Rocket
8
8
 
9
9
  desc "Show used version of Rocket server"
10
10
  def version
11
- puts "Rocket v#{Rocket::Server.version}"
11
+ puts "Rocket v#{Rocket.version}"
12
12
  end
13
13
 
14
14
  desc "Start Rocket server on given host and port"
@@ -1,96 +1,31 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
1
+ # -*- ruby -*-
2
+ $:.unshift(File.expand_path('../lib', __FILE__))
3
+ $:.unshift(File.expand_path('../../rocket/lib', __FILE__))
4
+ require 'rocket/version'
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{rocket-server}
8
- s.version = "0.0.1"
7
+ s.name = 'rocket-server'
8
+ s.version = Rocket.version
9
+ s.homepage = 'http://github.com/araneo/rocket'
10
+ s.email = ['chris@nu7hat.ch']
11
+ s.authors = ['Araneo Ltd.', 'Chris Kowalik']
12
+ s.summary = %q{Fast and extensible web socket server built upon em-websockets.}
13
+ s.description = %q{This is a fast web socket server built on awesome EventMachine with em-websockets help. It provides easy to use, event-oriented middleware for your web-socket powered applications.}
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {spec}/*`.split("\n")
16
+ s.require_paths = %w[lib]
17
+ s.extra_rdoc_files = %w[LICENSE README.md]
18
+ s.executables = %w[rocket-server]
19
+ s.default_executable = 'rocket-server'
9
20
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Araneo", "Chris Kowalik"]
12
- s.date = %q{2010-11-03}
13
- s.description = %q{
14
- This is a fast web socket server built on awesome EventMachine with em-websockets help.
15
- It provides easy to use, event-oriented middleware for your web-socket powered applications.
16
- }
17
- s.email = %q{chris@nu7hat.ch}
18
- s.extra_rdoc_files = [
19
- "LICENSE",
20
- "README.md"
21
- ]
22
- s.files = [
23
- ".gitignore",
24
- "LICENSE",
25
- "README.md",
26
- "Rakefile",
27
- "bin/rocket-server",
28
- "etc/testing.yml",
29
- "lib/rocket-server.rb",
30
- "lib/rocket/server.rb",
31
- "lib/rocket/server/app.rb",
32
- "lib/rocket/server/channel.rb",
33
- "lib/rocket/server/cli.rb",
34
- "lib/rocket/server/connection.rb",
35
- "lib/rocket/server/helpers.rb",
36
- "lib/rocket/server/misc.rb",
37
- "lib/rocket/server/runner.rb",
38
- "lib/rocket/server/session.rb",
39
- "lib/rocket/server/templates/config.yml.tpl",
40
- "lib/rocket/server/version.rb",
41
- "rocket-server.gemspec",
42
- "spec/apps_spec.rb",
43
- "spec/channel_spec.rb",
44
- "spec/cli_spec.rb",
45
- "spec/connection_spec.rb",
46
- "spec/helpers_spec.rb",
47
- "spec/misc_spec.rb",
48
- "spec/runner_spec.rb",
49
- "spec/server_spec.rb",
50
- "spec/session_spec.rb",
51
- "spec/spec_helper.rb"
52
- ]
53
- s.homepage = %q{http://github.com/araneo/rocket}
54
- s.rdoc_options = ["--charset=UTF-8"]
55
- s.require_paths = ["lib"]
56
- s.rubygems_version = %q{1.3.7}
57
- s.summary = %q{Fast and extensible web socket server built upon em-websockets.}
58
-
59
- if s.respond_to? :specification_version then
60
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
61
- s.specification_version = 3
62
-
63
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
64
- s.add_runtime_dependency(%q<optitron>, ["~> 0.2"])
65
- s.add_runtime_dependency(%q<json>, ["~> 1.4"])
66
- s.add_runtime_dependency(%q<eventmachine>, [">= 0.12"])
67
- s.add_runtime_dependency(%q<em-websocket>, [">= 0.1.4"])
68
- s.add_runtime_dependency(%q<logging>, ["~> 1.4"])
69
- s.add_runtime_dependency(%q<daemons>, ["~> 1.1"])
70
- s.add_runtime_dependency(%q<konfigurator>, [">= 0.1.1"])
71
- s.add_development_dependency(%q<rspec>, ["~> 2.0"])
72
- s.add_development_dependency(%q<mocha>, ["~> 0.9"])
73
- else
74
- s.add_dependency(%q<optitron>, ["~> 0.2"])
75
- s.add_dependency(%q<json>, ["~> 1.4"])
76
- s.add_dependency(%q<eventmachine>, [">= 0.12"])
77
- s.add_dependency(%q<em-websocket>, [">= 0.1.4"])
78
- s.add_dependency(%q<logging>, ["~> 1.4"])
79
- s.add_dependency(%q<daemons>, ["~> 1.1"])
80
- s.add_dependency(%q<konfigurator>, [">= 0.1.1"])
81
- s.add_dependency(%q<rspec>, ["~> 2.0"])
82
- s.add_dependency(%q<mocha>, ["~> 0.9"])
83
- end
84
- else
85
- s.add_dependency(%q<optitron>, ["~> 0.2"])
86
- s.add_dependency(%q<json>, ["~> 1.4"])
87
- s.add_dependency(%q<eventmachine>, [">= 0.12"])
88
- s.add_dependency(%q<em-websocket>, [">= 0.1.4"])
89
- s.add_dependency(%q<logging>, ["~> 1.4"])
90
- s.add_dependency(%q<daemons>, ["~> 1.1"])
91
- s.add_dependency(%q<konfigurator>, [">= 0.1.1"])
92
- s.add_dependency(%q<rspec>, ["~> 2.0"])
93
- s.add_dependency(%q<mocha>, ["~> 0.9"])
94
- end
21
+ s.add_runtime_dependency 'rocket-core', [Rocket.version]
22
+ s.add_runtime_dependency 'json', ['>= 1.4']
23
+ s.add_runtime_dependency 'eventmachine', [">= 0.12"]
24
+ s.add_runtime_dependency 'em-websocket', ['>= 0.1.4']
25
+ s.add_runtime_dependency 'logging', ['~> 1.4']
26
+ s.add_runtime_dependency 'daemons', ['~> 1.1']
27
+ s.add_runtime_dependency 'konfigurator', ['>= 0.1.1']
28
+ s.add_runtime_dependency 'optitron', ['>= 0.2']
29
+ s.add_development_dependency 'rspec', ["~> 2.0"]
30
+ s.add_development_dependency 'mocha', [">= 0.9"]
95
31
  end
96
-
@@ -5,10 +5,6 @@ describe Rocket::Server do
5
5
  Rocket::Server
6
6
  end
7
7
 
8
- it ".version should be valid" do
9
- subject.version.should =~ /\d+(.\d+){1,2}.*/
10
- end
11
-
12
8
  describe ".logger=" do
13
9
  it "should set given logger" do
14
10
  subject.logger = :testing
metadata CHANGED
@@ -1,37 +1,38 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket-server
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
- - Araneo
13
+ - Araneo Ltd.
14
14
  - Chris Kowalik
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-03 00:00:00 +01:00
20
- default_executable:
19
+ date: 2010-11-09 00:00:00 +01:00
20
+ default_executable: rocket-server
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- name: optitron
23
+ name: rocket-core
24
24
  prerelease: false
25
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
- - - ~>
28
+ - - "="
29
29
  - !ruby/object:Gem::Version
30
- hash: 15
30
+ hash: 27
31
31
  segments:
32
32
  - 0
33
+ - 0
33
34
  - 2
34
- version: "0.2"
35
+ version: 0.0.2
35
36
  type: :runtime
36
37
  version_requirements: *id001
37
38
  - !ruby/object:Gem::Dependency
@@ -40,7 +41,7 @@ dependencies:
40
41
  requirement: &id002 !ruby/object:Gem::Requirement
41
42
  none: false
42
43
  requirements:
43
- - - ~>
44
+ - - ">="
44
45
  - !ruby/object:Gem::Version
45
46
  hash: 7
46
47
  segments:
@@ -127,9 +128,24 @@ dependencies:
127
128
  type: :runtime
128
129
  version_requirements: *id007
129
130
  - !ruby/object:Gem::Dependency
130
- name: rspec
131
+ name: optitron
131
132
  prerelease: false
132
133
  requirement: &id008 !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ hash: 15
139
+ segments:
140
+ - 0
141
+ - 2
142
+ version: "0.2"
143
+ type: :runtime
144
+ version_requirements: *id008
145
+ - !ruby/object:Gem::Dependency
146
+ name: rspec
147
+ prerelease: false
148
+ requirement: &id009 !ruby/object:Gem::Requirement
133
149
  none: false
134
150
  requirements:
135
151
  - - ~>
@@ -140,14 +156,14 @@ dependencies:
140
156
  - 0
141
157
  version: "2.0"
142
158
  type: :development
143
- version_requirements: *id008
159
+ version_requirements: *id009
144
160
  - !ruby/object:Gem::Dependency
145
161
  name: mocha
146
162
  prerelease: false
147
- requirement: &id009 !ruby/object:Gem::Requirement
163
+ requirement: &id010 !ruby/object:Gem::Requirement
148
164
  none: false
149
165
  requirements:
150
- - - ~>
166
+ - - ">="
151
167
  - !ruby/object:Gem::Version
152
168
  hash: 25
153
169
  segments:
@@ -155,15 +171,12 @@ dependencies:
155
171
  - 9
156
172
  version: "0.9"
157
173
  type: :development
158
- version_requirements: *id009
159
- description: |
160
-
161
- This is a fast web socket server built on awesome EventMachine with em-websockets help.
162
- It provides easy to use, event-oriented middleware for your web-socket powered applications.
163
-
164
- email: chris@nu7hat.ch
165
- executables: []
166
-
174
+ version_requirements: *id010
175
+ description: This is a fast web socket server built on awesome EventMachine with em-websockets help. It provides easy to use, event-oriented middleware for your web-socket powered applications.
176
+ email:
177
+ - chris@nu7hat.ch
178
+ executables:
179
+ - rocket-server
167
180
  extensions: []
168
181
 
169
182
  extra_rdoc_files:
@@ -187,7 +200,6 @@ files:
187
200
  - lib/rocket/server/runner.rb
188
201
  - lib/rocket/server/session.rb
189
202
  - lib/rocket/server/templates/config.yml.tpl
190
- - lib/rocket/server/version.rb
191
203
  - rocket-server.gemspec
192
204
  - spec/apps_spec.rb
193
205
  - spec/channel_spec.rb
@@ -204,8 +216,8 @@ homepage: http://github.com/araneo/rocket
204
216
  licenses: []
205
217
 
206
218
  post_install_message:
207
- rdoc_options:
208
- - --charset=UTF-8
219
+ rdoc_options: []
220
+
209
221
  require_paths:
210
222
  - lib
211
223
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -1,14 +0,0 @@
1
- module Rocket
2
- module Server
3
- module Version # :nodoc:
4
- MAJOR = 0
5
- MINOR = 0
6
- TINY = 1
7
- STRING = [MAJOR, MINOR, TINY].join(".")
8
- end # Version
9
-
10
- def self.version # :nodoc:
11
- Version::STRING
12
- end
13
- end # Server
14
- end # Rocket