RailsEditor 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails-editor.rb +3 -2
- data/rails/config/.screenrc.code.erb +3 -3
- metadata +51 -44
data/lib/rails-editor.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
EDITOR_LIB_HOME = File.expand_path(File.dirname(__FILE__) + "/../")
|
2
2
|
require "rubygems"
|
3
3
|
require "rake/gempackagetask"
|
4
|
+
require "fileutils"
|
4
5
|
class RailsEditor
|
5
6
|
attr_accessor :rails_root
|
6
7
|
def initialize(args = {:rails_root => ENV['PWD']})
|
@@ -25,8 +26,8 @@ class RailsEditor
|
|
25
26
|
puts "Dir.mkdir(" + save_dir + ") "
|
26
27
|
Dir.mkdir(save_dir)
|
27
28
|
end
|
28
|
-
puts "
|
29
|
-
|
29
|
+
puts "FileUtils.cp(" + editor_file + "," + save_dir + "/" + File.basename(editor_file) + ") "
|
30
|
+
FileUtils.cp(editor_file,save_dir + "/" + File.basename(editor_file))
|
30
31
|
end
|
31
32
|
if File.exists? editor_script = @rails_root + "/script/editor"
|
32
33
|
File.chmod(0755,editor_script)
|
@@ -23,6 +23,6 @@ screen -t controllers bash -c 'umask 002;while true;do vim -c "cd <%= OPTIONS[:c
|
|
23
23
|
screen -t views bash -c 'umask 002;while true;do vim -c "cd <%= OPTIONS[:views_base] %>" -c "e .";sleep 1;done'
|
24
24
|
screen -t helpers bash -c 'umask 002;while true;do vim -c "cd <%= OPTIONS[:helpers_base] %>" -c "e .";sleep 1;done'
|
25
25
|
screen -t models bash -c 'umask 002;while true;do vim -c "cd <%= OPTIONS[:models_base] %>" -c "e .";sleep 1;done'
|
26
|
-
screen -t svkwork bash -c 'umask 002;while true; do SVKROOT=<%= ENV['SVKROOT'] || (ENV['REAL_HOME'] + "/.svk") %> <%= OPTIONS[:shell] %>;sleep 1;done'
|
27
|
-
screen -t script bash -c 'umask 002;while true;do <%= OPTIONS[:shell] %>;sleep 2;done'
|
28
|
-
screen -t tests bash -c 'umask 002;while true;do cd <%= OPTIONS[:test_base]
|
26
|
+
screen -t svkwork bash -c 'umask 002;while true; do SVKROOT=<%= ENV['SVKROOT'] || (ENV['REAL_HOME'] + "/.svk") %> RAILS_ENV=<%= OPTIONS[:environment] %> <%= OPTIONS[:shell] %>;sleep 1;done'
|
27
|
+
screen -t script bash -c 'umask 002;while true;do RAILS_ENV=<%= OPTIONS[:environment] %> <%= OPTIONS[:shell] %>;sleep 2;done'
|
28
|
+
screen -t tests bash -c 'umask 002;while true;do cd <%= OPTIONS[:test_base] %>;RAILS_ENV=<%= OPTIONS[:environment] %> <%= OPTIONS[:shell] %>;sleep 1;done'
|
metadata
CHANGED
@@ -1,33 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: RailsEditor
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2007-10-03 00:00:00 -05:00
|
8
|
-
summary: A screen + vim IDE setup for editing a Rails tree
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: admins@rubyists.com
|
12
|
-
homepage: http://rubyists.com
|
13
|
-
rubyforge_project:
|
14
|
-
description:
|
15
|
-
autorequire: rails-editor
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: false
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.0.29
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Rubyists.com (bougyman,deathsyn,trey)
|
8
|
+
autorequire: rails-editor
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-01-25 00:00:00 -06:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
23
|
+
version:
|
24
|
+
description:
|
25
|
+
email: admins@rubyists.com
|
26
|
+
executables:
|
27
|
+
- RailsEditor
|
28
|
+
extensions: []
|
29
|
+
|
30
|
+
extra_rdoc_files:
|
31
|
+
- Changelog
|
32
|
+
- README.rails-editor
|
33
|
+
- INSTALL
|
31
34
|
files:
|
32
35
|
- rails/README.rails-editor
|
33
36
|
- rails/config
|
@@ -46,27 +49,31 @@ files:
|
|
46
49
|
- Changelog
|
47
50
|
- README.rails-editor
|
48
51
|
- INSTALL
|
49
|
-
|
50
|
-
|
52
|
+
has_rdoc: false
|
53
|
+
homepage: http://rubyists.com
|
54
|
+
post_install_message:
|
51
55
|
rdoc_options: []
|
52
56
|
|
53
|
-
|
54
|
-
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
-
|
59
|
-
|
60
|
-
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: "0"
|
64
|
+
version:
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: "0"
|
70
|
+
version:
|
61
71
|
requirements: []
|
62
72
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: 0.0.0
|
72
|
-
version:
|
73
|
+
rubyforge_project:
|
74
|
+
rubygems_version: 0.9.5
|
75
|
+
signing_key:
|
76
|
+
specification_version: 2
|
77
|
+
summary: A screen + vim IDE setup for editing a Rails tree
|
78
|
+
test_files:
|
79
|
+
- tests/ts_rails_editor.rb
|