newgem 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Manifest.txt +3 -0
- data/features/install_website.feature +3 -2
- data/features/rubygem_tasks.feature +8 -0
- data/features/steps/rubygems.rb +8 -0
- data/lib/hoe-patched.rb +1029 -0
- data/lib/newgem.rb +1 -1
- data/newgem_generators/install_website/templates/website/index.txt +0 -2
- data/newgem_theme_generators/plain_theme/templates/website/stylesheets/screen.css +31 -10
- data/newgem_theme_generators/plain_theme/templates/website/template.html.erb +5 -3
- data/patches/hoe/0001-readme-can-be-txt-or-rdoc.patch +62 -0
- data/tasks/deployment.rake +7 -0
- data/website/index.html +4 -4
- data/website/rubyforge.html +4 -4
- data/website/stylesheets/screen.css +15 -13
- data/website/template.html.erb +3 -3
- metadata +5 -2
data/lib/newgem.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
body {
|
2
|
-
background-color: #
|
2
|
+
background-color: #8DBD82;
|
3
3
|
font-family: "Georgia", sans-serif;
|
4
4
|
font-size: 16px;
|
5
5
|
line-height: 1.6em;
|
@@ -24,7 +24,7 @@ li {
|
|
24
24
|
}
|
25
25
|
a {
|
26
26
|
color: #5E5AFF;
|
27
|
-
background-color: #
|
27
|
+
background-color: #A1DDB1;
|
28
28
|
font-weight: normal;
|
29
29
|
text-decoration: underline;
|
30
30
|
}
|
@@ -39,7 +39,7 @@ blockquote {
|
|
39
39
|
}
|
40
40
|
|
41
41
|
#main {
|
42
|
-
width:
|
42
|
+
width: 55em;
|
43
43
|
padding: 0;
|
44
44
|
margin: 0 auto;
|
45
45
|
}
|
@@ -83,6 +83,7 @@ pre, code {
|
|
83
83
|
line-height: 1.4em;
|
84
84
|
color: #ff8;
|
85
85
|
background-color: #111;
|
86
|
+
width: 40em;
|
86
87
|
padding: 2px 10px 2px 10px;
|
87
88
|
}
|
88
89
|
.comment { color: #aaa; font-style: italic; }
|
@@ -96,17 +97,21 @@ pre, code {
|
|
96
97
|
.number { color: #F99; }
|
97
98
|
.expr { color: #227; }
|
98
99
|
|
99
|
-
|
100
|
+
.sidebar {
|
100
101
|
float: right;
|
102
|
+
}
|
103
|
+
|
104
|
+
#version {
|
105
|
+
width: 217px;
|
101
106
|
text-align: right;
|
102
107
|
font-family: sans-serif;
|
103
108
|
font-weight: normal;
|
104
|
-
background-color: #B3ABFF;
|
105
109
|
color: #141331;
|
106
110
|
padding: 15px 20px 10px 20px;
|
107
111
|
margin: 0 auto;
|
108
112
|
margin-top: 15px;
|
109
|
-
|
113
|
+
background-color: #9A5535;
|
114
|
+
border: 3px solid #7E393E;
|
110
115
|
}
|
111
116
|
|
112
117
|
#version .numbers {
|
@@ -119,16 +124,16 @@ pre, code {
|
|
119
124
|
|
120
125
|
#version p {
|
121
126
|
text-decoration: none;
|
122
|
-
color: #
|
123
|
-
background-color: #
|
127
|
+
color: #F1F4FF;
|
128
|
+
background-color: #9A5535;
|
124
129
|
margin: 0;
|
125
130
|
padding: 0;
|
126
131
|
}
|
127
132
|
|
128
133
|
#version a {
|
129
134
|
text-decoration: none;
|
130
|
-
color: #
|
131
|
-
background-color: #
|
135
|
+
color: #F1F4FF;
|
136
|
+
background-color: #9A5535;
|
132
137
|
}
|
133
138
|
|
134
139
|
.clickable {
|
@@ -136,3 +141,19 @@ pre, code {
|
|
136
141
|
cursor: hand;
|
137
142
|
}
|
138
143
|
|
144
|
+
#twitter_search {
|
145
|
+
margin: 40px 0 10px 15px;
|
146
|
+
color: #F1F4FF;
|
147
|
+
background-color: #9A5535;
|
148
|
+
border: 3px solid #7E393E;
|
149
|
+
}
|
150
|
+
|
151
|
+
#twitter_search h3 {
|
152
|
+
color: #F1F4FF;
|
153
|
+
margin-bottom: 0px;
|
154
|
+
}
|
155
|
+
|
156
|
+
#twitter_search center b {
|
157
|
+
display: none;
|
158
|
+
}
|
159
|
+
|
@@ -31,9 +31,11 @@
|
|
31
31
|
<div id="main">
|
32
32
|
|
33
33
|
<h1><%%= title %></h1>
|
34
|
-
<div
|
35
|
-
<
|
36
|
-
|
34
|
+
<div class="sidebar">
|
35
|
+
<div id="version" class="clickable" onclick='document.location = "<%%= download %>"; return false'>
|
36
|
+
<p>Get Version</p>
|
37
|
+
<a href="<%%= download %>" class="numbers"><%%= version %></a>
|
38
|
+
</div>
|
37
39
|
</div>
|
38
40
|
<%%= body %>
|
39
41
|
<p class="coda">
|
@@ -0,0 +1,62 @@
|
|
1
|
+
diff --git a/lib/hoe.rb b/lib/hoe.rb
|
2
|
+
index 0e44dfa..1d39815 100644
|
3
|
+
--- a/lib/hoe.rb
|
4
|
+
+++ b/lib/hoe.rb
|
5
|
+
@@ -340,6 +340,10 @@ class Hoe
|
6
|
+
warn "** #{name} is missing or in the wrong format for auto-intuiting."
|
7
|
+
warn " run `sow blah` and look at its text files"
|
8
|
+
end
|
9
|
+
+
|
10
|
+
+ def readme_name
|
11
|
+
+ Dir['README*'].first || 'README.txt'
|
12
|
+
+ end
|
13
|
+
|
14
|
+
def initialize(name, version) # :nodoc:
|
15
|
+
self.name = name
|
16
|
+
@@ -357,7 +361,7 @@ class Hoe
|
17
|
+
self.multiruby_skip = []
|
18
|
+
self.need_tar = true
|
19
|
+
self.need_zip = false
|
20
|
+
- self.rdoc_pattern = /^(lib|bin|ext)|txt$/
|
21
|
+
+ self.rdoc_pattern = /^(lib|bin|ext)|txt|rdoc$/
|
22
|
+
self.remote_rdoc_dir = name
|
23
|
+
self.rsync_args = '-av --delete'
|
24
|
+
self.rubyforge_name = name.downcase
|
25
|
+
@@ -371,7 +375,7 @@ class Hoe
|
26
|
+
|
27
|
+
# Intuit values:
|
28
|
+
|
29
|
+
- readme = File.read("README.txt").split(/^(=+ .*)$/)[1..-1] rescue ''
|
30
|
+
+ readme = File.read(readme_name).split(/^(=+ .*)$/)[1..-1] rescue ''
|
31
|
+
unless readme.empty? then
|
32
|
+
sections = readme.map { |s|
|
33
|
+
s =~ /^=/ ? s.strip.downcase.chomp(':').split.last : s.strip
|
34
|
+
@@ -384,7 +388,7 @@ class Hoe
|
35
|
+
self.summary ||= summ
|
36
|
+
self.url ||= readme[1].gsub(/^\* /, '').split(/\n/).grep(/\S+/)
|
37
|
+
else
|
38
|
+
- missing 'README.txt'
|
39
|
+
+ missing readme_name
|
40
|
+
end
|
41
|
+
|
42
|
+
self.changes ||= begin
|
43
|
+
@@ -509,8 +513,8 @@ class Hoe
|
44
|
+
dirs = Dir['{lib,ext}']
|
45
|
+
s.require_paths = dirs unless dirs.empty?
|
46
|
+
|
47
|
+
- s.rdoc_options = ['--main', 'README.txt']
|
48
|
+
- s.extra_rdoc_files = s.files.grep(/txt$/)
|
49
|
+
+ s.rdoc_options = ['--main', readme_name]
|
50
|
+
+ s.extra_rdoc_files = s.files.grep(/(txt|rdoc)$/)
|
51
|
+
s.has_rdoc = true
|
52
|
+
|
53
|
+
s.post_install_message = post_install_message
|
54
|
+
@@ -619,7 +623,7 @@ class Hoe
|
55
|
+
# Doco
|
56
|
+
|
57
|
+
Rake::RDocTask.new(:docs) do |rd|
|
58
|
+
- rd.main = "README.txt"
|
59
|
+
+ rd.main = readme_name
|
60
|
+
rd.options << '-d' if RUBY_PLATFORM !~ /win32/ and `which dot` =~ /\/dot/ and not ENV['NODOT']
|
61
|
+
rd.rdoc_dir = 'doc'
|
62
|
+
files = spec.files.grep(rdoc_pattern)
|
data/tasks/deployment.rake
CHANGED
data/website/index.html
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
<div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
|
41
41
|
<p>Get Version</p>
|
42
|
-
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.0.
|
42
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.0.3</a>
|
43
43
|
<p>Featured in</p>
|
44
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
45
|
</div>
|
@@ -49,10 +49,10 @@
|
|
49
49
|
<!-- HELP FILE - http://twitterwidget.jazzychad.com/tw/ -->
|
50
50
|
<script language = "javascript">
|
51
51
|
var jtw_search = 'newgem';
|
52
|
-
var jtw_widget_background = '
|
52
|
+
var jtw_widget_background = '9A5535';
|
53
53
|
var jtw_widget_border = '0';
|
54
|
-
var jtw_tweet_textcolor = '
|
55
|
-
var jtw_tweet_background = '
|
54
|
+
var jtw_tweet_textcolor = '141331';
|
55
|
+
var jtw_tweet_background = '9A5535';
|
56
56
|
var jtw_tweet_border = '0px';
|
57
57
|
</script>
|
58
58
|
<script src="http://twitterwidget.jazzychad.com/tw/searchwidget.js" type="text/javascript"></script>
|
data/website/rubyforge.html
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
<div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
|
41
41
|
<p>Get Version</p>
|
42
|
-
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.0.
|
42
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.0.3</a>
|
43
43
|
<p>Featured in</p>
|
44
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
45
|
</div>
|
@@ -49,10 +49,10 @@
|
|
49
49
|
<!-- HELP FILE - http://twitterwidget.jazzychad.com/tw/ -->
|
50
50
|
<script language = "javascript">
|
51
51
|
var jtw_search = 'newgem';
|
52
|
-
var jtw_widget_background = '
|
52
|
+
var jtw_widget_background = '9A5535';
|
53
53
|
var jtw_widget_border = '0';
|
54
|
-
var jtw_tweet_textcolor = '
|
55
|
-
var jtw_tweet_background = '
|
54
|
+
var jtw_tweet_textcolor = '141331';
|
55
|
+
var jtw_tweet_background = '9A5535';
|
56
56
|
var jtw_tweet_border = '0px';
|
57
57
|
</script>
|
58
58
|
<script src="http://twitterwidget.jazzychad.com/tw/searchwidget.js" type="text/javascript"></script>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
body {
|
2
|
-
background-color: #
|
2
|
+
background-color: #8DBD82;
|
3
3
|
font-family: "Georgia", sans-serif;
|
4
4
|
font-size: 16px;
|
5
5
|
line-height: 1.6em;
|
@@ -24,7 +24,7 @@ li {
|
|
24
24
|
}
|
25
25
|
a {
|
26
26
|
color: #5E5AFF;
|
27
|
-
background-color: #
|
27
|
+
background-color: #A1DDB1;
|
28
28
|
font-weight: normal;
|
29
29
|
text-decoration: underline;
|
30
30
|
}
|
@@ -39,7 +39,7 @@ blockquote {
|
|
39
39
|
}
|
40
40
|
|
41
41
|
#main {
|
42
|
-
width:
|
42
|
+
width: 55em;
|
43
43
|
padding: 0;
|
44
44
|
margin: 0 auto;
|
45
45
|
}
|
@@ -83,6 +83,7 @@ pre, code {
|
|
83
83
|
line-height: 1.4em;
|
84
84
|
color: #ff8;
|
85
85
|
background-color: #111;
|
86
|
+
width: 40em;
|
86
87
|
padding: 2px 10px 2px 10px;
|
87
88
|
}
|
88
89
|
.comment { color: #aaa; font-style: italic; }
|
@@ -101,16 +102,16 @@ pre, code {
|
|
101
102
|
}
|
102
103
|
|
103
104
|
#version {
|
104
|
-
|
105
|
+
width: 217px;
|
105
106
|
text-align: right;
|
106
107
|
font-family: sans-serif;
|
107
108
|
font-weight: normal;
|
108
|
-
background-color: #B3ABFF;
|
109
109
|
color: #141331;
|
110
110
|
padding: 15px 20px 10px 20px;
|
111
111
|
margin: 0 auto;
|
112
112
|
margin-top: 15px;
|
113
|
-
|
113
|
+
background-color: #9A5535;
|
114
|
+
border: 3px solid #7E393E;
|
114
115
|
}
|
115
116
|
|
116
117
|
#version .numbers {
|
@@ -123,16 +124,16 @@ pre, code {
|
|
123
124
|
|
124
125
|
#version p {
|
125
126
|
text-decoration: none;
|
126
|
-
color: #
|
127
|
-
background-color: #
|
127
|
+
color: #F1F4FF;
|
128
|
+
background-color: #9A5535;
|
128
129
|
margin: 0;
|
129
130
|
padding: 0;
|
130
131
|
}
|
131
132
|
|
132
133
|
#version a {
|
133
134
|
text-decoration: none;
|
134
|
-
color: #
|
135
|
-
background-color: #
|
135
|
+
color: #F1F4FF;
|
136
|
+
background-color: #9A5535;
|
136
137
|
}
|
137
138
|
|
138
139
|
.clickable {
|
@@ -140,14 +141,15 @@ pre, code {
|
|
140
141
|
cursor: hand;
|
141
142
|
}
|
142
143
|
|
143
|
-
|
144
144
|
#twitter_search {
|
145
145
|
margin: 40px 0 10px 15px;
|
146
|
-
|
147
|
-
background-color: #
|
146
|
+
color: #F1F4FF;
|
147
|
+
background-color: #9A5535;
|
148
|
+
border: 3px solid #7E393E;
|
148
149
|
}
|
149
150
|
|
150
151
|
#twitter_search h3 {
|
152
|
+
color: #F1F4FF;
|
151
153
|
margin-bottom: 0px;
|
152
154
|
}
|
153
155
|
|
data/website/template.html.erb
CHANGED
@@ -49,10 +49,10 @@
|
|
49
49
|
<!-- HELP FILE - http://twitterwidget.jazzychad.com/tw/ -->
|
50
50
|
<script language = "javascript">
|
51
51
|
var jtw_search = 'newgem';
|
52
|
-
var jtw_widget_background = '
|
52
|
+
var jtw_widget_background = '9A5535';
|
53
53
|
var jtw_widget_border = '0';
|
54
|
-
var jtw_tweet_textcolor = '
|
55
|
-
var jtw_tweet_background = '
|
54
|
+
var jtw_tweet_textcolor = '141331';
|
55
|
+
var jtw_tweet_background = '9A5535';
|
56
56
|
var jtw_tweet_border = '0px';
|
57
57
|
</script>
|
58
58
|
<script src="http://twitterwidget.jazzychad.com/tw/searchwidget.js" type="text/javascript"></script>
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dr Nic Williams
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-10-
|
12
|
+
date: 2008-10-31 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -148,6 +148,8 @@ files:
|
|
148
148
|
- features/rubygem_tasks.feature
|
149
149
|
- features/steps/cli.rb
|
150
150
|
- features/steps/env.rb
|
151
|
+
- features/steps/rubygems.rb
|
152
|
+
- lib/hoe-patched.rb
|
151
153
|
- lib/newgem.rb
|
152
154
|
- lib/newgem/quick_template.rb
|
153
155
|
- lib/newgem/rubyforge.rb
|
@@ -172,6 +174,7 @@ files:
|
|
172
174
|
- newgem_theme_generators/plain_theme/templates/website/javascripts/rounded_corners_lite.inc.js
|
173
175
|
- newgem_theme_generators/plain_theme/templates/website/stylesheets/screen.css
|
174
176
|
- newgem_theme_generators/plain_theme/templates/website/template.html.erb
|
177
|
+
- patches/hoe/0001-readme-can-be-txt-or-rdoc.patch
|
175
178
|
- rubygems_generators/executable/USAGE
|
176
179
|
- rubygems_generators/executable/executable_generator.rb
|
177
180
|
- rubygems_generators/executable/templates/bin/app.rb.erb
|