stage 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.4.2 2008-06-04
2
+ *Fixed: action_name is no longer an instance variable in 2.1
3
+
1
4
  == 0.4.1 2008-05-26
2
5
  *Fixed: Namespacing bugs with model
3
6
 
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 = 4
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -8,7 +8,8 @@ class StageGenerator < Rails::Generator::NamedBase
8
8
  :singular_title_name,
9
9
  :plural_title_name,
10
10
  :singular_route_method,
11
- :plural_route_method
11
+ :plural_route_method,
12
+ :action_name
12
13
 
13
14
  attr_reader :controller_file_path,
14
15
  :controller_class_nesting,
@@ -34,6 +35,11 @@ class StageGenerator < Rails::Generator::NamedBase
34
35
  @plural_title_name = @controller_plural_name.humanize
35
36
  @singular_route_method = "#{@name.gsub("::", "_")}_path"
36
37
  @plural_route_method = "#{@name.gsub("::", "_").pluralize}_path"
38
+ if Rails::VERSION::MAJOR >= 2 && Rails::VERSION::MINOR >= 1
39
+ @action_name = "action_name"
40
+ else
41
+ @action_name = "@action_name"
42
+ end
37
43
  end
38
44
 
39
45
  def manifest
@@ -1,7 +1,7 @@
1
1
  module <%= controller_class_name %>Helper
2
2
  <% for attribute in attributes -%>
3
3
  def <%= singular_name %>_<%= attribute.name %>_value
4
- if @action_name == "show"
4
+ if <%= action_name %> == "show"
5
5
  h @<%= singular_name %>.<%= attribute.name %>
6
6
  else
7
7
  text_field_tag "<%= singular_name%>[<%= attribute.name %>]", @<%= singular_name %>.<%= attribute.name %>
data/website/index.html CHANGED
@@ -33,11 +33,21 @@
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.4.1</a>
36
+ <a href="http://rubyforge.org/projects/stage" class="numbers">0.4.2</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;stage&#8217;</h1>
39
39
 
40
40
 
41
+ <h2>Consolidation of information</h2>
42
+
43
+
44
+ <p>Maintaining this page, the wiki at GitHub, the Google Group and no issue tracker is not an ideal setup. So, everything is moving to <a href="http://stonean.com">stonean.com</a> where I&#8217;m giving <a href="http://redmine.org">Redmine</a> a shot a running everything for me. I&#8217;ll be posting release announcements to the news feed for each project and keeping the docs up-to-date. Hopefully this will be better for everyone.</p>
45
+
46
+
47
+ <p>Thanks for your interest in Stage,<br/>
48
+ -andy</p>
49
+
50
+
41
51
  <h2>What</h2>
42
52
 
43
53
 
@@ -82,7 +92,7 @@
82
92
 
83
93
  <p>Comments and suggestions are welcome via the <a href="http://groups.google.com/group/stonean_stage?hl=en">forum</a></p>
84
94
  <p class="coda">
85
- 27th April 2008<br>
95
+ 2nd June 2008<br>
86
96
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
87
97
  </p>
88
98
  </div>
data/website/index.txt CHANGED
@@ -2,6 +2,12 @@ h1. stage
2
2
 
3
3
  h1. &#x2192; 'stage'
4
4
 
5
+ h2. Consolidation of information
6
+
7
+ Maintaining this page, the wiki at GitHub, the Google Group and no issue tracker is not an ideal setup. So, everything is moving to "stonean.com":http://stonean.com where I'm giving "Redmine":http://redmine.org a shot a running everything for me. I'll be posting release announcements to the news feed for each project and keeping the docs up-to-date. Hopefully this will be better for everyone.
8
+
9
+ Thanks for your interest in Stage,<br/>
10
+ -andy
5
11
 
6
12
  h2. What
7
13
 
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.4.1</a>
36
+ <a href="http://rubyforge.org/projects/stage" class="numbers">0.4.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.4.1</a>
36
+ <a href="http://rubyforge.org/projects/stage" class="numbers">0.4.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.4.1
4
+ version: 0.4.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-05-26 00:00:00 -04:00
12
+ date: 2008-06-04 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15