rocketstarter 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ == 0.0.3 2008-06-30
2
+
3
+ * change default of plugin-list name from "$HOME/useful_plugins" to "$HOME/.rocket_starter_pluginlist".
4
+ * Add all files and directories to the repository at last when using the subversion.
5
+ * fix from "svn rm -r log/*" to "svn rm log/*". (thank you Mr.Komagata)
6
+ * fix some bugs.
7
+
1
8
  == 0.0.2 2008-06-24
2
9
 
3
10
  * make a template of the plugin list.
data/PostInstall.txt CHANGED
@@ -19,7 +19,7 @@ $ rocketstarter --check
19
19
  5. Create project.
20
20
 
21
21
  $ cd source-dir
22
- $ rocketstarter project_name
22
+ $ rocketstarter project_name --scmuri=http://svn.example.com:/svn/path/to/repos
23
23
 
24
24
  6. Execute sqld4r if you want
25
25
 
@@ -72,7 +72,8 @@ put gitignore files
72
72
  subversion_propset_for_netbeans unless @options[:skip_netbeans]
73
73
  subversion_commit "set svn:ignore"
74
74
  unless @options[:skip_plugins] or @options[:pluginlist_path].empty?
75
- setup_plugins
75
+ setup_plugins
76
+ subversion_add_all unless @options[:skip_commit_for_plugins]
76
77
  subversion_commit "install rails plugins"
77
78
  end
78
79
  unless @options[:dbpassword].empty?
@@ -90,7 +91,7 @@ put gitignore files
90
91
  git_ignore_for_netbeans unless @options[:skip_netbeans]
91
92
  git_commit "put .gitignore files"
92
93
  unless @options[:skip_plugins] or @options[:pluginlist_path].empty?
93
- setup_plugins
94
+ setup_plugins
94
95
  git_commit "install rails plugins"
95
96
  end
96
97
  unless @options[:dbpassword].empty?
@@ -174,18 +175,21 @@ put gitignore files
174
175
  rails_option = ""
175
176
  end
176
177
  rails_option << " --database=" + @options[:database] unless "" == @options[:database]
177
- if exec_shell_command "rails #{@options[:project]}" + rails_option
178
- notice "Rails Project Folder Successfully Created."
179
- else
180
- notice "Error creating the Rails project folder: exiting."
181
- exit
182
- end
178
+ exec_shell_command "rails #{@options[:project]}" + rails_option
179
+ notice "Rails Project Folder Successfully Created."
183
180
  end
184
181
 
185
182
  def subversion_commit(message)
186
183
  notice "Commiting to subversion for " + message
187
184
  exec_shell_command "svn commit #{@scm_root} #{@scm_password} -m '#{message}'"
188
185
  end
186
+
187
+ def subversion_add_all
188
+ notice "Add all files and directories to the repository from svn status"
189
+ `svn status`.split("\n").each do |line|
190
+ exec_shell_command "svn add #{line.slice(/\?\s+(.+)/, 1)}"
191
+ end
192
+ end
189
193
 
190
194
  def trim_project
191
195
  notice "Triming initial project."
@@ -196,8 +200,8 @@ put gitignore files
196
200
  when "svn"
197
201
  exec_shell_command "svn rm doc/README_FOR_APP"
198
202
  exec_shell_command "svn rm README"
199
- exec_shell_command "svn rm -r log/*"
200
- exec_shell_command "svn rm -r tmp/*"
203
+ exec_shell_command "svn rm log/*"
204
+ exec_shell_command "svn rm tmp/*"
201
205
  when "git"
202
206
  exec_shell_command "rm doc/README_FOR_APP"
203
207
  exec_shell_command "rm README"
@@ -310,7 +314,7 @@ put gitignore files
310
314
  puts '-->' + result if @options[:verbose] and not result.nil? and not result.empty?
311
315
  @logfile.puts '-->' + result if @options[:logging] and not result.nil? and not result.empty?
312
316
  Rocket_starter_options::error_with_show_usage "receive error from command." unless 0 == $?
313
- $?
317
+ result
314
318
  end
315
319
 
316
320
  end
@@ -14,10 +14,10 @@ class Rocket_starter_options < Hash
14
14
 
15
15
  # default values
16
16
  self[:project] = ""
17
- self[:rocket_starter_conf_path] = ENV["HOME"] + "/.rocketst_starter"
17
+ self[:rocket_starter_conf_path] = ENV["HOME"] + "/.rocket_starter"
18
18
  self[:rocket_starter_conf_path] = ENV['ROCKET_STARTER_CONF'] unless ENV['ROCKET_STARTER_CONF'].nil?
19
19
  self[:init] = false
20
- self.merge(Rocket_starter_options::static_default_values)
20
+ self.merge!(Rocket_starter_options::static_default_values)
21
21
 
22
22
  end
23
23
 
@@ -83,9 +83,14 @@ class Rocket_starter_options < Hash
83
83
  @@command_line_params[:pluginlist_path] = p
84
84
  end
85
85
 
86
+ opts.on( '--skip-commit-plugins', "don't commit files for plugins" ) do
87
+ @@command_line_params[:skip_commit_for_plugins] = true
88
+ end
89
+
86
90
  opts.on( '--skip-plugins', 'skip to setup plugins' ) do
87
91
  @@command_line_params[:skip_plugins] = true
88
92
  end
93
+
89
94
 
90
95
  opts.on( '--rapt', 'use RaPT gem for plugins' ) do
91
96
  @@command_line_params[:rapt] = true
@@ -188,10 +193,10 @@ class Rocket_starter_options < Hash
188
193
  # write a template plugin list file to :pluginlist_path
189
194
  def put_pluginlist_file
190
195
  # check put path
191
- Sqld4r_options::error_with_show_usage "plugin list path is empty. set --pluginlist_path paramater." if self[:pluginlist_path].empty?
196
+ Rocket_starter_options::error_with_show_usage "plugin list path is empty. set --pluginlist_path paramater." if "" == self[:pluginlist_path]
192
197
 
193
198
  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."
199
+ puts "Set your plugin list path to --pluginlist_path paramater."
195
200
  exit
196
201
  end
197
202
 
@@ -251,8 +256,9 @@ class Rocket_starter_options < Hash
251
256
  defaults[:logging] = false
252
257
  defaults[:log_file] = ENV["HOME"] + "/rocket_starter.log"
253
258
  defaults[:skip_netbeans] = false
254
- defaults[:pluginlist_path] = ENV["HOME"] + "/useful_plugins"
259
+ defaults[:pluginlist_path] = ENV["HOME"] + "/.rocket_starter_pluginlist"
255
260
  defaults[:skip_plugins] = false
261
+ defaults[:skip_commit_for_plugins] = false
256
262
  defaults[:rapt] = false
257
263
  defaults[:external] = false
258
264
  defaults[:createdb] = false
@@ -2,7 +2,7 @@ module Rocketstarter
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
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.2</a>
36
+ <a href="http://rubyforge.org/projects/rocketstarter" class="numbers">0.0.3</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;rocketstarter&#8217;</h1>
39
39
 
@@ -122,7 +122,7 @@ If you want, you can use the git and the RaPT gem and a list of plugins.<br /></
122
122
 
123
123
  <p><pre class='syntax'>
124
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>
125
+ <span class="global">$ </span><span class="ident">rocketstarter</span> <span class="ident">project_name</span> <span class="punct">--</span><span class="ident">scmuri</span><span class="punct">=</span><span class="ident">http</span><span class="punct">:/</span><span class="regex"></span><span class="punct">/</span><span class="ident">svn</span><span class="punct">.</span><span class="ident">example</span><span class="punct">.</span><span class="ident">com</span><span class="punct">:/</span><span class="regex">svn</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="ident">repos</span>
126
126
  </pre></p>
127
127
 
128
128
 
@@ -183,7 +183,7 @@ rake install_gem</pre>
183
183
 
184
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>
185
185
  <p class="coda">
186
- <a href="maimuzo@gmail.com">Yusuke Ohmichi(maimuzo)</a>, 24th June 2008<br>
186
+ <a href="maimuzo@gmail.com">Yusuke Ohmichi(maimuzo)</a>, 30th June 2008<br>
187
187
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
188
188
  </p>
189
189
  </div>
data/website/index.txt CHANGED
@@ -65,7 +65,7 @@ $ rocketstarter --check
65
65
 
66
66
  <pre syntax="ruby">
67
67
  $ cd source-dir
68
- $ rocketstarter project_name
68
+ $ rocketstarter project_name --scmuri=http://svn.example.com:/svn/path/to/repos
69
69
  </pre>
70
70
 
71
71
  6. Execute sqld4r if you want
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.2
4
+ version: 0.0.3
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-25 00:00:00 +09:00
33
+ date: 2008-06-30 00:00:00 +09:00
34
34
  default_executable:
35
35
  dependencies: []
36
36
 
@@ -103,7 +103,7 @@ post_install_message: |+
103
103
  5. Create project.
104
104
 
105
105
  $ cd source-dir
106
- $ rocketstarter project_name
106
+ $ rocketstarter project_name --scmuri=http://svn.example.com:/svn/path/to/repos
107
107
 
108
108
  6. Execute sqld4r if you want
109
109
 
metadata.gz.sig CHANGED
Binary file