newgem 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/History.txt +42 -0
  2. data/Manifest.txt +84 -17
  3. data/README.txt +3 -2
  4. data/Rakefile +4 -106
  5. data/Todo.txt +1 -1
  6. data/app_generators/newgem/newgem_generator.rb +172 -0
  7. data/{templates → app_generators/newgem/templates}/History.txt +1 -1
  8. data/{templates → app_generators/newgem/templates}/License.txt +1 -1
  9. data/app_generators/newgem/templates/README.txt +1 -0
  10. data/app_generators/newgem/templates/Rakefile +4 -0
  11. data/{templates → app_generators/newgem/templates}/app.rb +3 -3
  12. data/app_generators/newgem/templates/config/hoe.rb +73 -0
  13. data/app_generators/newgem/templates/config/requirements.rb +17 -0
  14. data/app_generators/newgem/templates/empty.log +0 -0
  15. data/app_generators/newgem/templates/module.rb +5 -0
  16. data/app_generators/newgem/templates/script/destroy +14 -0
  17. data/app_generators/newgem/templates/script/generate +14 -0
  18. data/{templates → app_generators/newgem/templates}/setup.rb +0 -0
  19. data/{templates → app_generators/newgem/templates}/spec.opts +0 -0
  20. data/{templates → app_generators/newgem/templates}/spec.rb +0 -0
  21. data/app_generators/newgem/templates/tasks/deployment.rake +27 -0
  22. data/app_generators/newgem/templates/tasks/environment.rake +7 -0
  23. data/app_generators/newgem/templates/tasks/website.rake +9 -0
  24. data/{templates → app_generators/newgem/templates}/test.rb +1 -1
  25. data/app_generators/newgem/templates/test_helper.rb +2 -0
  26. data/app_generators/newgem/templates/version.rb +9 -0
  27. data/bin/newgem +9 -272
  28. data/bundles/RubyGem.tmbundle/Snippets/History header trunk.tmSnippet +18 -0
  29. data/bundles/RubyGem.tmbundle/Snippets/History header.tmSnippet +18 -0
  30. data/bundles/RubyGem.tmbundle/Syntaxes/Rdoc.tmLanguage +70 -0
  31. data/bundles/RubyGem.tmbundle/info.plist +16 -0
  32. data/config/hoe.rb +48 -0
  33. data/config/svn_branch.rb +15 -0
  34. data/lib/newgem.rb +2 -3
  35. data/lib/newgem/quick_template.rb +28 -0
  36. data/lib/newgem/tasks.rb +1 -0
  37. data/lib/newgem/version.rb +1 -1
  38. data/newgem_generators/install_website/USAGE +5 -0
  39. data/newgem_generators/install_website/install_website_generator.rb +76 -0
  40. data/{templates/scripts → newgem_generators/install_website/templates/script}/txt2html +15 -8
  41. data/newgem_generators/install_website/templates/tasks/website.rake +17 -0
  42. data/{templates → newgem_generators/install_website/templates}/website/index.html +2 -2
  43. data/newgem_generators/install_website/templates/website/index.txt +39 -0
  44. data/newgem_theme_generators/plain/USAGE +5 -0
  45. data/newgem_theme_generators/plain/plain_generator.rb +54 -0
  46. data/{templates → newgem_theme_generators/plain/templates}/website/javascripts/rounded_corners_lite.inc.js +0 -0
  47. data/{templates → newgem_theme_generators/plain/templates}/website/stylesheets/screen.css +0 -0
  48. data/{templates → newgem_theme_generators/plain/templates}/website/template.rhtml +6 -6
  49. data/rubygems_generators/application_generator/USAGE +28 -0
  50. data/rubygems_generators/application_generator/application_generator_generator.rb +58 -0
  51. data/rubygems_generators/application_generator/templates/bin +12 -0
  52. data/rubygems_generators/application_generator/templates/generator.rb +51 -0
  53. data/rubygems_generators/application_generator/templates/readme +24 -0
  54. data/rubygems_generators/application_generator/templates/test.rb +43 -0
  55. data/rubygems_generators/application_generator/templates/test_generator_helper.rb +19 -0
  56. data/rubygems_generators/application_generator/templates/usage +5 -0
  57. data/rubygems_generators/component_generator/USAGE +29 -0
  58. data/rubygems_generators/component_generator/component_generator_generator.rb +52 -0
  59. data/rubygems_generators/component_generator/templates/generator.rb +51 -0
  60. data/rubygems_generators/component_generator/templates/readme +28 -0
  61. data/rubygems_generators/component_generator/templates/test.rb +43 -0
  62. data/rubygems_generators/component_generator/templates/test_generator_helper.rb +19 -0
  63. data/rubygems_generators/component_generator/templates/usage +5 -0
  64. data/rubygems_generators/executable/executable_generator.rb +53 -0
  65. data/rubygems_generators/executable/templates/app.rb +44 -0
  66. data/rubygems_generators/install_jruby/USAGE +5 -0
  67. data/rubygems_generators/install_jruby/install_jruby_generator.rb +48 -0
  68. data/rubygems_generators/install_jruby/templates/tasks/jruby.rake +7 -0
  69. data/rubygems_generators/install_rspec/USAGE +5 -0
  70. data/rubygems_generators/install_rspec/install_rspec_generator.rb +55 -0
  71. data/rubygems_generators/install_rspec/templates/spec.rb +11 -0
  72. data/rubygems_generators/install_rspec/templates/spec/spec.opts +1 -0
  73. data/rubygems_generators/install_rspec/templates/spec/spec_helper.rb +7 -0
  74. data/rubygems_generators/install_rspec/templates/tasks/rspec.rake +21 -0
  75. data/script/destroy +14 -0
  76. data/script/generate +14 -0
  77. data/{scripts → script}/txt2html +3 -3
  78. data/{scripts → script}/txt2js +0 -0
  79. data/tasks/bundles.rake +12 -0
  80. data/tasks/deployment.rake +27 -0
  81. data/tasks/environment.rake +7 -0
  82. data/tasks/website.rake +19 -0
  83. data/test/test_application_generator_generator.rb +60 -0
  84. data/test/test_executable_generator.rb +28 -0
  85. data/test/test_generate_component_generator.rb +67 -0
  86. data/test/test_generator_helper.rb +19 -0
  87. data/test/test_install_jruby_generator.rb +29 -0
  88. data/test/test_install_rspec_generator.rb +33 -0
  89. data/test/test_install_website_generator.rb +50 -0
  90. data/test/test_newgem_generator.rb +120 -0
  91. data/test/test_plain_generator.rb +37 -0
  92. data/website/images/beginning-ruby.jpg +0 -0
  93. data/website/index.html +8 -6
  94. data/website/index.txt +4 -2
  95. data/website/rubyforge.html +3 -3
  96. data/website/version-raw.js +1 -1
  97. data/website/version.js +1 -1
  98. metadata +111 -27
  99. data/templates/Manifest.txt +0 -15
  100. data/templates/Rakefile +0 -123
  101. data/templates/website/index.txt +0 -38
  102. data/test/test_svn.rb +0 -13
@@ -0,0 +1,37 @@
1
+ require File.join(File.dirname(__FILE__), "test_generator_helper.rb")
2
+
3
+ class TestPlainGenerator < Test::Unit::TestCase
4
+ include RubiGen::GeneratorTestHelper
5
+
6
+ def setup
7
+ rubygems_setup
8
+ end
9
+
10
+ def teardown
11
+ rubygems_teardown
12
+ end
13
+
14
+ def test_generator_without_options
15
+ run_generator('plain', [], sources)
16
+ %w[template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
17
+ assert_generated_file("website/#{file}")
18
+ end
19
+ end
20
+
21
+ def test_generator_with_author_and_email
22
+ run_generator('plain', [], sources, {:author => "AUTHOR", :email => "EMAIL"})
23
+ %w[template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
24
+ assert_generated_file("website/#{file}")
25
+ end
26
+ end
27
+
28
+ private
29
+ def sources
30
+ [RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__),"..", generator_path))
31
+ ]
32
+ end
33
+
34
+ def generator_path
35
+ "newgem_theme_generators"
36
+ end
37
+ end
Binary file
data/website/index.html CHANGED
@@ -31,9 +31,9 @@
31
31
  <div id="main">
32
32
 
33
33
  <h1>New Gem Generator</h1>
34
- <div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
34
+ <div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/newgem" class="numbers">0.11.0</a>
36
+ <a href="" class="numbers">0.13.0</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>
@@ -58,7 +58,7 @@
58
58
  <p>The <code>newgem</code> application is distributed itself as a RubyGem and is available immediately after installation.</p>
59
59
 
60
60
 
61
- <p><pre class="syntax"><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">newgem</span></pre></p>
61
+ <p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">newgem</span></pre></p>
62
62
 
63
63
 
64
64
  <p>Alternately, download the gem and install manually.</p>
@@ -75,7 +75,7 @@ $ newgem wizzo
75
75
  creating: wizzo
76
76
  creating: wizzo/README.txt
77
77
  creating: wizzo/lib
78
- creating: wizzo/scripts
78
+ creating: wizzo/script
79
79
  creating: wizzo/website
80
80
  creating: wizzo/website/javascripts
81
81
  creating: wizzo/website/stylesheets
@@ -92,7 +92,7 @@ creating: wizzo/Rakefile
92
92
  creating: wizzo/History.txt
93
93
  creating: wizzo/License.txt
94
94
  creating: wizzo/Manifest.txt
95
- creating: wizzo/scripts/txt2html
95
+ creating: wizzo/script/txt2html
96
96
  creating: wizzo/website/index.txt
97
97
  creating: wizzo/website/index.html
98
98
  creating: wizzo/website/template.rhtml
@@ -277,6 +277,8 @@ NOW - update wizzo/Rakefile with gem description, etc
277
277
 
278
278
  <ul>
279
279
  <li><a href="http://drnicwilliams.com/2006/10/11/generating-new-gems/">Original blog article and tutorial</a></li>
280
+ <li><a href="http://nubyonrails.com/articles/2007/06/15/tutorial-publishing-rubygems-with-hoe">Tutorial: Publishing RubyGems with Hoe</a> by <a href="http://geoffreygrosenbach.com/">Geoffrey Grosenbach</a> </li>
281
+ <li><a href="http://codeconversations.blogspot.com/2007/07/using-new-gem-generator-in-windows_09.html">Using New Gem Generator in Windows</a> by <a href="http://codeconversations.blogspot.com/">Jorge Cangas</a></li>
280
282
  </ul>
281
283
 
282
284
 
@@ -313,7 +315,7 @@ other stories and things.</p>
313
315
 
314
316
  <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
315
317
  <p class="coda">
316
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 6th June 2007<br>
318
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 18th August 2007<br>
317
319
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
318
320
  </p>
319
321
  </div>
data/website/index.txt CHANGED
@@ -27,7 +27,7 @@ $ newgem wizzo
27
27
  creating: wizzo
28
28
  creating: wizzo/README.txt
29
29
  creating: wizzo/lib
30
- creating: wizzo/scripts
30
+ creating: wizzo/script
31
31
  creating: wizzo/website
32
32
  creating: wizzo/website/javascripts
33
33
  creating: wizzo/website/stylesheets
@@ -44,7 +44,7 @@ creating: wizzo/Rakefile
44
44
  creating: wizzo/History.txt
45
45
  creating: wizzo/License.txt
46
46
  creating: wizzo/Manifest.txt
47
- creating: wizzo/scripts/txt2html
47
+ creating: wizzo/script/txt2html
48
48
  creating: wizzo/website/index.txt
49
49
  creating: wizzo/website/index.html
50
50
  creating: wizzo/website/template.rhtml
@@ -176,6 +176,8 @@ For more information about each task, see the "Hoe README":http://seattlerb.ruby
176
176
  h2. Related articles
177
177
 
178
178
  * "Original blog article and tutorial":http://drnicwilliams.com/2006/10/11/generating-new-gems/
179
+ * "Tutorial: Publishing RubyGems with Hoe":http://nubyonrails.com/articles/2007/06/15/tutorial-publishing-rubygems-with-hoe by "Geoffrey Grosenbach":http://geoffreygrosenbach.com/
180
+ * "Using New Gem Generator in Windows":http://codeconversations.blogspot.com/2007/07/using-new-gem-generator-in-windows_09.html by "Jorge Cangas":http://codeconversations.blogspot.com/
179
181
 
180
182
  h2. Dr Nic's Blog
181
183
 
@@ -31,9 +31,9 @@
31
31
  <div id="main">
32
32
 
33
33
  <h1>New Gem Generator</h1>
34
- <div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
34
+ <div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/newgem" class="numbers">0.11.0</a>
36
+ <a href="" class="numbers">0.13.0</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>, 18th April 2007<br>
266
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 24th June 2007<br>
267
267
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
268
268
  </p>
269
269
  </div>
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.11.0";
2
+ var version = "0.13.0";
3
3
  MagicAnnouncement.show('compositekeys', version);
data/website/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.11.0";
2
+ var version = "0.13.0";
3
3
 
4
4
  document.write(" - " + version);
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4.1
2
+ rubygems_version: 0.9.4.3
3
3
  specification_version: 1
4
4
  name: newgem
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.11.0
7
- date: 2007-06-07 00:00:00 +02:00
6
+ version: 0.13.0
7
+ date: 2007-08-20 00:00:00 +02:00
8
8
  summary: Make your own gems at home
9
9
  require_paths:
10
10
  - lib
@@ -35,31 +35,98 @@ files:
35
35
  - README.txt
36
36
  - Rakefile
37
37
  - Todo.txt
38
+ - app_generators/newgem/newgem_generator.rb
39
+ - app_generators/newgem/templates/History.txt
40
+ - app_generators/newgem/templates/License.txt
41
+ - app_generators/newgem/templates/README.txt
42
+ - app_generators/newgem/templates/Rakefile
43
+ - app_generators/newgem/templates/app.rb
44
+ - app_generators/newgem/templates/config/hoe.rb
45
+ - app_generators/newgem/templates/config/requirements.rb
46
+ - app_generators/newgem/templates/empty.log
47
+ - app_generators/newgem/templates/module.rb
48
+ - app_generators/newgem/templates/script/destroy
49
+ - app_generators/newgem/templates/script/generate
50
+ - app_generators/newgem/templates/setup.rb
51
+ - app_generators/newgem/templates/spec.opts
52
+ - app_generators/newgem/templates/spec.rb
53
+ - app_generators/newgem/templates/tasks/deployment.rake
54
+ - app_generators/newgem/templates/tasks/environment.rake
55
+ - app_generators/newgem/templates/tasks/website.rake
56
+ - app_generators/newgem/templates/test.rb
57
+ - app_generators/newgem/templates/test_helper.rb
58
+ - app_generators/newgem/templates/version.rb
38
59
  - bin/newgem
60
+ - bundles/RubyGem.tmbundle/Snippets/History header trunk.tmSnippet
61
+ - bundles/RubyGem.tmbundle/Snippets/History header.tmSnippet
62
+ - bundles/RubyGem.tmbundle/Syntaxes/Rdoc.tmLanguage
63
+ - bundles/RubyGem.tmbundle/info.plist
64
+ - config/hoe.rb
65
+ - config/svn_branch.rb
39
66
  - install.rb
40
67
  - lib/newgem.rb
68
+ - lib/newgem/quick_template.rb
41
69
  - lib/newgem/rubyforge.rb
70
+ - lib/newgem/tasks.rb
42
71
  - lib/newgem/version.rb
43
- - scripts/txt2html
44
- - scripts/txt2js
72
+ - newgem_generators/install_website/USAGE
73
+ - newgem_generators/install_website/install_website_generator.rb
74
+ - newgem_generators/install_website/templates/script/txt2html
75
+ - newgem_generators/install_website/templates/tasks/website.rake
76
+ - newgem_generators/install_website/templates/website/index.html
77
+ - newgem_generators/install_website/templates/website/index.txt
78
+ - newgem_theme_generators/plain/USAGE
79
+ - newgem_theme_generators/plain/plain_generator.rb
80
+ - newgem_theme_generators/plain/templates/website/javascripts/rounded_corners_lite.inc.js
81
+ - newgem_theme_generators/plain/templates/website/stylesheets/screen.css
82
+ - newgem_theme_generators/plain/templates/website/template.rhtml
83
+ - rubygems_generators/application_generator/USAGE
84
+ - rubygems_generators/application_generator/application_generator_generator.rb
85
+ - rubygems_generators/application_generator/templates/bin
86
+ - rubygems_generators/application_generator/templates/generator.rb
87
+ - rubygems_generators/application_generator/templates/readme
88
+ - rubygems_generators/application_generator/templates/test.rb
89
+ - rubygems_generators/application_generator/templates/test_generator_helper.rb
90
+ - rubygems_generators/application_generator/templates/usage
91
+ - rubygems_generators/component_generator/USAGE
92
+ - rubygems_generators/component_generator/component_generator_generator.rb
93
+ - rubygems_generators/component_generator/templates/generator.rb
94
+ - rubygems_generators/component_generator/templates/readme
95
+ - rubygems_generators/component_generator/templates/test.rb
96
+ - rubygems_generators/component_generator/templates/test_generator_helper.rb
97
+ - rubygems_generators/component_generator/templates/usage
98
+ - rubygems_generators/executable/executable_generator.rb
99
+ - rubygems_generators/executable/templates/app.rb
100
+ - rubygems_generators/install_jruby/USAGE
101
+ - rubygems_generators/install_jruby/install_jruby_generator.rb
102
+ - rubygems_generators/install_jruby/templates/tasks/jruby.rake
103
+ - rubygems_generators/install_rspec/USAGE
104
+ - rubygems_generators/install_rspec/install_rspec_generator.rb
105
+ - rubygems_generators/install_rspec/templates/spec.rb
106
+ - rubygems_generators/install_rspec/templates/spec/spec.opts
107
+ - rubygems_generators/install_rspec/templates/spec/spec_helper.rb
108
+ - rubygems_generators/install_rspec/templates/tasks/rspec.rake
109
+ - script/destroy
110
+ - script/generate
111
+ - script/txt2html
112
+ - script/txt2js
45
113
  - setup.rb
46
- - templates/History.txt
47
- - templates/License.txt
48
- - templates/Manifest.txt
49
- - templates/Rakefile
50
- - templates/app.rb
51
- - templates/scripts/txt2html
52
- - templates/setup.rb
53
- - templates/spec.opts
54
- - templates/spec.rb
55
- - templates/test.rb
56
- - templates/website/index.html
57
- - templates/website/index.txt
58
- - templates/website/javascripts/rounded_corners_lite.inc.js
59
- - templates/website/stylesheets/screen.css
60
- - templates/website/template.rhtml
114
+ - tasks/bundles.rake
115
+ - tasks/deployment.rake
116
+ - tasks/environment.rake
117
+ - tasks/website.rake
118
+ - test/test_application_generator_generator.rb
119
+ - test/test_executable_generator.rb
120
+ - test/test_generate_component_generator.rb
121
+ - test/test_generator_helper.rb
61
122
  - test/test_helper.rb
123
+ - test/test_install_jruby_generator.rb
124
+ - test/test_install_rspec_generator.rb
125
+ - test/test_install_website_generator.rb
62
126
  - test/test_newgem.rb
127
+ - test/test_newgem_generator.rb
128
+ - test/test_plain_generator.rb
129
+ - website/images/beginning-ruby.jpg
63
130
  - website/index.html
64
131
  - website/index.txt
65
132
  - website/javascripts/rounded_corners_lite.inc.js
@@ -73,9 +140,17 @@ files:
73
140
  - website/version.js
74
141
  - website/version.txt
75
142
  test_files:
143
+ - test/test_application_generator_generator.rb
144
+ - test/test_executable_generator.rb
145
+ - test/test_generate_component_generator.rb
146
+ - test/test_generator_helper.rb
76
147
  - test/test_helper.rb
148
+ - test/test_install_jruby_generator.rb
149
+ - test/test_install_rspec_generator.rb
150
+ - test/test_install_website_generator.rb
77
151
  - test/test_newgem.rb
78
- - test/test_svn.rb
152
+ - test/test_newgem_generator.rb
153
+ - test/test_plain_generator.rb
79
154
  rdoc_options:
80
155
  - --main
81
156
  - README.txt
@@ -85,10 +160,10 @@ extra_rdoc_files:
85
160
  - Manifest.txt
86
161
  - README.txt
87
162
  - Todo.txt
88
- - templates/History.txt
89
- - templates/License.txt
90
- - templates/Manifest.txt
91
- - templates/website/index.txt
163
+ - app_generators/newgem/templates/History.txt
164
+ - app_generators/newgem/templates/License.txt
165
+ - app_generators/newgem/templates/README.txt
166
+ - newgem_generators/install_website/templates/website/index.txt
92
167
  - website/index.txt
93
168
  - website/rubyforge.txt
94
169
  - website/version-raw.txt
@@ -107,7 +182,7 @@ dependencies:
107
182
  requirements:
108
183
  - - ">="
109
184
  - !ruby/object:Gem::Version
110
- version: 1.2.1
185
+ version: 1.3.0
111
186
  version:
112
187
  - !ruby/object:Gem::Dependency
113
188
  name: RedCloth
@@ -136,6 +211,15 @@ dependencies:
136
211
  - !ruby/object:Gem::Version
137
212
  version: 1.4.2
138
213
  version:
214
+ - !ruby/object:Gem::Dependency
215
+ name: rubigen
216
+ version_requirement:
217
+ version_requirements: !ruby/object:Gem::Version::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: 1.0.0
222
+ version:
139
223
  - !ruby/object:Gem::Dependency
140
224
  name: hoe
141
225
  version_requirement:
@@ -143,5 +227,5 @@ dependencies:
143
227
  requirements:
144
228
  - - ">="
145
229
  - !ruby/object:Gem::Version
146
- version: 1.2.1
230
+ version: 1.3.0
147
231
  version:
@@ -1,15 +0,0 @@
1
- History.txt
2
- License.txt
3
- Manifest.txt
4
- README.txt
5
- Rakefile
6
- #{bin_names_list}lib/#{project_name}.rb
7
- lib/#{project_name}/version.rb
8
- scripts/txt2html
9
- setup.rb
10
- #{test_names_list}
11
- website/index.html
12
- website/index.txt
13
- website/javascripts/rounded_corners_lite.inc.js
14
- website/stylesheets/screen.css
15
- website/template.rhtml
data/templates/Rakefile DELETED
@@ -1,123 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/clean'
4
- require 'rake/testtask'
5
- require 'rake/packagetask'
6
- require 'rake/gempackagetask'
7
- require 'rake/rdoctask'
8
- require 'rake/contrib/rubyforgepublisher'
9
- require 'fileutils'
10
- require 'hoe'
11
- #{requirements}
12
- include FileUtils
13
- require File.join(File.dirname(__FILE__), 'lib', '#{gem_name}', 'version')
14
-
15
- AUTHOR = '#{author}' # can also be an array of Authors
16
- EMAIL = "#{email}"
17
- DESCRIPTION = "description of gem"
18
- GEM_NAME = '#{gem_name}' # what ppl will type to install your gem
19
-
20
- @config_file = "~/.rubyforge/user-config.yml"
21
- @config = nil
22
- def rubyforge_username
23
- unless @config
24
- begin
25
- @config = YAML.load(File.read(File.expand_path(@config_file)))
26
- rescue
27
- puts <<-EOS
28
- ERROR: No rubyforge config file found: \#{@config_file}"
29
- Run 'rubyforge setup' to prepare your env for access to Rubyforge
30
- - See http://newgem.rubyforge.org/rubyforge.html for more details
31
- EOS
32
- exit
33
- end
34
- end
35
- @rubyforge_username ||= @config["username"]
36
- end
37
-
38
- RUBYFORGE_PROJECT = '#{gem_name}' # The unix name for your project
39
- HOMEPATH = "http://\#{RUBYFORGE_PROJECT}.rubyforge.org"
40
- DOWNLOAD_PATH = "http://rubyforge.org/projects/\#{RUBYFORGE_PROJECT}"
41
-
42
- NAME = "#{gem_name}"
43
- REV = nil
44
- # UNCOMMENT IF REQUIRED:
45
- # REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
46
- VERS = #{module_name}::VERSION::STRING + (REV ? ".\#{REV}" : "")
47
- CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
48
- RDOC_OPTS = ['--quiet', '--title', '#{gem_name} documentation',
49
- "--opname", "index.html",
50
- "--line-numbers",
51
- "--main", "README",
52
- "--inline-source"]
53
-
54
- class Hoe
55
- def extra_deps
56
- @extra_deps.reject { |x| Array(x).first == 'hoe' }
57
- end
58
- end
59
-
60
- # Generate all the Rake tasks
61
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
62
- hoe = Hoe.new(GEM_NAME, VERS) do |p|
63
- p.author = AUTHOR
64
- p.description = DESCRIPTION
65
- p.email = EMAIL
66
- p.summary = DESCRIPTION
67
- p.url = HOMEPATH
68
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
69
- p.test_globs = ["test/**/test_*.rb"]
70
- p.clean_globs |= CLEAN #An array of file patterns to delete on clean.
71
-
72
- # == Optional
73
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\\n\\n")
74
- #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
75
- #p.spec_extras = {} # A hash of extra values to set in the gemspec.
76
- end
77
-
78
- CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
79
- PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "\#{RUBYFORGE_PROJECT}/\#{GEM_NAME}"
80
- hoe.remote_rdoc_dir = File.join(PATH.gsub(/^\#{RUBYFORGE_PROJECT}\\/?/,''), 'rdoc')
81
-
82
- desc 'Generate website files'
83
- task :website_generate do
84
- Dir['website/**/*.txt'].each do |txt|
85
- sh %{ ruby scripts/txt2html \#{txt} > \#{txt.gsub(/txt$/,'html')} }
86
- end
87
- end
88
-
89
- desc 'Upload website files to rubyforge'
90
- task :website_upload do
91
- host = "\#{rubyforge_username}@rubyforge.org"
92
- remote_dir = "/var/www/gforge-projects/\#{PATH}/"
93
- local_dir = 'website'
94
- sh %{rsync -aCv \#{local_dir}/ \#{host}:\#{remote_dir}}
95
- end
96
-
97
- desc 'Generate and upload website files'
98
- task :website => [:website_generate, :website_upload, :publish_docs]
99
-
100
- desc 'Release the website and new gem version'
101
- task :deploy => [:check_version, :website, :release] do
102
- puts "Remember to create SVN tag:"
103
- puts "svn copy svn+ssh://\#{rubyforge_username}@rubyforge.org/var/svn/\#{PATH}/trunk " +
104
- "svn+ssh://\#{rubyforge_username}@rubyforge.org/var/svn/\#{PATH}/tags/REL-\#{VERS} "
105
- puts "Suggested comment:"
106
- puts "Tagging release \#{CHANGES}"
107
- end
108
-
109
- desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
110
- task :local_deploy => [:website_generate, :install_gem]
111
-
112
- task :check_version do
113
- unless ENV['VERSION']
114
- puts 'Must pass a VERSION=x.y.z release version'
115
- exit
116
- end
117
- unless ENV['VERSION'] == VERS
118
- puts "Please update your version.rb to match the release version, currently \#{VERS}"
119
- exit
120
- end
121
- end
122
-
123
- #{test_task}