newgem 0.25.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
data/website/index.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  h1. New Gem Generator
2
2
 
3
- h1. → 'newgem'
3
+ h1. newgem
4
4
 
5
5
  h2. What
6
6
 
@@ -24,6 +24,10 @@
24
24
  }
25
25
  var versionBox = new curvyCorners(settings, document.getElementById("version"));
26
26
  versionBox.applyCornersToAll();
27
+
28
+ var twitterBox = new curvyCorners(settings, document.getElementById("twitter_search"));
29
+ twitterBox.applyCornersToAll();
30
+
27
31
  }
28
32
  </script>
29
33
  </head>
@@ -31,115 +35,75 @@
31
35
  <div id="main">
32
36
 
33
37
  <h1>New Gem Generator</h1>
34
- <div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
35
- <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/newgem" class="numbers">0.25.0</a>
37
- <p>Featured in</p>
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>
38
+ <div class="sidebar">
39
+
40
+ <div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
41
+ <p>Get Version</p>
42
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">0.27.0</a>
43
+ <p>Featured in</p>
44
+ <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>
45
+ </div>
46
+
47
+ <div id="twitter_search">
48
+ <h3>Heard on twitter ('newgem')...</h3>
49
+ <!-- HELP FILE - http://twitterwidget.jazzychad.com/tw/ -->
50
+ <script language = "javascript">
51
+ var jtw_search = 'newgem';
52
+ var jtw_widget_background = 'B3ABFF';
53
+ var jtw_widget_border = '0';
54
+ var jtw_tweet_textcolor = 'fff';
55
+ var jtw_tweet_background = '000';
56
+ var jtw_tweet_border = '0px';
57
+ </script>
58
+ <script src="http://twitterwidget.jazzychad.com/tw/searchwidget.js" type="text/javascript"></script>
59
+ </div>
39
60
  </div>
40
- <h1>&#x2192; using &#8216;rubyforge&#8217;</h1>
41
-
42
-
43
- <p>The New Gem Generator makes it very easy for you to upload your gems to RubyForge, thanks to the integration of the <code>hoe</code> and <code>rubyforge</code> gems, by <a href="http://blog.zenspider.com/">Ryan Davis</a>.</p>
44
-
45
-
46
- <p>This page describes how to setup the <em>rubyforge</em> application (lowercase rubyforge = the application), create new RubyForge projects (uppercase RubyForge = the website for hosting gems and homepages), and releasing your gems and their future versions to RubyForge using <em>rubyforge</em>.</p>
47
-
48
-
49
- <h2>Get a RubyForge project.</h2>
50
-
51
-
52
- <p>RubyForge is a great site for uploading gems, as the default settings of all RubyGems users is to look for new gems there. You can run your own gem server, but here we&#8217;ll assume you&#8217;re uploading to RubyForge.</p>
53
-
54
-
55
- <p>Additionally, you can host more than one gem on each project. The Magic Models project hosts several gems, each with different versions.</p>
56
-
57
-
58
- <p>To host your gems you&#8217;ll need a Project. Apply for it asap as it takes a day or so for the RubyForge admins to accept and generate your project.</p>
59
-
60
-
61
- <p><strong>Note:</strong> the name of your project does not have to match the name of any of your gems.</p>
62
-
63
-
64
- <h3>Setup access to RubyForge</h3>
65
-
66
-
67
- <p>Your new gem will use the rubyforge app to upload your gem. So first we need to set it up.</p>
68
-
69
-
61
+ <h1>&amp;#x2192; using &#8216;rubyforge&#8217;</h1>
62
+ <p>The New Gem Generator makes it very easy for you to upload your gems to RubyForge, thanks to the integration of the <code>hoe</code> and <code>rubyforge</code> gems, by <a href="http://blog.zenspider.com/">Ryan Davis</a>.</p>
63
+ <p>This page describes how to setup the <em>rubyforge</em> application (lowercase rubyforge = the application), create new RubyForge projects (uppercase RubyForge = the website for hosting gems and homepages), and releasing your gems and their future versions to RubyForge using <em>rubyforge</em>.</p>
64
+ <h2>Get a RubyForge project.</h2>
65
+ <p>RubyForge is a great site for uploading gems, as the default settings of all RubyGems users is to look for new gems there. You can run your own gem server, but here we&#8217;ll assume you&#8217;re uploading to RubyForge.</p>
66
+ <p>Additionally, you can host more than one gem on each project. The Magic Models project hosts several gems, each with different versions.</p>
67
+ <p>To host your gems you&#8217;ll need a Project. Apply for it asap as it takes a day or so for the RubyForge admins to accept and generate your project.</p>
68
+ <p><strong>Note:</strong> the name of your project does not have to match the name of any of your gems.</p>
69
+ <h3>Setup access to RubyForge</h3>
70
+ <p>Your new gem will use the rubyforge app to upload your gem. So first we need to set it up.</p>
70
71
  <pre>$ sudo gem install rubyforge
71
72
  $ rubyforge setup
72
73
  $ mate ~/.rubyforge/user-config.yml
73
74
  </pre>
74
-
75
- <p>This creates a configuration folder <code>.rubyforge</code> in your home folder (on Windows it is <span class="caps">XXXXXX</span>). The last line is to edit the config file.</p>
76
-
77
-
78
- <p>The only two lines to set are your RubyForge <strong>username</strong> and <strong>password</strong>. Ignore the rest.</p>
79
-
80
-
75
+ <p>This creates a configuration folder <code>.rubyforge</code> in your home folder (on Windows it is XXXXXX). The last line is to edit the config file.</p>
76
+ <p>The only two lines to set are your RubyForge <strong>username</strong> and <strong>password</strong>. Ignore the rest.</p>
81
77
  <pre>$ rubyforge config</pre>
82
-
83
- <p>This generates a file <code>~/.rubyforge/auto-config.yml</code> which will be mostly empty now, but one day will be full of projects and all the releases of different versions of gems. One day soon I hope.</p>
84
-
85
-
86
- <p>Just like the website, all other operations require you to login first.</p>
87
-
88
-
78
+ <p>This generates a file <code>~/.rubyforge/auto-config.yml</code> which will be mostly empty now, but one day will be full of projects and all the releases of different versions of gems. One day soon I hope.</p>
79
+ <p>Just like the website, all other operations require you to login first.</p>
89
80
  <pre>$ rubyforge login</pre>
90
-
91
- <p>If this fails, check your user-config.yml files for problems with your username/password.</p>
92
-
93
-
94
- <h3>Preparing for a new gem</h3>
95
-
96
-
97
- <p>When you first release a new gem, you need to perform one more step.</p>
98
-
99
-
81
+ <p>If this fails, check your user-config.yml files for problems with your username/password.</p>
82
+ <h3>Preparing for a new gem</h3>
83
+ <p>When you first release a new gem, you need to perform one more step.</p>
100
84
  <pre>$ rubyforge login
101
85
  $ rubyforge names
102
86
  </pre>
103
-
104
- <p>This will return the name of your new Project, if you forgot it.</p>
105
-
106
-
87
+ <p>This will return the name of your new Project, if you forgot it.</p>
107
88
  <pre>$ rubyforge create_package #project_name# #gem_name#
108
89
  </pre>
109
-
110
- <p>Alternately, if you can&#8217;t get this to work, you can create the new package via the website.</p>
111
-
112
-
113
- <ol>
90
+ <p>Alternately, if you can&#8217;t get this to work, you can create the new package via the website.</p>
91
+ <ol>
114
92
  <li><a href="https://rubyforge.org/account/login.php">Login to RubyForge</a></li>
115
- <li>Go to your project&#8217;s page</li>
116
- <li>Click on <strong>Files</strong>.</li>
117
- <li>Click on <strong>To create new release click here</strong>.</li>
118
- <li>Click on <strong>Create a new package</strong>.</li>
119
- <li>Go to the bottom of the page, to the form <strong>New Package Name</strong>.</li>
120
- <li>Enter a package name, without spaces, and generally in all lowercase letters.</li>
121
- <li>Click <strong>Create This Package</strong></li>
122
- </ol>
123
-
124
-
125
- <p>Now return to the console/terminal, and refresh your rubyforge config files using <code>rubyforge config</code>.</p>
126
-
127
-
128
- <p>Check that the new package has been successfully added to your local config files using <code>rubyforge name</code>. The new package should appear in the list of package names.</p>
129
-
130
-
131
- <h2>You are now ready to release gems!</h2>
132
-
133
-
134
- <p><a href="index.html#setup_rubyforge">Return to releasing your gem</a></p>
135
-
136
-
137
- <h2>rubyforge docco</h2>
138
-
139
-
140
- <p>The best rubyforge command documentation is available via the application itself (see below) and the <a href="http://codeforpeople.rubyforge.org/rubyforge/">RDocs</a></p>
141
-
142
-
93
+ <li>Go to your project&#8217;s page</li>
94
+ <li>Click on <strong>Files</strong>.</li>
95
+ <li>Click on <strong>To create new release click here</strong>.</li>
96
+ <li>Click on <strong>Create a new package</strong>.</li>
97
+ <li>Go to the bottom of the page, to the form <strong>New Package Name</strong>.</li>
98
+ <li>Enter a package name, without spaces, and generally in all lowercase letters.</li>
99
+ <li>Click <strong>Create This Package</strong></li>
100
+ </ol>
101
+ <p>Now return to the console/terminal, and refresh your rubyforge config files using <code>rubyforge config</code>.</p>
102
+ <p>Check that the new package has been successfully added to your local config files using <code>rubyforge name</code>. The new package should appear in the list of package names.</p>
103
+ <h2>You are now ready to release gems!</h2>
104
+ <p><a href="index.html#setup_rubyforge">Return to releasing your gem</a></p>
105
+ <h2>rubyforge docco</h2>
106
+ <p>The best rubyforge command documentation is available via the application itself (see below) and the <a href="http://codeforpeople.rubyforge.org/rubyforge/">RDocs</a></p>
143
107
  <pre>$ rubyforge help
144
108
  SYNOPSIS
145
109
 
@@ -186,7 +150,7 @@ MODES
186
150
 
187
151
  example :
188
152
  rubyforge create_package 1024 traits
189
- rubyforge login &#38;&#38; rubyforge create_package codeforpeople.com traits
153
+ rubyforge login &amp;&amp; rubyforge create_package codeforpeople.com traits
190
154
 
191
155
  add_release(group_id, package_id, release_name, userfile)
192
156
  release a file as release_name under the specified group_id and
@@ -196,7 +160,7 @@ MODES
196
160
  rubyforge add_release codeforpeople.com traits 0.8.0 traits-0.8.0.gem
197
161
  rubyforge add_release codeforpeople.com traits 0.8.0 traits-0.8.0.tgz
198
162
  rubyforge add_release 1024 1242 0.8.0 traits-0.8.0.gem
199
- rubyforge login &#38;&#38; rubyforge add_release 1024 1242 0.8.0 traits-0.8.0.gem
163
+ rubyforge login &amp;&amp; rubyforge add_release 1024 1242 0.8.0 traits-0.8.0.gem
200
164
 
201
165
  add_file(group_id, package_id, release_id, userfile)
202
166
  add a file to an existing release under the specified group_id,
@@ -96,8 +96,12 @@ pre, code {
96
96
  .number { color: #F99; }
97
97
  .expr { color: #227; }
98
98
 
99
- #version {
99
+ .sidebar {
100
100
  float: right;
101
+ }
102
+
103
+ #version {
104
+ width: 217px;
101
105
  text-align: right;
102
106
  font-family: sans-serif;
103
107
  font-weight: normal;
@@ -136,3 +140,18 @@ pre, code {
136
140
  cursor: hand;
137
141
  }
138
142
 
143
+
144
+ #twitter_search {
145
+ margin: 40px 0 10px 15px;
146
+ border: 3px solid #141331;
147
+ background-color: #B3ABFF;
148
+ }
149
+
150
+ #twitter_search h3 {
151
+ margin-bottom: 0px;
152
+ }
153
+
154
+ #twitter_search center b {
155
+ display: none;
156
+ }
157
+
@@ -24,6 +24,10 @@
24
24
  }
25
25
  var versionBox = new curvyCorners(settings, document.getElementById("version"));
26
26
  versionBox.applyCornersToAll();
27
+
28
+ var twitterBox = new curvyCorners(settings, document.getElementById("twitter_search"));
29
+ twitterBox.applyCornersToAll();
30
+
27
31
  }
28
32
  </script>
29
33
  </head>
@@ -31,11 +35,28 @@
31
35
  <div id="main">
32
36
 
33
37
  <h1><%= title %></h1>
34
- <div id="version"> <!-- class="clickable" onclick='document.location = "<%= download %>"; return true' -->
35
- <p>Get Version</p>
36
- <a href="<%= download %>" class="numbers"><%= version %></a>
37
- <p>Featured in</p>
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>
38
+ <div class="sidebar">
39
+
40
+ <div id="version"> <!-- class="clickable" onclick='document.location = "<%= download %>"; return true' -->
41
+ <p>Get Version</p>
42
+ <a href="<%= download %>" class="numbers"><%= version %></a>
43
+ <p>Featured in</p>
44
+ <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>
45
+ </div>
46
+
47
+ <div id="twitter_search">
48
+ <h3>Heard on twitter ('newgem')...</h3>
49
+ <!-- HELP FILE - http://twitterwidget.jazzychad.com/tw/ -->
50
+ <script language = "javascript">
51
+ var jtw_search = 'newgem';
52
+ var jtw_widget_background = 'B3ABFF';
53
+ var jtw_widget_border = '0';
54
+ var jtw_tweet_textcolor = 'fff';
55
+ var jtw_tweet_background = '000';
56
+ var jtw_tweet_border = '0px';
57
+ </script>
58
+ <script src="http://twitterwidget.jazzychad.com/tw/searchwidget.js" type="text/javascript"></script>
59
+ </div>
39
60
  </div>
40
61
  <%= body %>
41
62
  <p class="coda">
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.25.0";
2
+ var version = "0.27.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.25.0";
2
+ var version = "0.27.0";
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.25.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,20 +9,22 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-19 00:00:00 +10:00
12
+ date: 2008-09-24 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: RedCloth
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - ">="
21
22
  - !ruby/object:Gem::Version
22
- version: 3.0.4
23
+ version: 4.0.0
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: syntax
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
@@ -32,6 +34,7 @@ dependencies:
32
34
  version:
33
35
  - !ruby/object:Gem::Dependency
34
36
  name: activesupport
37
+ type: :runtime
35
38
  version_requirement:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
@@ -41,6 +44,7 @@ dependencies:
41
44
  version:
42
45
  - !ruby/object:Gem::Dependency
43
46
  name: rubigen
47
+ type: :runtime
44
48
  version_requirement:
45
49
  version_requirements: !ruby/object:Gem::Requirement
46
50
  requirements:
@@ -50,12 +54,13 @@ dependencies:
50
54
  version:
51
55
  - !ruby/object:Gem::Dependency
52
56
  name: hoe
57
+ type: :development
53
58
  version_requirement:
54
59
  version_requirements: !ruby/object:Gem::Requirement
55
60
  requirements:
56
61
  - - ">="
57
62
  - !ruby/object:Gem::Version
58
- version: 1.5.3
63
+ version: 1.7.0
59
64
  version:
60
65
  description: Make your own gems at home
61
66
  email:
@@ -66,15 +71,11 @@ extensions: []
66
71
 
67
72
  extra_rdoc_files:
68
73
  - History.txt
69
- - License.txt
70
74
  - Manifest.txt
71
75
  - PostInstall.txt
72
- - README.txt
73
76
  - Todo.txt
74
77
  - app_generators/newgem/templates/History.txt
75
- - app_generators/newgem/templates/License.txt
76
78
  - app_generators/newgem/templates/PostInstall.txt
77
- - app_generators/newgem/templates/README.txt
78
79
  - newgem_generators/install_website/templates/website/index.txt
79
80
  - newgem_theme_generators/long_box_theme/templates/website/index.txt
80
81
  - rubygems_generators/extconf/templates/README.txt
@@ -84,17 +85,15 @@ extra_rdoc_files:
84
85
  - website/version.txt
85
86
  files:
86
87
  - History.txt
87
- - License.txt
88
88
  - Manifest.txt
89
89
  - PostInstall.txt
90
- - README.txt
90
+ - README.rdoc
91
91
  - Rakefile
92
92
  - Todo.txt
93
93
  - app_generators/newgem/newgem_generator.rb
94
94
  - app_generators/newgem/templates/History.txt
95
- - app_generators/newgem/templates/License.txt
96
95
  - app_generators/newgem/templates/PostInstall.txt
97
- - app_generators/newgem/templates/README.txt
96
+ - app_generators/newgem/templates/README.rdoc
98
97
  - app_generators/newgem/templates/Rakefile
99
98
  - app_generators/newgem/templates/config/hoe.rb
100
99
  - app_generators/newgem/templates/config/requirements.rb
@@ -110,7 +109,7 @@ files:
110
109
  - app_generators/newgem_simple/USAGE
111
110
  - app_generators/newgem_simple/newgem_simple_generator.rb
112
111
  - app_generators/newgem_simple/templates/LICENSE
113
- - app_generators/newgem_simple/templates/README
112
+ - app_generators/newgem_simple/templates/README.rdoc
114
113
  - app_generators/newgem_simple/templates/Rakefile
115
114
  - app_generators/newgem_simple/templates/TODO
116
115
  - app_generators/newgem_simple/templates/lib/templates.rb
@@ -186,6 +185,8 @@ files:
186
185
  - tasks/environment.rake
187
186
  - tasks/generator_report.rake
188
187
  - tasks/website.rake
188
+ - test/fixtures/home/.rubyforge/auto-config.yml
189
+ - test/fixtures/home/.rubyforge/user-config.yml
189
190
  - test/test_executable_generator.rb
190
191
  - test/test_extconf_generator.rb
191
192
  - test/test_generator_helper.rb
@@ -198,6 +199,7 @@ files:
198
199
  - test/test_newgem_generator.rb
199
200
  - test/test_newgem_simple_generator.rb
200
201
  - test/test_plain_theme_generator.rb
202
+ - test/test_rubyforge.rb
201
203
  - website/images/beginning-ruby.jpg
202
204
  - website/index.html
203
205
  - website/index.txt
@@ -262,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
264
  requirements: []
263
265
 
264
266
  rubyforge_project: newgem
265
- rubygems_version: 1.1.1
267
+ rubygems_version: 1.2.0
266
268
  signing_key:
267
269
  specification_version: 2
268
270
  summary: Make your own gems at home
data/License.txt DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2006-2008 Dr Nic Williams
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.