stage 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.3.2 2008-04-27
2
+ * Added route to config/router.rb when generating resource
3
+
1
4
  == 0.3.1 2008-04-26
2
5
  * Removed unnecessary local paramater usage in show.
3
6
 
data/README.txt CHANGED
@@ -9,9 +9,6 @@ Stage is a code template generator that utilizes helpers as presenters to reduce
9
9
 
10
10
  Both: The helper methods could generate more precise form helpers. Just outputs text fields.
11
11
 
12
- Merb: Need to add resource to router.rb
13
-
14
-
15
12
  == REQUIREMENTS:
16
13
 
17
14
  Merb + DataMapper
data/lib/stage/version.rb CHANGED
@@ -2,7 +2,7 @@ module Stage #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -46,6 +46,11 @@ class StageGenerator < Merb::GeneratorBase
46
46
  :full_controller_const => full_controller_const,
47
47
  :resource_name => resource_name}
48
48
 
49
+ sentinel = 'Merb::Router.prepare do |r|'
50
+ m.gsub_file 'config/router.rb', /(#{Regexp.escape(sentinel)})/mi do |match|
51
+ "#{match}\n r.resources :#{resource_plural_name}\n"
52
+ end
53
+
49
54
  copy_dirs
50
55
  copy_files
51
56
  end
@@ -69,4 +74,7 @@ class StageGenerator < Merb::GeneratorBase
69
74
  EOS
70
75
  end
71
76
 
77
+ def route(m, resource_name)
78
+ end
79
+
72
80
  end
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>stage</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/stage"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/stage" class="numbers">0.3.1</a>
36
+ <a href="http://rubyforge.org/projects/stage" class="numbers">0.3.2</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;stage&#8217;</h1>
39
39
 
@@ -50,6 +50,9 @@
50
50
  <h2><a href="rails.html">Rails Instructions</a></h2>
51
51
 
52
52
 
53
+ <p>My <a href="http://blog.stonean.com/2008/01/generator-stage.html">original blog post</a> has been updated to reflect the new design. It&#8217;s a bit more descriptive if the previous links aren&#8217;t sufficient.</p>
54
+
55
+
53
56
  <h2>Forum</h2>
54
57
 
55
58
 
@@ -79,7 +82,7 @@
79
82
 
80
83
  <p>Comments and suggestions are welcome via the <a href="http://groups.google.com/group/stonean_stage?hl=en">forum</a></p>
81
84
  <p class="coda">
82
- 26th April 2008<br>
85
+ 27th April 2008<br>
83
86
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
84
87
  </p>
85
88
  </div>
data/website/index.txt CHANGED
@@ -11,6 +11,8 @@ h2. <a href="merb.html">Merb Instructions</a>
11
11
 
12
12
  h2. <a href="rails.html">Rails Instructions</a>
13
13
 
14
+ My <a href="http://blog.stonean.com/2008/01/generator-stage.html">original blog post</a> has been updated to reflect the new design. It's a bit more descriptive if the previous links aren't sufficient.
15
+
14
16
  h2. Forum
15
17
 
16
18
  "http://groups.google.com/group/stonean_stage?hl=en":http://groups.google.com/group/stonean_stage?hl=en
data/website/merb.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>stage</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/stage"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/stage" class="numbers">0.3.1</a>
36
+ <a href="http://rubyforge.org/projects/stage" class="numbers">0.3.2</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;stage&#8217;</h1>
39
39
 
data/website/rails.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>stage</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/stage"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/stage" class="numbers">0.3.1</a>
36
+ <a href="http://rubyforge.org/projects/stage" class="numbers">0.3.2</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;stage&#8217;</h1>
39
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-26 00:00:00 -04:00
12
+ date: 2008-04-27 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15