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 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
@@ -1,4 +1,15 @@
1
+ == 0.0.3 2007-06-16
2
+
3
+ * 0 major enhancement:
4
+ * Just update documents.
5
+
6
+ == 0.0.2 2007-06-14
7
+
8
+ * 0 major enhancement:
9
+ * Just update specs.
10
+
1
11
  == 0.0.1 2007-06-13
2
12
 
3
13
  * 1 major enhancement:
4
14
  * Initial release
15
+
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 = "2007@eto.com.please.do.not.send.spam.example.com"
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
- Rake::RDocTask.new do |rdoc|
141
- rdoc.rdoc_dir = 'html'
142
- rdoc.options += RDOC_OPTS
143
- rdoc.template = "#{ENV['template']}.rb" if ENV['template']
144
- if ENV['DOC_FILES']
145
- rdoc.rdoc_files.include(ENV['DOC_FILES'].split(/,\s*/))
146
- else
147
- rdoc.rdoc_files.include('README.txt', 'ChangeLog')
148
- rdoc.rdoc_files.include('lib/**/*.rb')
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
- desc "Publish to RubyForge"
153
- task :publish_rubyforge => [:rdoc, :package] do
154
- Rake::RubyForgePublisher.new(RUBYFORGE_PROJECT, RUBYFORGE_ACCOUNT).upload
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
@@ -5,7 +5,7 @@ module QP #:nodoc:
5
5
  module VERSION #:nodoc:
6
6
  MAJOR = 0
7
7
  MINOR = 0
8
- TINY = 2
8
+ TINY = 3
9
9
  STRING = [MAJOR, MINOR, TINY].join('.')
10
10
  end
11
11
  end
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.2</a>
36
+ <a href="http://rubyforge.org/projects/cutep" class="numbers">0.0.3</a>
37
37
  </div>
38
- <h1>&#x2192; &#8216;cutep&#8217;</h1>
38
+ <h1>&#x2192; or call it simply &#8216;qp&#8217;</h1>
39
39
 
40
40
 
41
41
  <h2>What</h2>
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>
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 basics</h2>
56
+ <h2>The Basic</h2>
50
57
 
51
58
 
52
- <h2>Demonstration of usage</h2>
59
+ <pre syntax="ruby">
60
+ require 'qp'
61
+ qp 'foo'
62
+ </pre>
53
63
 
64
+ <p>Simply, use &#8216;<tt>qp</tt>&#8217; instead of &#8216;<tt>p</tt>&#8217;.</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
- <p><span class="caps">TODO</span> &#8211; create Google Group &#8211; cutep</p>
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
- <h2>How to submit patches</h2>
88
+ <p>You see that the caller method and the filename of the method.</p>
65
89
 
66
90
 
67
- <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
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>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
100
+ <p>Ruby&#8217;s.</p>
77
101
 
78
102
 
79
103
  <h2>Contact</h2>
80
104
 
81
105
 
82
- <p>Comments are welcome. Send an email to <a href="mailto:FIXME"><span class="caps">FIXME</span> full name</a> email.</p>
106
+ <p>Comments are welcome. Send an email to &#8220;Kouichirou Eto&#8221; <eto at rubyforge dot org>.</p>
83
107
  <p class="coda">
84
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 13th June 2007<br>
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. &#x2192; 'cutep'
4
-
3
+ h1. &#x2192; 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 basics
16
+ h2. The Basic
14
17
 
18
+ <pre syntax="ruby">
19
+ require 'qp'
20
+ qp 'foo'
21
+ </pre>
15
22
 
16
- h2. Demonstration of usage
17
-
23
+ Simply, use '<tt>qp</tt>' instead of '<tt>p</tt>'.
18
24
 
25
+ h2. Demonstration of usage
19
26
 
20
- h2. Forum
27
+ <pre syntax="ruby">
28
+ require 'qp'
29
+ qp 'foo'
21
30
 
22
- "http://groups.google.com/group/cutep":http://groups.google.com/group/cutep
31
+ def a_method
32
+ qp 'in a_method'
33
+ qp 1, 2, 3
34
+ end
35
+ a_method
36
+ </pre>
23
37
 
24
- TODO - create Google Group - cutep
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
- h2. How to submit patches
45
+ You see that the caller method and the filename of the method.
27
46
 
28
- Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
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
- This code is free to use under the terms of the MIT license.
53
+ Ruby's.
35
54
 
36
55
  h2. Contact
37
56
 
38
- Comments are welcome. Send an email to "FIXME full name":mailto:FIXME email.
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: #E1D1F1;
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: #B3ABFF;
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: #B3ABFF;
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: #B3ABFF;
131
+ background-color: #ddf;
132
132
  }
133
133
 
134
134
  .clickable {
@@ -37,7 +37,7 @@
37
37
  </div>
38
38
  <%= body %>
39
39
  <p class="coda">
40
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, <%= modified.pretty %><br>
40
+ <%= modified.pretty %><br>
41
41
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
42
42
  </p>
43
43
  </div>
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.2
7
- date: 2007-06-15 00:00:00 +09:00
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: 2007@eto.com.please.do.not.send.spam.example.com
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."