cutep 0.0.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +18 -0
- data/History.txt +5 -0
- data/Manifest.txt +2 -1
- data/Rakefile +28 -7
- data/examples/sample.rb +8 -0
- data/lib/qp.rb +7 -2
- data/memo.txt +13 -0
- data/scripts/txt2html +1 -1
- data/website/index.html +26 -24
- data/website/index.txt +22 -18
- data/website/stylesheets/screen.css +3 -1
- metadata +6 -4
- data/lib/qp/version.rb +0 -11
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
data/Manifest.txt
CHANGED
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'
|
20
|
+
require File.join(File.dirname(__FILE__), 'lib', 'qp')
|
21
21
|
|
22
22
|
AUTHOR = 'Kouichirou Eto'
|
23
|
-
EMAIL = "eto
|
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
|
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
|
145
|
+
# add chmod.
|
146
146
|
task :docs do
|
147
147
|
sh %{ chmod -R go+rx doc }
|
148
148
|
end
|
149
149
|
|
150
|
-
#
|
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
|
159
|
+
# clear current task
|
160
160
|
t = Rake.application.lookup(:install_gem)
|
161
161
|
t.clear_actions if t
|
162
162
|
|
163
|
-
# redefine
|
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
|
data/examples/sample.rb
ADDED
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
|
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
|
-
|
8
|
+
Cute p, call it simply ‘qp’
|
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>
|
33
|
+
<h1>Cute p, call it simply ‘qp’</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
|
36
|
+
<a href="http://rubyforge.org/projects/cutep" class="numbers">1.0.0</a>
|
37
37
|
</div>
|
38
|
-
<
|
38
|
+
<h2>What</h2>
|
39
39
|
|
40
40
|
|
41
|
-
<
|
41
|
+
<p>“qp” (stands for “Cute p”) provide more useful “p” function.</p>
|
42
42
|
|
43
43
|
|
44
|
-
<p
|
45
|
-
|
46
|
-
|
47
|
-
<p>You can use a method ‘qp’ instead of ‘p’ and you’ll see the recent
|
48
|
-
caller of the method.</p>
|
44
|
+
<p>You can use method ‘qp’ instead of ‘p’,
|
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
|
-
|
65
|
-
|
62
|
+
<pre>
|
63
|
+
% ruby sample1.rb
|
64
|
+
sample1.rb:3:: ["foo"]
|
65
|
+
</pre>
|
66
66
|
|
67
|
-
<
|
67
|
+
<p>Simply, use ‘<tt>qp</tt>’ instead of ‘<tt>p</tt>’.</p>
|
68
68
|
|
69
69
|
|
70
70
|
<pre syntax="ruby">
|
71
|
+
# sample2.rb
|
71
72
|
require 'qp'
|
72
|
-
|
73
|
+
require 'sample1'
|
73
74
|
|
74
|
-
def
|
75
|
-
qp '
|
75
|
+
def foo
|
76
|
+
qp 'bar'
|
76
77
|
qp 1, 2, 3
|
77
78
|
end
|
78
|
-
|
79
|
+
|
80
|
+
foo
|
79
81
|
</pre>
|
80
82
|
|
81
83
|
<pre>
|
82
|
-
% ruby
|
83
|
-
|
84
|
-
|
85
|
-
|
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
|
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 “Kouichirou Eto” <eto at rubyforge dot org
|
108
|
+
<p>Comments are welcome. Send an email to “Kouichirou Eto” <eto <em>at</em> rubyforge <em>dot</em> org>.</p>
|
107
109
|
<p class="coda">
|
108
|
-
|
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.
|
2
|
-
|
3
|
-
h1. → 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
|
5
|
+
"qp" (stands for "Cute p") provide more useful "p" function.
|
8
6
|
|
9
|
-
You can use
|
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
|
-
|
22
|
+
<pre>
|
23
|
+
% ruby sample1.rb
|
24
|
+
sample1.rb:3:: ["foo"]
|
25
|
+
</pre>
|
24
26
|
|
25
|
-
|
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
|
-
|
32
|
+
require 'sample1'
|
30
33
|
|
31
|
-
def
|
32
|
-
qp '
|
34
|
+
def foo
|
35
|
+
qp 'bar'
|
33
36
|
qp 1, 2, 3
|
34
37
|
end
|
35
|
-
|
38
|
+
|
39
|
+
foo
|
36
40
|
</pre>
|
37
41
|
|
38
42
|
<pre>
|
39
|
-
% ruby
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
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
|
61
|
+
Comments are welcome. Send an email to "Kouichirou Eto" <eto _at_ rubyforge _dot_ org>.
|
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
|
7
|
-
date: 2007-06-
|
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
|
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
|
-
-
|
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