timelog4r 0.1.2 → 0.2.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/.gemtest +0 -0
- data/History.txt +5 -0
- data/example/hello_world.rb +2 -1
- data/lib/timelog4r/version.rb +2 -2
- data/lib/timelog4r.rb +17 -11
- data/script/console +0 -0
- data/script/destroy +0 -0
- data/script/generate +0 -0
- data/script/txt2html +0 -0
- data/spec/timelog4r_spec.rb +6 -6
- data/website/index.html +72 -72
- metadata +32 -13
data/.gemtest
ADDED
File without changes
|
data/History.txt
CHANGED
data/example/hello_world.rb
CHANGED
data/lib/timelog4r/version.rb
CHANGED
data/lib/timelog4r.rb
CHANGED
@@ -419,8 +419,9 @@ RelatedMethods::
|
|
419
419
|
Utils#http_access
|
420
420
|
|
421
421
|
=end
|
422
|
-
def update(text, res_id = nil, tags = nil)
|
422
|
+
def update(text, group_id = nil, res_id = nil, tags = nil)
|
423
423
|
text = set_tags(text, tags) if tags
|
424
|
+
text += ' #'+group_id if group_id
|
424
425
|
params = {:text => text}
|
425
426
|
params[:remsgid] = res_id if res_id
|
426
427
|
address = BaseAddress + 'new.asp' + parse_options(params)
|
@@ -475,10 +476,11 @@ RelatedMethods::
|
|
475
476
|
update
|
476
477
|
|
477
478
|
=end
|
478
|
-
def set_todo(text, time, res_id = nil, tags = nil)
|
479
|
+
def set_todo(text, group_id, time, res_id = nil, tags = nil)
|
479
480
|
text = '/t ' +
|
480
481
|
time.strftime('%Y%m%d%H%M') +
|
481
|
-
' ' + text
|
482
|
+
' ' + text +
|
483
|
+
' #' + group_id
|
482
484
|
update(text, res_id, tags)
|
483
485
|
end
|
484
486
|
|
@@ -502,8 +504,9 @@ RelatedMethods::
|
|
502
504
|
update
|
503
505
|
|
504
506
|
=end
|
505
|
-
def update_bookmark(text, uri, res_id = nil, tags = nil)
|
506
|
-
text = '/b ' + uri.to_s + ' ' + text
|
507
|
+
def update_bookmark(text, group_id, uri, res_id = nil, tags = nil)
|
508
|
+
text = '/b ' + uri.to_s + ' ' + text +
|
509
|
+
' #' + group_id
|
507
510
|
update(text, res_id, tags)
|
508
511
|
end
|
509
512
|
|
@@ -526,8 +529,9 @@ RelatedMethods::
|
|
526
529
|
update
|
527
530
|
|
528
531
|
=end
|
529
|
-
def update_good(text, res_id = nil, tags = nil)
|
530
|
-
text = '/g ' + text
|
532
|
+
def update_good(text, group_id, res_id = nil, tags = nil)
|
533
|
+
text = '/g ' + text +
|
534
|
+
" #" + group_id
|
531
535
|
update(text, res_id, tags)
|
532
536
|
end
|
533
537
|
|
@@ -550,8 +554,9 @@ RelatedMethods::
|
|
550
554
|
update
|
551
555
|
|
552
556
|
=end
|
553
|
-
def update_news(text, res_id = nil, tags = nil)
|
554
|
-
text = '/n ' + text
|
557
|
+
def update_news(text, group_id, res_id = nil, tags = nil)
|
558
|
+
text = '/n ' + text +
|
559
|
+
" #" + group_id
|
555
560
|
update(text, res_id, tags)
|
556
561
|
end
|
557
562
|
|
@@ -574,8 +579,9 @@ RelatedMethods::
|
|
574
579
|
update
|
575
580
|
|
576
581
|
=end
|
577
|
-
def update_vote(text, res_id = nil, tags = nil)
|
578
|
-
text = '/j ' + text
|
582
|
+
def update_vote(text, group_id, res_id = nil, tags = nil)
|
583
|
+
text = '/j ' + text +
|
584
|
+
" #" + group_id
|
579
585
|
update(text, res_id, tags)
|
580
586
|
end
|
581
587
|
end
|
data/script/console
CHANGED
File without changes
|
data/script/destroy
CHANGED
File without changes
|
data/script/generate
CHANGED
File without changes
|
data/script/txt2html
CHANGED
File without changes
|
data/spec/timelog4r_spec.rb
CHANGED
@@ -333,7 +333,7 @@ describe Timelog4r, ' when first created' do
|
|
333
333
|
end
|
334
334
|
|
335
335
|
it 'success should be true' do
|
336
|
-
@accessor.update('hoge').should be_true
|
336
|
+
@accessor.update('hoge', 'fuga').should be_true
|
337
337
|
end
|
338
338
|
|
339
339
|
after do
|
@@ -367,7 +367,7 @@ describe Timelog4r, ' when first created' do
|
|
367
367
|
end
|
368
368
|
|
369
369
|
it 'success should be true' do
|
370
|
-
@accessor.set_todo('hoge', Time.new).should be_true
|
370
|
+
@accessor.set_todo('hoge','fuga', Time.new).should be_true
|
371
371
|
end
|
372
372
|
|
373
373
|
after do
|
@@ -384,7 +384,7 @@ describe Timelog4r, ' when first created' do
|
|
384
384
|
end
|
385
385
|
|
386
386
|
it 'success should be true' do
|
387
|
-
@accessor.update_bookmark('hoge', URI.parse('http://a.com')).should be_true
|
387
|
+
@accessor.update_bookmark('hoge', 'fuga', URI.parse('http://a.com')).should be_true
|
388
388
|
end
|
389
389
|
|
390
390
|
after do
|
@@ -401,7 +401,7 @@ describe Timelog4r, ' when first created' do
|
|
401
401
|
end
|
402
402
|
|
403
403
|
it 'success should be true' do
|
404
|
-
@accessor.update_good('hoge', 'fuga'
|
404
|
+
@accessor.update_good('hoge', 'fuga').should be_true
|
405
405
|
end
|
406
406
|
|
407
407
|
after do
|
@@ -418,7 +418,7 @@ describe Timelog4r, ' when first created' do
|
|
418
418
|
end
|
419
419
|
|
420
420
|
it 'success should be true' do
|
421
|
-
@accessor.update_news('hoge').should be_true
|
421
|
+
@accessor.update_news('hoge', 'fuga').should be_true
|
422
422
|
end
|
423
423
|
|
424
424
|
after do
|
@@ -435,7 +435,7 @@ describe Timelog4r, ' when first created' do
|
|
435
435
|
end
|
436
436
|
|
437
437
|
it 'success should be true' do
|
438
|
-
@accessor.update_vote('hoge').should be_true
|
438
|
+
@accessor.update_vote('hoge', 'fuga').should be_true
|
439
439
|
end
|
440
440
|
|
441
441
|
after do
|
data/website/index.html
CHANGED
@@ -1,72 +1,72 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<title>
|
8
|
-
timelog4r
|
9
|
-
</title>
|
10
|
-
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
-
<style>
|
12
|
-
|
13
|
-
</style>
|
14
|
-
<script type="text/javascript">
|
15
|
-
window.onload = function() {
|
16
|
-
settings = {
|
17
|
-
tl: { radius: 10 },
|
18
|
-
tr: { radius: 10 },
|
19
|
-
bl: { radius: 10 },
|
20
|
-
br: { radius: 10 },
|
21
|
-
antiAlias: true,
|
22
|
-
autoPad: true,
|
23
|
-
validTags: ["div"]
|
24
|
-
}
|
25
|
-
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
-
versionBox.applyCornersToAll();
|
27
|
-
}
|
28
|
-
</script>
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="main">
|
32
|
-
|
33
|
-
<h1>timelog4r</h1>
|
34
|
-
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/timelog4r"; return false'>
|
35
|
-
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/timelog4r" class="numbers">0.0
|
37
|
-
</div>
|
38
|
-
<h1>&#x2192; ‘timelog4r’</h1>
|
39
|
-
<h2>What</h2>
|
40
|
-
<h2>Installing</h2>
|
41
|
-
<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">timelog4r</span></pre></p>
|
42
|
-
<h2>The basics</h2>
|
43
|
-
<h2>Demonstration of usage</h2>
|
44
|
-
<p><span class="caps">TODO</span> – pick <span class="caps">SVN</span> or Git instructions</p>
|
45
|
-
<p>The trunk repository is <code>svn://rubyforge.org/var/svn/timelog4r/trunk</code> for anonymous access.</p>
|
46
|
-
<p><span class="caps">OOOORRRR</span></p>
|
47
|
-
<p>You can fetch the source from either:</p>
|
48
|
-
<ul>
|
49
|
-
<li>rubyforge: <span class="caps">MISSING</span> IN <span class="caps">ACTION</span></li>
|
50
|
-
</ul>
|
51
|
-
<p><span class="caps">TODO</span> – You can not created a RubyForge project, OR have not run <code>rubyforge config</code><br />
|
52
|
-
yet to refresh your local rubyforge data with this projects’ id information.</p>
|
53
|
-
<p>When you do this, this message will magically disappear!</p>
|
54
|
-
<p>Or you can hack website/index.txt and make it all go away!!</p>
|
55
|
-
<h3>Build and test instructions</h3>
|
56
|
-
<pre>cd timelog4r
|
57
|
-
rake spec
|
58
|
-
rake install_gem</pre>
|
59
|
-
<h2>License</h2>
|
60
|
-
<p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
|
61
|
-
<h2>Contact</h2>
|
62
|
-
<p>Comments are welcome. Send an email to <a href="mailto:jamneco">saronpasu</a> at gmail dot com mail</p>
|
63
|
-
<p class="coda">
|
64
|
-
<a href="FIXME email">FIXME full name</a>,
|
65
|
-
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
66
|
-
</p>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<!-- insert site tracking codes here, like Google Urchin -->
|
70
|
-
|
71
|
-
</body>
|
72
|
-
</html>
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<title>
|
8
|
+
timelog4r
|
9
|
+
</title>
|
10
|
+
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
+
<style>
|
12
|
+
|
13
|
+
</style>
|
14
|
+
<script type="text/javascript">
|
15
|
+
window.onload = function() {
|
16
|
+
settings = {
|
17
|
+
tl: { radius: 10 },
|
18
|
+
tr: { radius: 10 },
|
19
|
+
bl: { radius: 10 },
|
20
|
+
br: { radius: 10 },
|
21
|
+
antiAlias: true,
|
22
|
+
autoPad: true,
|
23
|
+
validTags: ["div"]
|
24
|
+
}
|
25
|
+
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
+
versionBox.applyCornersToAll();
|
27
|
+
}
|
28
|
+
</script>
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="main">
|
32
|
+
|
33
|
+
<h1>timelog4r</h1>
|
34
|
+
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/timelog4r"; return false'>
|
35
|
+
<p>Get Version</p>
|
36
|
+
<a href="http://rubyforge.org/projects/timelog4r" class="numbers">0.2.0</a>
|
37
|
+
</div>
|
38
|
+
<h1>&#x2192; ‘timelog4r’</h1>
|
39
|
+
<h2>What</h2>
|
40
|
+
<h2>Installing</h2>
|
41
|
+
<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">timelog4r</span></pre></p>
|
42
|
+
<h2>The basics</h2>
|
43
|
+
<h2>Demonstration of usage</h2>
|
44
|
+
<p><span class="caps">TODO</span> – pick <span class="caps">SVN</span> or Git instructions</p>
|
45
|
+
<p>The trunk repository is <code>svn://rubyforge.org/var/svn/timelog4r/trunk</code> for anonymous access.</p>
|
46
|
+
<p><span class="caps">OOOORRRR</span></p>
|
47
|
+
<p>You can fetch the source from either:</p>
|
48
|
+
<ul>
|
49
|
+
<li>rubyforge: <span class="caps">MISSING</span> IN <span class="caps">ACTION</span></li>
|
50
|
+
</ul>
|
51
|
+
<p><span class="caps">TODO</span> – You can not created a RubyForge project, OR have not run <code>rubyforge config</code><br />
|
52
|
+
yet to refresh your local rubyforge data with this projects’ id information.</p>
|
53
|
+
<p>When you do this, this message will magically disappear!</p>
|
54
|
+
<p>Or you can hack website/index.txt and make it all go away!!</p>
|
55
|
+
<h3>Build and test instructions</h3>
|
56
|
+
<pre>cd timelog4r
|
57
|
+
rake spec
|
58
|
+
rake install_gem</pre>
|
59
|
+
<h2>License</h2>
|
60
|
+
<p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
|
61
|
+
<h2>Contact</h2>
|
62
|
+
<p>Comments are welcome. Send an email to <a href="mailto:jamneco">saronpasu</a> at gmail dot com mail</p>
|
63
|
+
<p class="coda">
|
64
|
+
<a href="FIXME email">FIXME full name</a>, 20th July 2011<br>
|
65
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
66
|
+
</p>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<!-- insert site tracking codes here, like Google Urchin -->
|
70
|
+
|
71
|
+
</body>
|
72
|
+
</html>
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timelog4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- saronpasu
|
@@ -9,19 +15,24 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
18
|
+
date: 2011-07-27 00:00:00 Z
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: hoe
|
17
|
-
|
18
|
-
|
19
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
20
25
|
requirements:
|
21
26
|
- - ">="
|
22
27
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
28
|
+
hash: 35
|
29
|
+
segments:
|
30
|
+
- 2
|
31
|
+
- 9
|
32
|
+
- 4
|
33
|
+
version: 2.9.4
|
34
|
+
type: :development
|
35
|
+
version_requirements: *id001
|
25
36
|
description: TimelogAPI for ruby.
|
26
37
|
email:
|
27
38
|
- jamneco@gmail.com
|
@@ -66,8 +77,10 @@ files:
|
|
66
77
|
- website/javascripts/rounded_corners_lite.inc.js
|
67
78
|
- website/stylesheets/screen.css
|
68
79
|
- website/template.html.erb
|
69
|
-
|
80
|
+
- .gemtest
|
70
81
|
homepage: http://timelog4r.rubyforge.org
|
82
|
+
licenses: []
|
83
|
+
|
71
84
|
post_install_message: ""
|
72
85
|
rdoc_options:
|
73
86
|
- --main
|
@@ -75,23 +88,29 @@ rdoc_options:
|
|
75
88
|
require_paths:
|
76
89
|
- lib
|
77
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
78
92
|
requirements:
|
79
93
|
- - ">="
|
80
94
|
- !ruby/object:Gem::Version
|
95
|
+
hash: 3
|
96
|
+
segments:
|
97
|
+
- 0
|
81
98
|
version: "0"
|
82
|
-
version:
|
83
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
84
101
|
requirements:
|
85
102
|
- - ">="
|
86
103
|
- !ruby/object:Gem::Version
|
104
|
+
hash: 3
|
105
|
+
segments:
|
106
|
+
- 0
|
87
107
|
version: "0"
|
88
|
-
version:
|
89
108
|
requirements: []
|
90
109
|
|
91
110
|
rubyforge_project: timelog4r
|
92
|
-
rubygems_version: 1.
|
111
|
+
rubygems_version: 1.8.5
|
93
112
|
signing_key:
|
94
|
-
specification_version:
|
113
|
+
specification_version: 3
|
95
114
|
summary: TimelogAPI for ruby.
|
96
115
|
test_files: []
|
97
116
|
|