rocket-core 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,43 +1,9 @@
1
1
  # -*- ruby -*-
2
- $:.unshift(File.expand_path('../lib', __FILE__))
3
- $:.unshift(File.expand_path('../../rocket/lib', __FILE__))
4
- require 'rspec/core/rake_task'
5
- require 'rake/rdoctask'
2
+ require File.expand_path('../../load_paths', __FILE__)
6
3
  require 'rocket/version'
7
4
 
8
- RSpec::Core::RakeTask.new(:spec) do |t|
9
- t.pattern = 'spec/**/*_spec.rb'
10
- t.rspec_opts = %q[-I../rocket/lib -Ilib -c -b]
11
- end
5
+ $LIB_BASENAME = "rocket-core"
6
+ $LIB_FULLNAME = "#{$LIB_BASENAME}-#{Rocket.version}"
7
+ $LIB_TITLE = "Rocket Core #{Rocket.version}"
12
8
 
13
- RSpec::Core::RakeTask.new(:rcov) do |t|
14
- t.rcov = true
15
- t.rspec_opts = %q[-I../rocket/lib -Ilib -c -b]
16
- t.rcov_opts = %q[-I../rocket/lib -Ilib -T -x "spec"]
17
- end
18
-
19
- Rake::RDocTask.new do |rdoc|
20
- rdoc.title = "Rocket core #{Rocket.version}"
21
- rdoc.rdoc_dir = 'rdoc'
22
- rdoc.rdoc_files.include('README*')
23
- rdoc.rdoc_files.include('lib/**/*.rb')
24
- end
25
-
26
- desc "Build current version as a rubygem"
27
- task :build do
28
- sh "gem build rocket-core.gemspec"
29
- sh "mkdir -p pkg"
30
- sh "mv rocket-core-*.gem pkg/"
31
- end
32
-
33
- desc "Relase current version to rubygems.org"
34
- task :release => :build do
35
- sh "gem push pkg/rocket-core-#{Rocket.version}.gem"
36
- end
37
-
38
- desc "Perform installation via rubygems"
39
- task :install => :build do
40
- sh "gem install pkg/rocket-core-#{Rocket.version}.gem"
41
- end
42
-
43
- task :default => :spec
9
+ load File.expand_path('../../Rakefile.common', __FILE__)
data/lib/rocket-core.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  module Rocket
2
2
 
3
+ autoload :WebSocket, 'rocket/websocket'
3
4
  autoload :Helpers, 'rocket/helpers'
4
5
  autoload :Client, 'rocket/client'
5
6
  autoload :Channel, 'rocket/channel'
6
- autoload :WebSocket, 'rocket/websocket'
7
7
 
8
8
  end # Rocket
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
- require 'rubygems'
1
+ require File.expand_path("../../../load_paths", __FILE__)
2
+
2
3
  require 'mocha'
3
4
  require 'rspec'
4
5
  require 'rocket'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Araneo Ltd.
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-09 00:00:00 +01:00
19
+ date: 2010-11-29 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency