rocketstarter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/PostInstall.txt +13 -8
- data/README.txt +3 -0
- data/lib/rocketstarter/rocket_starter_core.rb +39 -3
- data/lib/rocketstarter/rocket_starter_options.rb +54 -8
- data/lib/rocketstarter/version.rb +1 -1
- data/lib/rocketstarter.rb +1 -0
- data/website/index.html +91 -29
- data/website/index.txt +63 -25
- data/website/template.html.erb +9 -0
- data.tar.gz.sig +0 -0
- metadata +15 -10
- metadata.gz.sig +2 -2
data/History.txt
CHANGED
data/PostInstall.txt
CHANGED
@@ -1,25 +1,30 @@
|
|
1
1
|
|
2
|
-
1. Set environment valiable.
|
2
|
+
1. Set environment valiable if you want to change a config file path.
|
3
3
|
|
4
|
-
export ROCKET_STARTER_CONF=~/.rocket_starter
|
4
|
+
$ export ROCKET_STARTER_CONF=~/.rocket_starter
|
5
5
|
|
6
6
|
2. Create config file.
|
7
7
|
|
8
|
-
rocketstarter --init
|
8
|
+
$ rocketstarter --init
|
9
9
|
|
10
|
-
3. Modify default values.
|
10
|
+
3. Modify default values and plugin list.
|
11
11
|
|
12
|
-
vi ~/.rocket_starter
|
12
|
+
$ vi ~/.rocket_starter
|
13
|
+
$ vi ~/useful_plugins
|
13
14
|
|
14
15
|
4. Test for setting
|
15
16
|
|
16
|
-
rocketstarter --check
|
17
|
+
$ rocketstarter --check
|
17
18
|
|
18
19
|
5. Create project.
|
19
20
|
|
20
|
-
cd source-dir
|
21
|
-
rocketstarter project_name
|
21
|
+
$ cd source-dir
|
22
|
+
$ rocketstarter project_name
|
22
23
|
|
24
|
+
6. Execute sqld4r if you want
|
25
|
+
|
26
|
+
$ cd project_name/rails/project_name
|
27
|
+
$ sqld4r /path/to/DBDesigner.xml
|
23
28
|
|
24
29
|
For more information on rocket-starter, see http://rocket-starter.rubyforge.org
|
25
30
|
|
data/README.txt
CHANGED
@@ -11,8 +11,11 @@ When you want to create new rails applications, the Rocket-starter can set up ba
|
|
11
11
|
|
12
12
|
* create basic directories
|
13
13
|
* commit to subversion or git repositories
|
14
|
+
* set svn:ignore property or .gitignore file.
|
14
15
|
* install plugins
|
15
16
|
* use RaPT gem for managing plugins (Optional)
|
17
|
+
* write password to config/database.yml
|
18
|
+
* create databases before finish by 'rake db:create:all' command
|
16
19
|
|
17
20
|
== SYNOPSIS:
|
18
21
|
|
@@ -2,9 +2,6 @@ require 'rubygems'
|
|
2
2
|
require File.dirname(__FILE__) + "/rocket_starter_options"
|
3
3
|
|
4
4
|
class Rocket_starter_core
|
5
|
-
# not use this version number in this class
|
6
|
-
@@version = [ 0, 0, 1 ]
|
7
|
-
|
8
5
|
def initialize(frontend)
|
9
6
|
@options = frontend
|
10
7
|
@logfile = File::new( @options[:log_file], "a" ) if @options[:logging]
|
@@ -78,6 +75,11 @@ put gitignore files
|
|
78
75
|
setup_plugins
|
79
76
|
subversion_commit "install rails plugins"
|
80
77
|
end
|
78
|
+
unless @options[:dbpassword].empty?
|
79
|
+
overwrite_database_password if not @options[:dbpassword].empty? and "mysql" == @options["database"]
|
80
|
+
subversion_commit "over write password about config/database.yml"
|
81
|
+
end
|
82
|
+
create_databases if @options[:createdb]
|
81
83
|
elsif "git" == @options[:scmtype]
|
82
84
|
git_project_dirs_and_init
|
83
85
|
create_basic_dirs_and_project
|
@@ -91,6 +93,11 @@ put gitignore files
|
|
91
93
|
setup_plugins
|
92
94
|
git_commit "install rails plugins"
|
93
95
|
end
|
96
|
+
unless @options[:dbpassword].empty?
|
97
|
+
overwrite_database_password if not @options[:dbpassword].empty? and "mysql" == @options["database"]
|
98
|
+
git_commit "over write password about config/database.yml"
|
99
|
+
end
|
100
|
+
create_databases if @options[:createdb]
|
94
101
|
else
|
95
102
|
Rocket_starter_options::error_with_show_usage "irigal SCM type or scmuri is empty."
|
96
103
|
end
|
@@ -226,6 +233,7 @@ put gitignore files
|
|
226
233
|
|
227
234
|
File.open(@options[:pluginlist_path]) do |plugin_file|
|
228
235
|
plugin_file.each do |line|
|
236
|
+
next if /^#.*/ =~ line or line.chomp.empty?
|
229
237
|
if @options[:rapt]
|
230
238
|
exec_shell_command "rapt install #{plugin_option} #{line}"
|
231
239
|
else
|
@@ -239,6 +247,34 @@ put gitignore files
|
|
239
247
|
end
|
240
248
|
end
|
241
249
|
|
250
|
+
def text_insert_to(filename)
|
251
|
+
current_model_contents = []
|
252
|
+
File::open(filename, "r") do |file|
|
253
|
+
current_model_contents = file.readlines
|
254
|
+
end
|
255
|
+
File::open(filename, "w") do |file|
|
256
|
+
current_model_contents.each do |line|
|
257
|
+
yield(file, line)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
def overwrite_database_password
|
263
|
+
notice "Over write password about config/database.yml"
|
264
|
+
text_insert_to("config/database.yml") do |file, line|
|
265
|
+
if /password:/ =~ line
|
266
|
+
file.puts line + " " + @options[:dbpassword]
|
267
|
+
else
|
268
|
+
file.puts line
|
269
|
+
end
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
def create_databases
|
274
|
+
notice "Create all databases"
|
275
|
+
exec_shell_command "rake db:create:all"
|
276
|
+
end
|
277
|
+
|
242
278
|
protected
|
243
279
|
|
244
280
|
def managed_chdir(path)
|
@@ -4,7 +4,7 @@ require "readline"
|
|
4
4
|
|
5
5
|
|
6
6
|
class Rocket_starter_options < Hash
|
7
|
-
@@version =
|
7
|
+
@@version = Rocketstarter::VERSION::STRING
|
8
8
|
@@product_name = "rocket_starter"
|
9
9
|
|
10
10
|
@@command_line_params = {}
|
@@ -14,7 +14,7 @@ class Rocket_starter_options < Hash
|
|
14
14
|
|
15
15
|
# default values
|
16
16
|
self[:project] = ""
|
17
|
-
self[:rocket_starter_conf_path] = ""
|
17
|
+
self[:rocket_starter_conf_path] = ENV["HOME"] + "/.rocketst_starter"
|
18
18
|
self[:rocket_starter_conf_path] = ENV['ROCKET_STARTER_CONF'] unless ENV['ROCKET_STARTER_CONF'].nil?
|
19
19
|
self[:init] = false
|
20
20
|
self.merge(Rocket_starter_options::static_default_values)
|
@@ -29,7 +29,7 @@ class Rocket_starter_options < Hash
|
|
29
29
|
opts.banner = "Usage: #{@@product_name} project-name [options]"
|
30
30
|
opts.separator "Usage: #{@@product_name} --init [options]"
|
31
31
|
opts.separator "Usage: #{@@product_name} --check [options]"
|
32
|
-
opts.separator "version #{@@version
|
32
|
+
opts.separator "version #{@@version}"
|
33
33
|
|
34
34
|
opts.separator ""
|
35
35
|
opts.separator "Useful Options:"
|
@@ -95,6 +95,14 @@ class Rocket_starter_options < Hash
|
|
95
95
|
@@command_line_params[:external] = true
|
96
96
|
end
|
97
97
|
|
98
|
+
opts.on( '--createdb', 'execute rake db:create:all at last' ) do
|
99
|
+
@@command_line_params[:createdb] = true
|
100
|
+
end
|
101
|
+
|
102
|
+
opts.on( '--dbpassword', 'write password to config/database.yml file' ) do |p|
|
103
|
+
@@command_line_params[:dbpassword] = p
|
104
|
+
end
|
105
|
+
|
98
106
|
opts.on( '--emulate', 'enable emulation mode' ) do
|
99
107
|
@@command_line_params[:emulate] = true
|
100
108
|
end
|
@@ -109,11 +117,11 @@ class Rocket_starter_options < Hash
|
|
109
117
|
end
|
110
118
|
|
111
119
|
opts.on( '-v', '--version', 'display version information' ) do
|
112
|
-
puts "Ruby on Rails environment setup tool: #{@@product_name} version #{@@version
|
120
|
+
puts "Ruby on Rails environment setup tool: #{@@product_name} version #{@@version}"
|
113
121
|
exit
|
114
122
|
end
|
115
123
|
|
116
|
-
opts.on( '--init', 'setup a template of conf file' ) do
|
124
|
+
opts.on( '--init', 'setup a template of conf file and plugin list file' ) do
|
117
125
|
self[:init] = true
|
118
126
|
end
|
119
127
|
|
@@ -141,6 +149,7 @@ class Rocket_starter_options < Hash
|
|
141
149
|
end
|
142
150
|
if self[:init] or "--init" == self[:project]
|
143
151
|
put_conf_file
|
152
|
+
put_pluginlist_file
|
144
153
|
exit
|
145
154
|
end
|
146
155
|
self
|
@@ -175,6 +184,40 @@ class Rocket_starter_options < Hash
|
|
175
184
|
puts "Warning:Could not open for writing. check parmitions."
|
176
185
|
end
|
177
186
|
end
|
187
|
+
|
188
|
+
# write a template plugin list file to :pluginlist_path
|
189
|
+
def put_pluginlist_file
|
190
|
+
# check put path
|
191
|
+
Sqld4r_options::error_with_show_usage "plugin list path is empty. set --pluginlist_path paramater." if self[:pluginlist_path].empty?
|
192
|
+
|
193
|
+
unless "y" == Readline.readline("Would a template of plugin list file put to #{self[:pluginlist_path]}? [y/N] > ").downcase
|
194
|
+
puts "Set your command list path to --pluginlist_path paramater."
|
195
|
+
exit
|
196
|
+
end
|
197
|
+
|
198
|
+
begin
|
199
|
+
File.open(self[:pluginlist_path]) do |textfile|
|
200
|
+
# check overwrite?
|
201
|
+
exit unless "y" == Readline.readline("Overwrite? [y/N]").downcase
|
202
|
+
end
|
203
|
+
rescue
|
204
|
+
end
|
205
|
+
|
206
|
+
begin
|
207
|
+
File.open(self[:pluginlist_path], "w") do |textfile|
|
208
|
+
textfile.puts "# command list file for executing it before finish"
|
209
|
+
textfile.puts ""
|
210
|
+
textfile.puts "# <- this line is comment."
|
211
|
+
textfile.puts "# next line is plugin URI:"
|
212
|
+
textfile.puts "http://svn.cardboardrocket.com/paginating_find"
|
213
|
+
textfile.puts "http://svn.techno-weenie.net/projects/plugins/attachment_fu/"
|
214
|
+
textfile.puts "http://svn.s21g.com/public/rails/plugins/annotate_models_with_index/"
|
215
|
+
end
|
216
|
+
puts "Put template of plugin list file to #{self[:pluginlist_path]}"
|
217
|
+
rescue
|
218
|
+
puts "Warning:Could not open for writing. check parmitions."
|
219
|
+
end
|
220
|
+
end
|
178
221
|
|
179
222
|
def self.error_with_show_usage(message)
|
180
223
|
puts "Error:" + message
|
@@ -206,12 +249,14 @@ class Rocket_starter_options < Hash
|
|
206
249
|
defaults[:verbose] = false
|
207
250
|
defaults[:sudo] = false
|
208
251
|
defaults[:logging] = false
|
209
|
-
defaults[:log_file] = "
|
252
|
+
defaults[:log_file] = ENV["HOME"] + "/rocket_starter.log"
|
210
253
|
defaults[:skip_netbeans] = false
|
211
|
-
defaults[:pluginlist_path] = "
|
254
|
+
defaults[:pluginlist_path] = ENV["HOME"] + "/useful_plugins"
|
212
255
|
defaults[:skip_plugins] = false
|
213
256
|
defaults[:rapt] = false
|
214
257
|
defaults[:external] = false
|
258
|
+
defaults[:createdb] = false
|
259
|
+
defaults[:dbpassword] = ""
|
215
260
|
defaults[:emulate] = false
|
216
261
|
defaults
|
217
262
|
end
|
@@ -222,7 +267,8 @@ class Rocket_starter_options < Hash
|
|
222
267
|
# can open?
|
223
268
|
begin
|
224
269
|
File::open(self[:rocket_starter_conf_path]) do |conf_file|
|
225
|
-
|
270
|
+
temp = YAML.load(conf_file.read)
|
271
|
+
conf_params = temp if temp
|
226
272
|
end
|
227
273
|
rescue
|
228
274
|
end
|
data/lib/rocketstarter.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
$:.unshift(File.dirname(__FILE__)) unless
|
2
2
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
3
|
|
4
|
+
require File.dirname(__FILE__) + "/rocketstarter/version"
|
4
5
|
require File.dirname(__FILE__) + "/rocketstarter/rocket_starter_core"
|
5
6
|
require File.dirname(__FILE__) + "/rocketstarter/rocket_starter_options"
|
6
7
|
|
data/website/index.html
CHANGED
@@ -33,84 +33,137 @@
|
|
33
33
|
<h1>rocket starter</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rocketstarter"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/rocketstarter" class="numbers">0.0.
|
36
|
+
<a href="http://rubyforge.org/projects/rocketstarter" class="numbers">0.0.2</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘rocketstarter’</h1>
|
39
39
|
|
40
40
|
|
41
|
-
<
|
41
|
+
<p><a href="http://fromnorth.blogspot.com/2008/06/rubygemrocket-starter.html">Here is Japanese version of manual.</a></p>
|
42
42
|
|
43
43
|
|
44
|
-
<h2>
|
44
|
+
<h2>What is this?</h2>
|
45
|
+
|
46
|
+
|
47
|
+
<p>This gem is tool for creating new rails application.<br />
|
48
|
+
The Rocket-starter can set up basic directories and svn/git repositories for your applications when you want to start it.<br />
|
49
|
+
If you want, you can use the git and the RaPT gem and a list of plugins.<br /></p>
|
50
|
+
|
51
|
+
|
52
|
+
<h2>Features</h2>
|
53
|
+
|
54
|
+
|
55
|
+
<ul>
|
56
|
+
<li>create basic directories<br /></li>
|
57
|
+
<li>commit to subversion or git repositories<br /></li>
|
58
|
+
<li>set svn:ignore property or .gitignore file.<br /></li>
|
59
|
+
<li>install plugins<br /></li>
|
60
|
+
<li>use RaPT gem for managing plugins (Optional)<br /></li>
|
61
|
+
<li>write password to config/database.yml<br /></li>
|
62
|
+
<li>create databases before finish by ‘rake db:create:all’ command<br /></li>
|
63
|
+
</ul>
|
45
64
|
|
46
65
|
|
47
|
-
<
|
66
|
+
<h2>Installing</h2>
|
48
67
|
|
49
68
|
|
50
|
-
<
|
69
|
+
<p><pre class='syntax'><span class="ident">gem</span> <span class="ident">install</span> <span class="ident">rocketstarter</span></pre></p>
|
51
70
|
|
52
71
|
|
53
72
|
<h2>Demonstration of usage</h2>
|
54
73
|
|
55
74
|
|
56
|
-
<
|
75
|
+
<p><pre class='syntax'>
|
76
|
+
<span class="constant">Usage</span><span class="punct">:</span> <span class="ident">rocket_starter</span> <span class="ident">project</span><span class="punct">-</span><span class="ident">name</span> <span class="punct">[</span><span class="ident">options</span><span class="punct">]</span>
|
77
|
+
<span class="constant">Usage</span><span class="punct">:</span> <span class="ident">rocket_starter</span> <span class="punct">--</span><span class="ident">init</span> <span class="punct">[</span><span class="ident">options</span><span class="punct">]</span>
|
78
|
+
<span class="constant">Usage</span><span class="punct">:</span> <span class="ident">rocket_starter</span> <span class="punct">--</span><span class="ident">check</span> <span class="punct">[</span><span class="ident">options</span><span class="punct">]</span>
|
79
|
+
<span class="keyword">and</span> <span class="ident">more</span><span class="punct">...</span>
|
80
|
+
<span class="constant">Usage</span><span class="punct">:</span> <span class="ident">rocket_starter</span> <span class="punct">--</span><span class="ident">help</span>
|
81
|
+
</pre></p>
|
57
82
|
|
58
83
|
|
59
|
-
<
|
84
|
+
<h2>How to use</h2>
|
60
85
|
|
61
86
|
|
62
|
-
<p
|
87
|
+
<p>1. Set environment valiable if you want to change a config file path.</p>
|
63
88
|
|
64
89
|
|
65
|
-
<
|
90
|
+
<p><pre class='syntax'>
|
91
|
+
<span class="global">$ </span><span class="ident">export</span> <span class="constant">ROCKET_STARTER_CONF</span><span class="punct">=~/</span><span class="regex">.rocket_starter<span class="normal">
|
92
|
+
</span></span></pre></p>
|
66
93
|
|
67
94
|
|
68
|
-
<p>
|
95
|
+
<p>2. Create config file.</p>
|
69
96
|
|
70
97
|
|
71
|
-
<p><
|
98
|
+
<p><pre class='syntax'>
|
99
|
+
<span class="global">$ </span><span class="ident">rocketstarter</span> <span class="punct">--</span><span class="ident">init</span>
|
100
|
+
</pre></p>
|
72
101
|
|
73
102
|
|
74
|
-
<p>
|
103
|
+
<p>3. Modify default values and plugin list.</p>
|
75
104
|
|
76
105
|
|
77
|
-
<p><
|
106
|
+
<p><pre class='syntax'>
|
107
|
+
<span class="global">$ </span><span class="ident">vi</span> ~<span class="punct">/.</span><span class="ident">rocket_starter</span>
|
108
|
+
<span class="global">$ </span><span class="ident">vi</span> ~<span class="punct">/</span><span class="ident">useful_plugins</span>
|
109
|
+
</pre></p>
|
78
110
|
|
79
111
|
|
80
|
-
<p>
|
112
|
+
<p>4. Test for setting</p>
|
81
113
|
|
82
114
|
|
83
|
-
<
|
84
|
-
|
85
|
-
|
115
|
+
<p><pre class='syntax'>
|
116
|
+
<span class="global">$ </span><span class="ident">rocketstarter</span> <span class="punct">--</span><span class="ident">check</span>
|
117
|
+
</pre></p>
|
86
118
|
|
87
119
|
|
88
|
-
<p
|
89
|
-
yet to refresh your local rubyforge data with this projects’ id information.</p>
|
120
|
+
<p>5. Create project.</p>
|
90
121
|
|
91
122
|
|
92
|
-
<p
|
123
|
+
<p><pre class='syntax'>
|
124
|
+
<span class="global">$ </span><span class="ident">cd</span> <span class="ident">source</span><span class="punct">-</span><span class="ident">dir</span>
|
125
|
+
<span class="global">$ </span><span class="ident">rocketstarter</span> <span class="ident">project_name</span>
|
126
|
+
</pre></p>
|
93
127
|
|
94
128
|
|
95
|
-
<p>
|
129
|
+
<p>6. Execute sqld4r if you want</p>
|
96
130
|
|
97
131
|
|
98
|
-
<
|
99
|
-
|
100
|
-
|
132
|
+
<p><pre class='syntax'>
|
133
|
+
<span class="global">$ </span><span class="ident">cd</span> <span class="ident">project_name</span><span class="punct">/</span><span class="ident">rails</span><span class="punct">/</span><span class="ident">project_name</span>
|
134
|
+
<span class="global">$ </span><span class="ident">sqld4r</span> <span class="punct">/</span><span class="ident">path</span><span class="punct">/</span><span class="ident">to</span><span class="punct">/</span><span class="constant">DBDesigner</span><span class="punct">.</span><span class="ident">xml</span>
|
135
|
+
</pre></p>
|
136
|
+
|
137
|
+
|
138
|
+
<h2>Forum</h2>
|
139
|
+
|
140
|
+
|
141
|
+
<p><a href="http://groups.google.com/group/rocket-starter">http://groups.google.com/group/rocket-starter</a></p>
|
142
|
+
|
143
|
+
|
144
|
+
<h2>How to submit patches</h2>
|
101
145
|
|
102
146
|
|
103
|
-
<
|
147
|
+
<p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people’s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
|
104
148
|
|
105
|
-
|
149
|
+
|
150
|
+
<p>You can fetch the source from either:</p>
|
106
151
|
|
107
152
|
|
108
153
|
<ul>
|
109
|
-
<li>
|
154
|
+
<li>rubyforge: <span class="caps">MISSING IN ACTION</span></li>
|
110
155
|
</ul>
|
111
156
|
|
112
157
|
|
113
|
-
<
|
158
|
+
<p><span class="caps">TODO</span> – You can not created a RubyForge project, OR have not run <code>rubyforge config</code>
|
159
|
+
yet to refresh your local rubyforge data with this projects’ id information.</p>
|
160
|
+
|
161
|
+
|
162
|
+
<p>When you do this, this message will magically disappear!</p>
|
163
|
+
|
164
|
+
|
165
|
+
<p>Or you can hack website/index.txt and make it all go away!!</p>
|
166
|
+
|
114
167
|
|
115
168
|
<h3>Build and test instructions</h3>
|
116
169
|
|
@@ -130,12 +183,21 @@ rake install_gem</pre>
|
|
130
183
|
|
131
184
|
<p>Comments are welcome. Send an email to <a href="mailto:maimuzo@gmail.com">maimuzo</a> via the <a href="http://groups.google.com/group/rocket-starter">forum</a></p>
|
132
185
|
<p class="coda">
|
133
|
-
<a href="maimuzo@gmail.com">Yusuke Ohmichi(maimuzo)</a>,
|
186
|
+
<a href="maimuzo@gmail.com">Yusuke Ohmichi(maimuzo)</a>, 24th June 2008<br>
|
134
187
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
135
188
|
</p>
|
136
189
|
</div>
|
137
190
|
|
138
191
|
<!-- insert site tracking codes here, like Google Urchin -->
|
192
|
+
<script type="text/javascript">
|
193
|
+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
194
|
+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
195
|
+
</script>
|
196
|
+
<script type="text/javascript">
|
197
|
+
var pageTracker = _gat._getTracker("UA-1165680-4");
|
198
|
+
pageTracker._initData();
|
199
|
+
pageTracker._trackPageview();
|
200
|
+
</script>
|
139
201
|
|
140
202
|
</body>
|
141
203
|
</html>
|
data/website/index.txt
CHANGED
@@ -2,36 +2,87 @@ h1. rocket starter
|
|
2
2
|
|
3
3
|
h1. → 'rocketstarter'
|
4
4
|
|
5
|
+
"Here is Japanese version of manual.":http://fromnorth.blogspot.com/2008/06/rubygemrocket-starter.html
|
5
6
|
|
6
|
-
h2. What
|
7
|
+
h2. What is this?
|
7
8
|
|
9
|
+
This gem is tool for creating new rails application.<br />
|
10
|
+
The Rocket-starter can set up basic directories and svn/git repositories for your applications when you want to start it.<br />
|
11
|
+
If you want, you can use the git and the RaPT gem and a list of plugins.<br />
|
8
12
|
|
9
|
-
h2.
|
13
|
+
h2. Features
|
10
14
|
|
11
|
-
|
15
|
+
* create basic directories<br />
|
16
|
+
* commit to subversion or git repositories<br />
|
17
|
+
* set svn:ignore property or .gitignore file.<br />
|
18
|
+
* install plugins<br />
|
19
|
+
* use RaPT gem for managing plugins (Optional)<br />
|
20
|
+
* write password to config/database.yml<br />
|
21
|
+
* create databases before finish by 'rake db:create:all' command<br />
|
12
22
|
|
13
|
-
h2.
|
23
|
+
h2. Installing
|
14
24
|
|
25
|
+
<pre syntax="ruby">gem install rocketstarter</pre>
|
15
26
|
|
16
27
|
h2. Demonstration of usage
|
17
28
|
|
29
|
+
<pre syntax="ruby">
|
30
|
+
Usage: rocket_starter project-name [options]
|
31
|
+
Usage: rocket_starter --init [options]
|
32
|
+
Usage: rocket_starter --check [options]
|
33
|
+
and more...
|
34
|
+
Usage: rocket_starter --help
|
35
|
+
</pre>
|
18
36
|
|
37
|
+
h2. How to use
|
19
38
|
|
20
|
-
|
39
|
+
1. Set environment valiable if you want to change a config file path.
|
21
40
|
|
22
|
-
"
|
41
|
+
<pre syntax="ruby">
|
42
|
+
$ export ROCKET_STARTER_CONF=~/.rocket_starter
|
43
|
+
</pre>
|
23
44
|
|
24
|
-
|
45
|
+
2. Create config file.
|
25
46
|
|
26
|
-
|
47
|
+
<pre syntax="ruby">
|
48
|
+
$ rocketstarter --init
|
49
|
+
</pre>
|
27
50
|
|
28
|
-
|
51
|
+
3. Modify default values and plugin list.
|
52
|
+
|
53
|
+
<pre syntax="ruby">
|
54
|
+
$ vi ~/.rocket_starter
|
55
|
+
$ vi ~/useful_plugins
|
56
|
+
</pre>
|
29
57
|
|
30
|
-
|
58
|
+
4. Test for setting
|
31
59
|
|
32
|
-
|
60
|
+
<pre syntax="ruby">
|
61
|
+
$ rocketstarter --check
|
62
|
+
</pre>
|
33
63
|
|
34
|
-
|
64
|
+
5. Create project.
|
65
|
+
|
66
|
+
<pre syntax="ruby">
|
67
|
+
$ cd source-dir
|
68
|
+
$ rocketstarter project_name
|
69
|
+
</pre>
|
70
|
+
|
71
|
+
6. Execute sqld4r if you want
|
72
|
+
|
73
|
+
<pre syntax="ruby">
|
74
|
+
$ cd project_name/rails/project_name
|
75
|
+
$ sqld4r /path/to/DBDesigner.xml
|
76
|
+
</pre>
|
77
|
+
|
78
|
+
|
79
|
+
h2. Forum
|
80
|
+
|
81
|
+
"http://groups.google.com/group/rocket-starter":http://groups.google.com/group/rocket-starter
|
82
|
+
|
83
|
+
h2. How to submit patches
|
84
|
+
|
85
|
+
Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
|
35
86
|
|
36
87
|
You can fetch the source from either:
|
37
88
|
|
@@ -54,25 +105,12 @@ Or you can hack website/index.txt and make it all go away!!
|
|
54
105
|
|
55
106
|
<% end %>
|
56
107
|
|
57
|
-
* github: "http://github.com/GITHUB_USERNAME/rocketstarter/tree/master":http://github.com/GITHUB_USERNAME/rocketstarter/tree/master
|
58
|
-
|
59
|
-
<pre>git clone git://github.com/GITHUB_USERNAME/rocketstarter.git</pre>
|
60
|
-
|
61
|
-
|
62
|
-
TODO - add "github_username: username" to ~/.rubyforge/user-config.yml and newgem will reuse it for future projects.
|
63
|
-
|
64
|
-
|
65
|
-
* gitorious: "git://gitorious.org/rocketstarter/mainline.git":git://gitorious.org/rocketstarter/mainline.git
|
66
|
-
|
67
|
-
<pre>git clone git://gitorious.org/rocketstarter/mainline.git</pre>
|
68
|
-
|
69
108
|
h3. Build and test instructions
|
70
109
|
|
71
110
|
<pre>cd rocketstarter
|
72
111
|
rake test
|
73
112
|
rake install_gem</pre>
|
74
113
|
|
75
|
-
|
76
114
|
h2. License
|
77
115
|
|
78
116
|
This code is free to use under the terms of the MIT license.
|
data/website/template.html.erb
CHANGED
@@ -43,6 +43,15 @@
|
|
43
43
|
</div>
|
44
44
|
|
45
45
|
<!-- insert site tracking codes here, like Google Urchin -->
|
46
|
+
<script type="text/javascript">
|
47
|
+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
48
|
+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
49
|
+
</script>
|
50
|
+
<script type="text/javascript">
|
51
|
+
var pageTracker = _gat._getTracker("UA-1165680-4");
|
52
|
+
pageTracker._initData();
|
53
|
+
pageTracker._trackPageview();
|
54
|
+
</script>
|
46
55
|
|
47
56
|
</body>
|
48
57
|
</html>
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocketstarter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yusuke Ohmichi(maimuzo)
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
KWTqcg==
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2008-06-
|
33
|
+
date: 2008-06-25 00:00:00 +09:00
|
34
34
|
default_executable:
|
35
35
|
dependencies: []
|
36
36
|
|
@@ -83,27 +83,32 @@ has_rdoc: true
|
|
83
83
|
homepage: http://rocketstarter.rubyforge.org
|
84
84
|
post_install_message: |+
|
85
85
|
|
86
|
-
1. Set environment valiable.
|
86
|
+
1. Set environment valiable if you want to change a config file path.
|
87
87
|
|
88
|
-
export ROCKET_STARTER_CONF=~/.rocket_starter
|
88
|
+
$ export ROCKET_STARTER_CONF=~/.rocket_starter
|
89
89
|
|
90
90
|
2. Create config file.
|
91
91
|
|
92
|
-
rocketstarter --init
|
92
|
+
$ rocketstarter --init
|
93
93
|
|
94
|
-
3. Modify default values.
|
94
|
+
3. Modify default values and plugin list.
|
95
95
|
|
96
|
-
vi ~/.rocket_starter
|
96
|
+
$ vi ~/.rocket_starter
|
97
|
+
$ vi ~/useful_plugins
|
97
98
|
|
98
99
|
4. Test for setting
|
99
100
|
|
100
|
-
rocketstarter --check
|
101
|
+
$ rocketstarter --check
|
101
102
|
|
102
103
|
5. Create project.
|
103
104
|
|
104
|
-
cd source-dir
|
105
|
-
rocketstarter project_name
|
105
|
+
$ cd source-dir
|
106
|
+
$ rocketstarter project_name
|
106
107
|
|
108
|
+
6. Execute sqld4r if you want
|
109
|
+
|
110
|
+
$ cd project_name/rails/project_name
|
111
|
+
$ sqld4r /path/to/DBDesigner.xml
|
107
112
|
|
108
113
|
For more information on rocket-starter, see http://rocket-starter.rubyforge.org
|
109
114
|
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
61gM��
|
2
|
+
�{�f��c�D�ĩN/RC�g����9E�4\��i��=�x��k��N����R�������t�"嘬@DM�}Up+�:�9��P�.�f��� �<��㩥ϭj�|�sk���~qb}݊.� zuIȩ��X6�=��^��Ty�����=X���yg�r�Ǘ�rE��&0�+��ʋ�C���%�$Y>��< f�gl쀪�T��?����4�?Oؒ�S�Xk[�QMez�S�蚖���!
|