cutep 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +30 -0
- data/History.txt +11 -0
- data/Rakefile +28 -14
- data/lib/qp.rb +1 -1
- data/lib/qp/version.rb +1 -1
- data/website/index.html +36 -12
- data/website/index.txt +31 -12
- data/website/stylesheets/screen.css +4 -4
- data/website/template.rhtml +1 -1
- metadata +3 -3
data/ChangeLog
CHANGED
@@ -1,3 +1,28 @@
|
|
1
|
+
2007-06-16 Kouichirou Eto <2007 eto.com>
|
2
|
+
|
3
|
+
* Version 0.0.3 released.
|
4
|
+
* Just update documents.
|
5
|
+
|
6
|
+
2007-06-16 Kouichirou Eto <2007 eto.com>
|
7
|
+
|
8
|
+
* Rakefile: Redefine install_gem task.
|
9
|
+
|
10
|
+
2007-06-15 Kouichirou Eto <2007 eto.com>
|
11
|
+
|
12
|
+
* example/sample.rb: New file.
|
13
|
+
|
14
|
+
* Rakefile: Add chmod functions.
|
15
|
+
|
16
|
+
* website/index.txt: Update document.
|
17
|
+
|
18
|
+
* website/template.rhtml: Delete "Dr Nic".
|
19
|
+
* website/stylesheets/screen.css: Change background color.
|
20
|
+
|
21
|
+
2007-06-14 Kouichirou Eto <2007 eto.com>
|
22
|
+
|
23
|
+
* Version 0.0.2 released.
|
24
|
+
* Just update specs.
|
25
|
+
|
1
26
|
2007-06-14 Kouichirou Eto <2007 eto.com>
|
2
27
|
|
3
28
|
* lib/qp/version.rb: Version up to 0.0.2
|
@@ -12,6 +37,11 @@
|
|
12
37
|
* Rakefile: Add a CLEAN rule.
|
13
38
|
* Rakefile: Add a path "lib".
|
14
39
|
|
40
|
+
2007-06-13 Kouichirou Eto <2007 eto.com>
|
41
|
+
|
42
|
+
* Version 0.0.1 released.
|
43
|
+
* Initial release
|
44
|
+
|
15
45
|
2007-06-13 Kouichirou Eto <2007 eto.com>
|
16
46
|
|
17
47
|
* lib/qp.rb: Added.
|
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ include FileUtils
|
|
20
20
|
require File.join(File.dirname(__FILE__), 'lib', 'qp', 'version')
|
21
21
|
|
22
22
|
AUTHOR = 'Kouichirou Eto'
|
23
|
-
EMAIL = "
|
23
|
+
EMAIL = "eto@rubyforge.org.please.do.not.send.spam.example.com"
|
24
24
|
DESCRIPTION = '"Cute p" provide more human readable "p" function.'
|
25
25
|
GEM_NAME = 'cutep'
|
26
26
|
|
@@ -96,6 +96,11 @@ task :website_generate do
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
+
# add chmod function.
|
100
|
+
task :website_generate do
|
101
|
+
sh %{ chmod -R go+rx website }
|
102
|
+
end
|
103
|
+
|
99
104
|
desc 'Upload website files to rubyforge'
|
100
105
|
task :website_upload do
|
101
106
|
host = "#{rubyforge_username}@rubyforge.org"
|
@@ -137,23 +142,32 @@ Spec::Rake::SpecTask.new do |t|
|
|
137
142
|
t.libs << "lib"
|
138
143
|
end
|
139
144
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
145
|
+
# add chmod function.
|
146
|
+
task :docs do
|
147
|
+
sh %{ chmod -R go+rx doc }
|
148
|
+
end
|
149
|
+
|
150
|
+
# override clear current task
|
151
|
+
module Rake
|
152
|
+
class Task
|
153
|
+
def clear_actions
|
154
|
+
@actions.clear
|
155
|
+
end
|
149
156
|
end
|
150
157
|
end
|
151
158
|
|
152
|
-
|
153
|
-
|
154
|
-
|
159
|
+
# clear current install_gem task
|
160
|
+
t = Rake.application.lookup(:install_gem)
|
161
|
+
t.clear_actions if t
|
162
|
+
|
163
|
+
# redefine install_gem task
|
164
|
+
task :install_gem => [:clean, :package] do
|
165
|
+
if /mswin32/ =~ RUBY_PLATFORM || /cygwin/ =~ RUBY_PLATFORM
|
166
|
+
sh "gem.cmd install pkg/*.gem" # for Cygwin
|
167
|
+
else
|
168
|
+
sh "sudo gem install pkg/*.gem"
|
169
|
+
end
|
155
170
|
end
|
156
171
|
|
157
172
|
desc "Default task is to run specs"
|
158
173
|
task :default => :spec
|
159
|
-
|
data/lib/qp.rb
CHANGED
@@ -47,7 +47,7 @@ if defined?($__test_qp__) && $__test_qp__
|
|
47
47
|
require 'test/unit'
|
48
48
|
require 'test/unit/ui/console/testrunner'
|
49
49
|
|
50
|
-
class TestQP < Test::Unit::TestCase
|
50
|
+
class TestQP < Test::Unit::TestCase #:nodoc:
|
51
51
|
def test_all
|
52
52
|
#assert_match(/testcase.rb:\d\d:_*send_*/, QP.caller_msg(caller(1)))
|
53
53
|
assert_equal("[1, \"a\"]", QP.ar_inspect([1, 'a']))
|
data/lib/qp/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -33,38 +33,62 @@
|
|
33
33
|
<h1>cutep</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">0.0.3</a>
|
37
37
|
</div>
|
38
|
-
<h1>→ ‘
|
38
|
+
<h1>→ or call it simply ‘qp’</h1>
|
39
39
|
|
40
40
|
|
41
41
|
<h2>What</h2>
|
42
42
|
|
43
43
|
|
44
|
+
<p>“Cute p” provide more human readable “p” function.</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>
|
49
|
+
|
50
|
+
|
44
51
|
<h2>Installing</h2>
|
45
52
|
|
46
53
|
|
47
54
|
<pre syntax="ruby">sudo gem install cutep</pre>
|
48
55
|
|
49
|
-
<h2>The
|
56
|
+
<h2>The Basic</h2>
|
50
57
|
|
51
58
|
|
52
|
-
|
59
|
+
<pre syntax="ruby">
|
60
|
+
require 'qp'
|
61
|
+
qp 'foo'
|
62
|
+
</pre>
|
53
63
|
|
64
|
+
<p>Simply, use ‘<tt>qp</tt>’ instead of ‘<tt>p</tt>’.</p>
|
54
65
|
|
55
|
-
<h2>Forum</h2>
|
56
66
|
|
67
|
+
<h2>Demonstration of usage</h2>
|
57
68
|
|
58
|
-
<p><a href="http://groups.google.com/group/cutep">http://groups.google.com/group/cutep</a></p>
|
59
69
|
|
70
|
+
<pre syntax="ruby">
|
71
|
+
require 'qp'
|
72
|
+
qp 'foo'
|
60
73
|
|
61
|
-
|
74
|
+
def a_method
|
75
|
+
qp 'in a_method'
|
76
|
+
qp 1, 2, 3
|
77
|
+
end
|
78
|
+
a_method
|
79
|
+
</pre>
|
62
80
|
|
81
|
+
<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]
|
86
|
+
</pre>
|
63
87
|
|
64
|
-
<
|
88
|
+
<p>You see that the caller method and the filename of the method.</p>
|
65
89
|
|
66
90
|
|
67
|
-
<
|
91
|
+
<h2>Repositry</h2>
|
68
92
|
|
69
93
|
|
70
94
|
<p>The trunk repository is <code>svn://rubyforge.org/var/svn/cutep/trunk</code> for anonymous access.</p>
|
@@ -73,15 +97,15 @@
|
|
73
97
|
<h2>License</h2>
|
74
98
|
|
75
99
|
|
76
|
-
<p>
|
100
|
+
<p>Ruby’s.</p>
|
77
101
|
|
78
102
|
|
79
103
|
<h2>Contact</h2>
|
80
104
|
|
81
105
|
|
82
|
-
<p>Comments are welcome. Send an email to <
|
106
|
+
<p>Comments are welcome. Send an email to “Kouichirou Eto” <eto at rubyforge dot org>.</p>
|
83
107
|
<p class="coda">
|
84
|
-
|
108
|
+
15th June 2007<br>
|
85
109
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
86
110
|
</p>
|
87
111
|
</div>
|
data/website/index.txt
CHANGED
@@ -1,38 +1,57 @@
|
|
1
1
|
h1. cutep
|
2
2
|
|
3
|
-
h1. → '
|
4
|
-
|
3
|
+
h1. → or call it simply 'qp'
|
5
4
|
|
6
5
|
h2. What
|
7
6
|
|
7
|
+
"Cute p" provide more human readable "p" function.
|
8
|
+
|
9
|
+
You can use a method 'qp' instead of 'p' and you'll see the recent
|
10
|
+
caller of the method.
|
8
11
|
|
9
12
|
h2. Installing
|
10
13
|
|
11
14
|
<pre syntax="ruby">sudo gem install cutep</pre>
|
12
15
|
|
13
|
-
h2. The
|
16
|
+
h2. The Basic
|
14
17
|
|
18
|
+
<pre syntax="ruby">
|
19
|
+
require 'qp'
|
20
|
+
qp 'foo'
|
21
|
+
</pre>
|
15
22
|
|
16
|
-
|
17
|
-
|
23
|
+
Simply, use '<tt>qp</tt>' instead of '<tt>p</tt>'.
|
18
24
|
|
25
|
+
h2. Demonstration of usage
|
19
26
|
|
20
|
-
|
27
|
+
<pre syntax="ruby">
|
28
|
+
require 'qp'
|
29
|
+
qp 'foo'
|
21
30
|
|
22
|
-
|
31
|
+
def a_method
|
32
|
+
qp 'in a_method'
|
33
|
+
qp 1, 2, 3
|
34
|
+
end
|
35
|
+
a_method
|
36
|
+
</pre>
|
23
37
|
|
24
|
-
|
38
|
+
<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
|
+
</pre>
|
25
44
|
|
26
|
-
|
45
|
+
You see that the caller method and the filename of the method.
|
27
46
|
|
28
|
-
|
47
|
+
h2. Repositry
|
29
48
|
|
30
49
|
The trunk repository is <code>svn://rubyforge.org/var/svn/cutep/trunk</code> for anonymous access.
|
31
50
|
|
32
51
|
h2. License
|
33
52
|
|
34
|
-
|
53
|
+
Ruby's.
|
35
54
|
|
36
55
|
h2. Contact
|
37
56
|
|
38
|
-
Comments are welcome. Send an email to "
|
57
|
+
Comments are welcome. Send an email to "Kouichirou Eto" <eto at rubyforge dot org>.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
body {
|
2
|
-
background-color: #
|
2
|
+
background-color: #eef;
|
3
3
|
font-family: "Georgia", sans-serif;
|
4
4
|
font-size: 16px;
|
5
5
|
line-height: 1.6em;
|
@@ -101,7 +101,7 @@ pre, code {
|
|
101
101
|
text-align: right;
|
102
102
|
font-family: sans-serif;
|
103
103
|
font-weight: normal;
|
104
|
-
background-color: #
|
104
|
+
background-color: #ddf;
|
105
105
|
color: #141331;
|
106
106
|
padding: 15px 20px 10px 20px;
|
107
107
|
margin: 0 auto;
|
@@ -120,7 +120,7 @@ pre, code {
|
|
120
120
|
#version p {
|
121
121
|
text-decoration: none;
|
122
122
|
color: #141331;
|
123
|
-
background-color: #
|
123
|
+
background-color: #ddf;
|
124
124
|
margin: 0;
|
125
125
|
padding: 0;
|
126
126
|
}
|
@@ -128,7 +128,7 @@ pre, code {
|
|
128
128
|
#version a {
|
129
129
|
text-decoration: none;
|
130
130
|
color: #141331;
|
131
|
-
background-color: #
|
131
|
+
background-color: #ddf;
|
132
132
|
}
|
133
133
|
|
134
134
|
.clickable {
|
data/website/template.rhtml
CHANGED
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: 0.0.3
|
7
|
+
date: 2007-06-16 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:
|
11
|
+
email: eto@rubyforge.org.please.do.not.send.spam.example.com
|
12
12
|
homepage: http://cutep.rubyforge.org
|
13
13
|
rubyforge_project: cutep
|
14
14
|
description: "\"Cute p\" provide more human readable \"p\" function."
|