newgem 0.22.0 → 0.22.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.22.1 2008-04-05
2
+
3
+ * moved the 'by Daniel Cadenas' reference to the correct template.rhtml
4
+ * renamed template.rhtml -> template.html.erb in gem + generators
5
+ * fixed broken install_rspec_stories test
6
+
1
7
  == 0.22.0 2008-04-03
2
8
 
3
9
  * script/console - irb/console for your gem under development [Orion]
data/Manifest.txt CHANGED
@@ -60,12 +60,12 @@ newgem_theme_generators/long_box_theme/long_box_theme_generator.rb
60
60
  newgem_theme_generators/long_box_theme/templates/website/index.txt
61
61
  newgem_theme_generators/long_box_theme/templates/website/javascripts/rounded_corners_lite.inc.js
62
62
  newgem_theme_generators/long_box_theme/templates/website/stylesheets/screen.css
63
- newgem_theme_generators/long_box_theme/templates/website/template.rhtml
63
+ newgem_theme_generators/long_box_theme/templates/website/template.html.erb
64
64
  newgem_theme_generators/plain_theme/USAGE
65
65
  newgem_theme_generators/plain_theme/plain_theme_generator.rb
66
66
  newgem_theme_generators/plain_theme/templates/website/javascripts/rounded_corners_lite.inc.js
67
67
  newgem_theme_generators/plain_theme/templates/website/stylesheets/screen.css
68
- newgem_theme_generators/plain_theme/templates/website/template.rhtml
68
+ newgem_theme_generators/plain_theme/templates/website/template.html.erb
69
69
  rubygems_generators/executable/USAGE
70
70
  rubygems_generators/executable/executable_generator.rb
71
71
  rubygems_generators/executable/templates/app.rb
@@ -121,8 +121,8 @@ website/javascripts/rounded_corners_lite.inc.js
121
121
  website/rubyforge.html
122
122
  website/rubyforge.txt
123
123
  website/stylesheets/screen.css
124
+ website/template.html.erb
124
125
  website/template.js
125
- website/template.rhtml
126
126
  website/version-raw.js
127
127
  website/version-raw.txt
128
128
  website/version.js
data/README.txt CHANGED
@@ -39,7 +39,7 @@ creating: wizzo/History.txt
39
39
  creating: wizzo/script/generate
40
40
  creating: wizzo/script/txt2html
41
41
  creating: wizzo/website/index.txt
42
- creating: wizzo/website/template.rhtml
42
+ creating: wizzo/website/template.html.erb
43
43
  copying: wizzo/website/javascripts/rounded_corners_lite.inc.js
44
44
  copying: wizzo/website/stylesheets/screen.css
45
45
  NOW - update wizzo/Rakefile with gem description, etc
data/config/hoe.rb CHANGED
@@ -47,7 +47,6 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
47
47
  # == Optional
48
48
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
49
49
  p.extra_deps = [
50
- ['hoe', '>=1.5.0'],
51
50
  ['RedCloth','>=3.0.4'],
52
51
  ['syntax','>=1.0.0'],
53
52
  ['activesupport','>=2.0.2'],
@@ -2,7 +2,7 @@ module Newgem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 22
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -42,10 +42,10 @@ end
42
42
 
43
43
  if ARGV.length >= 1
44
44
  src, template = ARGV
45
- template ||= File.join(File.dirname(__FILE__), '/../website/template.rhtml')
45
+ template ||= File.join(File.dirname(__FILE__), '/../website/template.html.erb')
46
46
 
47
47
  else
48
- puts("Usage: #{File.split($0).last} source.txt [template.rhtml] > output.html")
48
+ puts("Usage: #{File.split($0).last} source.txt [template.html.erb] > output.html")
49
49
  exit!
50
50
  end
51
51
 
@@ -23,7 +23,8 @@ class LongBoxThemeGenerator < RubiGen::Base
23
23
  m.directory 'website/stylesheets'
24
24
 
25
25
  # Website
26
- m.template_copy_each %w( template.rhtml index.txt ), "website"
26
+ m.template 'website/template.html.erb', 'website/template.html.erb'
27
+ m.template_copy_each %w( index.txt ), "website"
27
28
  m.file_copy_each %w( stylesheets/screen.css javascripts/rounded_corners_lite.inc.js ), "website"
28
29
  end
29
30
  end
@@ -38,7 +38,8 @@
38
38
  <%%= body %>
39
39
  <p class="coda">
40
40
  <a href="<%= email %>"><%= author %></a>, <%%= modified.pretty %><br>
41
- Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
41
+ Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>,
42
+ by Daniel Cadenas via <a href="http://depgraph.rubyforge.org/">DepGraph</a>
42
43
  </p>
43
44
  </div>
44
45
  </div>
@@ -17,7 +17,7 @@ class PlainThemeGenerator < RubiGen::Base
17
17
  m.directory 'website/stylesheets'
18
18
 
19
19
  # Website
20
- m.template_copy_each %w( template.rhtml ), "website"
20
+ m.template 'website/template.html.erb', 'website/template.html.erb'
21
21
  m.file_copy_each %w( stylesheets/screen.css javascripts/rounded_corners_lite.inc.js ), "website"
22
22
  end
23
23
  end
@@ -38,8 +38,7 @@
38
38
  <%%= body %>
39
39
  <p class="coda">
40
40
  <a href="<%= email %>"><%= author %></a>, <%%= modified.pretty %><br>
41
- Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>,
42
- by Daniel Cadenas via <a href="http://depgraph.rubyforge.org/">DepGraph</a>
41
+ Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
43
42
  </p>
44
43
  </div>
45
44
 
data/script/txt2html CHANGED
@@ -36,10 +36,10 @@ download = ENV['DOWNLOAD_PATH']
36
36
 
37
37
  if ARGV.length >= 1
38
38
  src, template = ARGV
39
- template ||= File.join(File.dirname(__FILE__), '/../website/template.rhtml')
39
+ template ||= File.join(File.dirname(__FILE__), '/../website/template.html.erb')
40
40
 
41
41
  else
42
- puts("Usage: #{File.split($0).last} source.txt [template.rhtml] > output.html")
42
+ puts("Usage: #{File.split($0).last} source.txt [template.html.erb] > output.html")
43
43
  exit!
44
44
  end
45
45
 
data/script/txt2html.rb CHANGED
@@ -37,10 +37,10 @@ module Txt2Html
37
37
 
38
38
  if ARGV.length >= 1
39
39
  src, template = ARGV
40
- template ||= File.dirname(__FILE__) + '/../website/template.rhtml'
40
+ template ||= File.dirname(__FILE__) + '/../website/template.html.erb'
41
41
 
42
42
  else
43
- puts("Usage: #{File.split($0).last} source.txt [template.rhtml] > output.html")
43
+ puts("Usage: #{File.split($0).last} source.txt [template.html.erb] > output.html")
44
44
  exit!
45
45
  end
46
46
 
@@ -26,11 +26,10 @@ class TestInstallRspecStoriesGenerator < Test::Unit::TestCase
26
26
  # bare_teardown - place this in teardown method to destroy the TMP_ROOT or APP_ROOT folder after each test
27
27
 
28
28
  def test_generator_without_options
29
- name = "myapp"
30
- run_generator('install_rspec_stories', [name], sources)
29
+ run_generator('install_rspec_stories', [], sources)
31
30
  assert_directory_exists("stories/steps")
32
- assert_generated_file("stories/steps/myapp_steps.rb")
33
- assert_generated_file("stories/sell_myapp.story")
31
+ assert_generated_file("stories/steps/myproject_steps.rb")
32
+ assert_generated_file("stories/sell_myproject.story")
34
33
  assert_generated_file("stories/all.rb")
35
34
  end
36
35
 
@@ -15,7 +15,7 @@ class TestInstallWebsiteGenerator < Test::Unit::TestCase
15
15
  name = "myapp"
16
16
  run_generator(generator_name, [name], sources)
17
17
 
18
- %w[index.txt index.html template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
18
+ %w[index.txt index.html template.html.erb stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
19
19
  assert_generated_file("website/#{file}")
20
20
  end
21
21
  assert_generated_file("script/txt2html")
@@ -57,7 +57,7 @@ class TestNewgemGenerator < Test::Unit::TestCase
57
57
  assert_generated_file("script/#{file}")
58
58
  end
59
59
 
60
- %w[index.txt index.html template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
60
+ %w[index.txt index.html template.html.erb stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
61
61
  assert_generated_file("website/#{file}")
62
62
  end
63
63
 
@@ -13,14 +13,14 @@ class TestPlainThemeGenerator < Test::Unit::TestCase
13
13
 
14
14
  def test_generator_without_options
15
15
  run_generator('plain_theme', [], sources)
16
- %w[template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
16
+ %w[template.html.erb stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
17
17
  assert_generated_file("website/#{file}")
18
18
  end
19
19
  end
20
20
 
21
21
  def test_generator_with_author_and_email
22
22
  run_generator('plain_theme', [], sources, {:author => "AUTHOR", :email => "EMAIL"})
23
- %w[template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
23
+ %w[template.html.erb stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
24
24
  assert_generated_file("website/#{file}")
25
25
  end
26
26
  end
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>New Gem Generator</h1>
34
34
  <div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
35
35
  <p>Get Version</p>
36
- <a href="" class="numbers">0.22.0</a>
36
+ <a href="" class="numbers">0.22.1</a>
37
37
  <p>Featured in</p>
38
38
  <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
39
39
  </div>
@@ -109,7 +109,7 @@ $ newgem wizzo
109
109
  dependency plain_theme
110
110
  exists website/javascripts
111
111
  exists website/stylesheets
112
- create website/template.rhtml
112
+ create website/template.html.erb
113
113
  create website/stylesheets/screen.css
114
114
  create website/javascripts/rounded_corners_lite.inc.js
115
115
  dependency install_rubigen_scripts
@@ -341,7 +341,7 @@ other stories and things.</p>
341
341
 
342
342
  <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
343
343
  <p class="coda">
344
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 5th March 2008<br>
344
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 5th April 2008<br>
345
345
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
346
346
  </p>
347
347
  </div>
data/website/index.txt CHANGED
@@ -61,7 +61,7 @@ $ newgem wizzo
61
61
  dependency plain_theme
62
62
  exists website/javascripts
63
63
  exists website/stylesheets
64
- create website/template.rhtml
64
+ create website/template.html.erb
65
65
  create website/stylesheets/screen.css
66
66
  create website/javascripts/rounded_corners_lite.inc.js
67
67
  dependency install_rubigen_scripts
@@ -33,7 +33,7 @@
33
33
  <h1>New Gem Generator</h1>
34
34
  <div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
35
35
  <p>Get Version</p>
36
- <a href="" class="numbers">0.22.0</a>
36
+ <a href="" class="numbers">0.22.1</a>
37
37
  <p>Featured in</p>
38
38
  <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
39
39
  </div>
@@ -263,7 +263,7 @@ OPTIONS
263
263
  specify whether release_notes/changes are preformatted
264
264
  </pre>
265
265
  <p class="coda">
266
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 4th March 2008<br>
266
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 5th March 2008<br>
267
267
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
268
268
  </p>
269
269
  </div>
File without changes
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.22.0";
2
+ var version = "0.22.1";
3
3
  MagicAnnouncement.show('compositekeys', version);
data/website/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.22.0";
2
+ var version = "0.22.1";
3
3
 
4
4
  document.write(" - " + version);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,18 +9,9 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-03 00:00:00 +02:00
12
+ date: 2008-04-06 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: hoe
17
- version_requirement:
18
- version_requirements: !ruby/object:Gem::Requirement
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.5.0
23
- version:
24
15
  - !ruby/object:Gem::Dependency
25
16
  name: RedCloth
26
17
  version_requirement:
@@ -152,12 +143,12 @@ files:
152
143
  - newgem_theme_generators/long_box_theme/templates/website/index.txt
153
144
  - newgem_theme_generators/long_box_theme/templates/website/javascripts/rounded_corners_lite.inc.js
154
145
  - newgem_theme_generators/long_box_theme/templates/website/stylesheets/screen.css
155
- - newgem_theme_generators/long_box_theme/templates/website/template.rhtml
146
+ - newgem_theme_generators/long_box_theme/templates/website/template.html.erb
156
147
  - newgem_theme_generators/plain_theme/USAGE
157
148
  - newgem_theme_generators/plain_theme/plain_theme_generator.rb
158
149
  - newgem_theme_generators/plain_theme/templates/website/javascripts/rounded_corners_lite.inc.js
159
150
  - newgem_theme_generators/plain_theme/templates/website/stylesheets/screen.css
160
- - newgem_theme_generators/plain_theme/templates/website/template.rhtml
151
+ - newgem_theme_generators/plain_theme/templates/website/template.html.erb
161
152
  - rubygems_generators/executable/USAGE
162
153
  - rubygems_generators/executable/executable_generator.rb
163
154
  - rubygems_generators/executable/templates/app.rb
@@ -213,8 +204,8 @@ files:
213
204
  - website/rubyforge.html
214
205
  - website/rubyforge.txt
215
206
  - website/stylesheets/screen.css
207
+ - website/template.html.erb
216
208
  - website/template.js
217
- - website/template.rhtml
218
209
  - website/version-raw.js
219
210
  - website/version-raw.txt
220
211
  - website/version.js