cutep 0.0.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,21 @@
1
+ 2007-06-29 Kouichirou Eto <2007 eto.com>
2
+
3
+ * Version 1.0.0 released.
4
+
5
+ 2007-06-29 Kouichirou Eto <2007 eto.com>
6
+
7
+ * lib/qp/version.rb: Deleted.
8
+ * Rakefile: Changed.
9
+
10
+ * Rakefile: Add task chmod
11
+
12
+ * website/index.txt: Update.
13
+ * website/stylesheets/screen.css: Update.
14
+ * website/stylesheets/bg.png: New file.
15
+
16
+ * examples/sample1.rb: New file.
17
+ * examples/sample2.rb: New file.
18
+
1
19
  2007-06-16 Kouichirou Eto <2007 eto.com>
2
20
 
3
21
  * Version 0.0.3 released.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.0 2007-06-29
2
+
3
+ * 0 major enhancement:
4
+ * Delete version.rb
5
+
1
6
  == 0.0.3 2007-06-16
2
7
 
3
8
  * 0 major enhancement:
data/Manifest.txt CHANGED
@@ -4,8 +4,9 @@ License.txt
4
4
  Manifest.txt
5
5
  README.txt
6
6
  Rakefile
7
+ examples/sample.rb
7
8
  lib/qp.rb
8
- lib/qp/version.rb
9
+ memo.txt
9
10
  scripts/makemanifest.rb
10
11
  scripts/txt2html
11
12
  setup.rb
data/Rakefile CHANGED
@@ -17,10 +17,10 @@ rescue LoadError
17
17
  end
18
18
 
19
19
  include FileUtils
20
- require File.join(File.dirname(__FILE__), 'lib', 'qp', 'version')
20
+ require File.join(File.dirname(__FILE__), 'lib', 'qp')
21
21
 
22
22
  AUTHOR = 'Kouichirou Eto'
23
- EMAIL = "eto@rubyforge.org.please.do.not.send.spam.example.com"
23
+ EMAIL = "eto _at_ rubyforge _dot_ org"
24
24
  DESCRIPTION = '"Cute p" provide more human readable "p" function.'
25
25
  GEM_NAME = 'cutep'
26
26
 
@@ -96,7 +96,7 @@ task :website_generate do
96
96
  end
97
97
  end
98
98
 
99
- # add chmod function.
99
+ # add chmod.
100
100
  task :website_generate do
101
101
  sh %{ chmod -R go+rx website }
102
102
  end
@@ -142,12 +142,12 @@ Spec::Rake::SpecTask.new do |t|
142
142
  t.libs << "lib"
143
143
  end
144
144
 
145
- # add chmod function.
145
+ # add chmod.
146
146
  task :docs do
147
147
  sh %{ chmod -R go+rx doc }
148
148
  end
149
149
 
150
- # override clear current task
150
+ # clear current task
151
151
  module Rake
152
152
  class Task
153
153
  def clear_actions
@@ -156,11 +156,11 @@ module Rake
156
156
  end
157
157
  end
158
158
 
159
- # clear current install_gem task
159
+ # clear current task
160
160
  t = Rake.application.lookup(:install_gem)
161
161
  t.clear_actions if t
162
162
 
163
- # redefine install_gem task
163
+ # redefine task
164
164
  task :install_gem => [:clean, :package] do
165
165
  if /mswin32/ =~ RUBY_PLATFORM || /cygwin/ =~ RUBY_PLATFORM
166
166
  sh "gem.cmd install pkg/*.gem" # for Cygwin
@@ -169,5 +169,26 @@ task :install_gem => [:clean, :package] do
169
169
  end
170
170
  end
171
171
 
172
+ task :clean => [:chmod]
173
+
174
+ desc 'Change mode to erase executable bits.'
175
+ task :chmod do
176
+ sh "chmod 644 Rakefile ChangeLog"
177
+ sh "chmod 644 *.txt */*.txt"
178
+ sh "chmod 644 */*.html"
179
+ sh "chmod 644 */*.rhtml"
180
+ sh "chmod 644 */*/*.js"
181
+ sh "chmod 644 */*/*.css"
182
+ sh "chmod 644 *.rb */*.rb"
183
+ sh "chmod 755 scripts/*"
184
+ end
185
+
186
+ desc 'Create Manifest.txt file.'
187
+ task :manifest => [:chmod, :clean] do
188
+ ruby "scripts/makemanifest.rb"
189
+ end
190
+
191
+ task :gem => [:manifest]
192
+
172
193
  desc "Default task is to run specs"
173
194
  task :default => :spec
@@ -0,0 +1,8 @@
1
+ require 'qp'
2
+ qp 'foo'
3
+
4
+ def a_method
5
+ qp 'in a_method'
6
+ qp 1, 2, 3
7
+ end
8
+ a_method
data/lib/qp.rb CHANGED
@@ -1,9 +1,14 @@
1
1
  # Copyright (C) 2003-2007 Kouichirou Eto, All rights reserved.
2
2
  # License: Ruby License
3
3
 
4
- require 'qp/version'
5
-
6
4
  module QP #:nodoc:
5
+ module VERSION #:nodoc:
6
+ MAJOR = 1
7
+ MINOR = 0
8
+ TINY = 0
9
+ STRING = [MAJOR, MINOR, TINY].join('.')
10
+ end
11
+
7
12
  def caller_msg(ca) #:nodoc:
8
13
  file, linenum, msg = ca.first.split(/:([0-9]+):/)
9
14
  msg = $1 if /\Ain \`(.+)\'\z/ =~ msg
data/memo.txt ADDED
@@ -0,0 +1,13 @@
1
+ ----------------------------------------------------------------------
2
+ == 1.0.0 2007-06-29
3
+
4
+ * 0 major enhancement:
5
+ * Remove unused files and directories.
6
+
7
+ ----------------------------------------------------------------------
8
+ 2007-06-29 Kouichirou Eto <2007 eto.com>
9
+
10
+ * Version 1.0.0 released.
11
+
12
+
13
+ ----------------------------------------------------------------------
data/scripts/txt2html CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
4
4
  require 'redcloth'
5
5
  require 'syntax/convertors/html'
6
6
  require 'erb'
7
- require File.dirname(__FILE__) + '/../lib/qp/version.rb'
7
+ require File.dirname(__FILE__) + '/../lib/qp'
8
8
 
9
9
  version = QP::VERSION::STRING
10
10
  download = 'http://rubyforge.org/projects/cutep'
data/website/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <title>
8
- cutep
8
+ Cute p, call it simply &#8216;qp&#8217;
9
9
  </title>
10
10
  <script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
11
11
  <style>
@@ -30,22 +30,19 @@
30
30
  <body>
31
31
  <div id="main">
32
32
 
33
- <h1>cutep</h1>
33
+ <h1>Cute p, call it simply &#8216;qp&#8217;</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/cutep"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/cutep" class="numbers">0.0.3</a>
36
+ <a href="http://rubyforge.org/projects/cutep" class="numbers">1.0.0</a>
37
37
  </div>
38
- <h1>&#x2192; or call it simply &#8216;qp&#8217;</h1>
38
+ <h2>What</h2>
39
39
 
40
40
 
41
- <h2>What</h2>
41
+ <p>&#8220;qp&#8221; (stands for &#8220;Cute p&#8221;) provide more useful &#8220;p&#8221; function.</p>
42
42
 
43
43
 
44
- <p>&#8220;Cute p&#8221; provide more human readable &#8220;p&#8221; function.</p>
45
-
46
-
47
- <p>You can use a method &#8216;qp&#8217; instead of &#8216;p&#8217; and you&#8217;ll see the recent
48
- caller of the method.</p>
44
+ <p>You can use method &#8216;qp&#8217; instead of &#8216;p&#8217;,
45
+ then you can see the caller of the method.</p>
49
46
 
50
47
 
51
48
  <h2>Installing</h2>
@@ -57,35 +54,40 @@ caller of the method.</p>
57
54
 
58
55
 
59
56
  <pre syntax="ruby">
57
+ # sample1.rb
60
58
  require 'qp'
61
59
  qp 'foo'
62
60
  </pre>
63
61
 
64
- <p>Simply, use &#8216;<tt>qp</tt>&#8217; instead of &#8216;<tt>p</tt>&#8217;.</p>
65
-
62
+ <pre>
63
+ % ruby sample1.rb
64
+ sample1.rb:3:: ["foo"]
65
+ </pre>
66
66
 
67
- <h2>Demonstration of usage</h2>
67
+ <p>Simply, use &#8216;<tt>qp</tt>&#8217; instead of &#8216;<tt>p</tt>&#8217;.</p>
68
68
 
69
69
 
70
70
  <pre syntax="ruby">
71
+ # sample2.rb
71
72
  require 'qp'
72
- qp 'foo'
73
+ require 'sample1'
73
74
 
74
- def a_method
75
- qp 'in a_method'
75
+ def foo
76
+ qp 'bar'
76
77
  qp 1, 2, 3
77
78
  end
78
- a_method
79
+
80
+ foo
79
81
  </pre>
80
82
 
81
83
  <pre>
82
- % ruby examples/sample.rb
83
- sample.rb:2:: ["foo"]
84
- sample.rb:5:a_method ["in a_method"]
85
- sample.rb:6:a_method [1, 2, 3]
84
+ % ruby sample2.rb
85
+ sample1.rb:3:: ["foo"]
86
+ sample2.rb:6:foo ["bar"]
87
+ sample2.rb:7:foo [1, 2, 3]
86
88
  </pre>
87
89
 
88
- <p>You see that the caller method and the filename of the method.</p>
90
+ <p>You can see that the caller of the method and the filename.</p>
89
91
 
90
92
 
91
93
  <h2>Repositry</h2>
@@ -103,9 +105,9 @@ sample.rb:6:a_method [1, 2, 3]
103
105
  <h2>Contact</h2>
104
106
 
105
107
 
106
- <p>Comments are welcome. Send an email to &#8220;Kouichirou Eto&#8221; <eto at rubyforge dot org>.</p>
108
+ <p>Comments are welcome. Send an email to &#8220;Kouichirou Eto&#8221; <eto <em>at</em> rubyforge <em>dot</em> org&gt;.</p>
107
109
  <p class="coda">
108
- 15th June 2007<br>
110
+ 29th June 2007<br>
109
111
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
110
112
  </p>
111
113
  </div>
data/website/index.txt CHANGED
@@ -1,13 +1,11 @@
1
- h1. cutep
2
-
3
- h1. &#x2192; or call it simply 'qp'
1
+ h1. Cute p, call it simply 'qp'
4
2
 
5
3
  h2. What
6
4
 
7
- "Cute p" provide more human readable "p" function.
5
+ "qp" (stands for "Cute p") provide more useful "p" function.
8
6
 
9
- You can use a method 'qp' instead of 'p' and you'll see the recent
10
- caller of the method.
7
+ You can use method 'qp' instead of 'p',
8
+ then you can see the caller of the method.
11
9
 
12
10
  h2. Installing
13
11
 
@@ -16,33 +14,39 @@ h2. Installing
16
14
  h2. The Basic
17
15
 
18
16
  <pre syntax="ruby">
17
+ # sample1.rb
19
18
  require 'qp'
20
19
  qp 'foo'
21
20
  </pre>
22
21
 
23
- Simply, use '<tt>qp</tt>' instead of '<tt>p</tt>'.
22
+ <pre>
23
+ % ruby sample1.rb
24
+ sample1.rb:3:: ["foo"]
25
+ </pre>
24
26
 
25
- h2. Demonstration of usage
27
+ Simply, use '<tt>qp</tt>' instead of '<tt>p</tt>'.
26
28
 
27
29
  <pre syntax="ruby">
30
+ # sample2.rb
28
31
  require 'qp'
29
- qp 'foo'
32
+ require 'sample1'
30
33
 
31
- def a_method
32
- qp 'in a_method'
34
+ def foo
35
+ qp 'bar'
33
36
  qp 1, 2, 3
34
37
  end
35
- a_method
38
+
39
+ foo
36
40
  </pre>
37
41
 
38
42
  <pre>
39
- % ruby examples/sample.rb
40
- sample.rb:2:: ["foo"]
41
- sample.rb:5:a_method ["in a_method"]
42
- sample.rb:6:a_method [1, 2, 3]
43
+ % ruby sample2.rb
44
+ sample1.rb:3:: ["foo"]
45
+ sample2.rb:6:foo ["bar"]
46
+ sample2.rb:7:foo [1, 2, 3]
43
47
  </pre>
44
48
 
45
- You see that the caller method and the filename of the method.
49
+ You can see that the caller of the method and the filename.
46
50
 
47
51
  h2. Repositry
48
52
 
@@ -54,4 +58,4 @@ Ruby's.
54
58
 
55
59
  h2. Contact
56
60
 
57
- Comments are welcome. Send an email to "Kouichirou Eto" <eto at rubyforge dot org>.
61
+ Comments are welcome. Send an email to "Kouichirou Eto" <eto _at_ rubyforge _dot_ org>.
@@ -1,5 +1,7 @@
1
1
  body {
2
- background-color: #eef;
2
+ background-color: #fff;
3
+ background-image: url(bg.png);
4
+ background-repeat: repeat-x;
3
5
  font-family: "Georgia", sans-serif;
4
6
  font-size: 16px;
5
7
  line-height: 1.6em;
metadata CHANGED
@@ -3,12 +3,12 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: cutep
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.3
7
- date: 2007-06-16 00:00:00 +09:00
6
+ version: 1.0.0
7
+ date: 2007-06-29 00:00:00 +09:00
8
8
  summary: "\"Cute p\" provide more human readable \"p\" function."
9
9
  require_paths:
10
10
  - lib
11
- email: eto@rubyforge.org.please.do.not.send.spam.example.com
11
+ email: eto _at_ rubyforge _dot_ org
12
12
  homepage: http://cutep.rubyforge.org
13
13
  rubyforge_project: cutep
14
14
  description: "\"Cute p\" provide more human readable \"p\" function."
@@ -35,8 +35,9 @@ files:
35
35
  - Manifest.txt
36
36
  - README.txt
37
37
  - Rakefile
38
+ - examples/sample.rb
38
39
  - lib/qp.rb
39
- - lib/qp/version.rb
40
+ - memo.txt
40
41
  - scripts/makemanifest.rb
41
42
  - scripts/txt2html
42
43
  - setup.rb
@@ -58,6 +59,7 @@ extra_rdoc_files:
58
59
  - License.txt
59
60
  - Manifest.txt
60
61
  - README.txt
62
+ - memo.txt
61
63
  - website/index.txt
62
64
  executables: []
63
65
 
data/lib/qp/version.rb DELETED
@@ -1,11 +0,0 @@
1
- # Copyright (C) 2003-2007 Kouichirou Eto, All rights reserved.
2
- # License: Ruby License
3
-
4
- module QP #:nodoc:
5
- module VERSION #:nodoc:
6
- MAJOR = 0
7
- MINOR = 0
8
- TINY = 3
9
- STRING = [MAJOR, MINOR, TINY].join('.')
10
- end
11
- end