juggernaut_rails 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/juggernaut/rails/tasks.rb +12 -10
  3. metadata +13 -28
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -1,10 +1,8 @@
1
- require 'escape'
2
-
3
1
  namespace :juggernaut do
4
2
  desc "Install the Juggernaut js and swf files into your Rails application."
5
- task :install => :environment do
3
+ task :install => :environment do
6
4
  require 'fileutils'
7
-
5
+
8
6
  here = File.join(File.dirname(__FILE__), '../../../')
9
7
  there = ::Rails.root
10
8
 
@@ -21,28 +19,28 @@ namespace :juggernaut do
21
19
  FileUtils.cp("#{here}/media/juggernaut_hosts.yml", "#{there}/config/") unless File.exist?("#{there}/config/juggernaut_hosts.yml")
22
20
  puts "Juggernaut has been successfully installed."
23
21
  puts
24
- puts "Please refer to the readme file #{File.expand_path(here)}/README"
22
+ puts "Please refer to the readme file #{File.expand_path(here)}/README"
25
23
  end
26
24
 
27
25
  namespace :install do
28
26
  desc "Install the Juggernaut jQuery JavaScript files into your Rails application."
29
27
  task :jquery => :environment do
30
28
  require 'fileutils'
31
-
29
+
32
30
  here = File.join(File.dirname(__FILE__), '../../../')
33
31
  there = ::Rails.root
34
-
32
+
35
33
  FileUtils.cp("#{here}/media/jquerynaut.js", "#{there}/public/javascripts/juggernaut/")
36
34
  FileUtils.cp("#{here}/media/json.js", "#{there}/public/javascripts/juggernaut/")
37
35
  puts "Installed the Juggernaut jQuery JavaScript files to public/javascripts/juggernaut/"
38
36
  end
39
37
  end
40
-
38
+
41
39
  desc 'Compile the juggernaut flash file'
42
40
  task :compile_flash do
43
41
  `mtasc -version 8 -header 1:1:1 -main -swf media/juggernaut.swf media/juggernaut.as`
44
42
  end
45
-
43
+
46
44
  desc "Start the Juggernaut server"
47
45
  task 'start' => :environment do
48
46
  run_juggernaut('-d')
@@ -52,8 +50,10 @@ namespace :juggernaut do
52
50
  task 'stop' => :environment do
53
51
  run_juggernaut('-k')
54
52
  end
55
-
53
+
56
54
  def run_juggernaut(extra_options=[])
55
+ require 'escape'
56
+
57
57
  defaults = Juggernaut::Rails.default_options
58
58
  extra_options = [extra_options] unless extra_options.is_a?(Array)
59
59
  extra_options << '-e' if Rails.env.development?
@@ -62,5 +62,7 @@ namespace :juggernaut do
62
62
  ENV['RAILS_ENV'] = Rails.env.to_s
63
63
  system(Escape.shell_command(command))
64
64
  end
65
+ rescue LoadError
66
+ puts "Escape not evailable! Please `gem install escape`"
65
67
  end
66
68
  end
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juggernaut_rails
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 6
8
- - 0
9
- version: 0.6.0
4
+ version: 0.6.1
10
5
  platform: ruby
11
6
  authors:
12
7
  - Alex MacCaw
@@ -14,37 +9,29 @@ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2010-04-14 00:00:00 -07:00
12
+ date: 2010-05-10 00:00:00 -07:00
18
13
  default_executable: juggernaut
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: eventmachine
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 10
30
- - 0
31
23
  version: 0.10.0
32
- type: :runtime
33
- version_requirements: *id001
24
+ version:
34
25
  - !ruby/object:Gem::Dependency
35
26
  name: json
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
38
30
  requirements:
39
31
  - - ">="
40
32
  - !ruby/object:Gem::Version
41
- segments:
42
- - 1
43
- - 1
44
- - 2
45
33
  version: 1.1.2
46
- type: :runtime
47
- version_requirements: *id002
34
+ version:
48
35
  description: " The Juggernaut Gem for Ruby on Rails aims to revolutionize your Rails app by letting the server initiate a connection and push data to the client. In other words your app can have a real time connection to the server with the advantage of instant updates. Although the obvious use of this is for chat, the most exciting prospect for me is collaborative cms and wikis.\n \n This Gem bundles Alex MacCaw's Juggernaut Gem and Rails plugin into one, and extends its Rails intergration for a simpler install and setup.\n"
49
36
  email: info@eribium.org
50
37
  executables:
@@ -103,20 +90,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
90
  requirements:
104
91
  - - ">="
105
92
  - !ruby/object:Gem::Version
106
- segments:
107
- - 0
108
93
  version: "0"
94
+ version:
109
95
  required_rubygems_version: !ruby/object:Gem::Requirement
110
96
  requirements:
111
97
  - - ">="
112
98
  - !ruby/object:Gem::Version
113
- segments:
114
- - 0
115
99
  version: "0"
100
+ version:
116
101
  requirements: []
117
102
 
118
103
  rubyforge_project: juggernaut
119
- rubygems_version: 1.3.6
104
+ rubygems_version: 1.3.5
120
105
  signing_key:
121
106
  specification_version: 3
122
107
  summary: A push server written in Ruby with Rails integration.