timelog4r 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/timelog4r/utils.rb +3 -0
- data/lib/timelog4r/version.rb +1 -1
- data/website/index.html +6 -12
- data/website/index.txt +6 -8
- metadata +4 -6
data/lib/timelog4r/utils.rb
CHANGED
@@ -80,7 +80,10 @@ Return::
|
|
80
80
|
request = Net::HTTP::Get.new(uri.request_uri)
|
81
81
|
when :post
|
82
82
|
request = Net::HTTP::Post.new(uri.request_uri)
|
83
|
+
request.content_length = 0
|
83
84
|
end
|
85
|
+
request['Accept-Charset'] = 'euc-jp, utf-8'
|
86
|
+
request['Accept-Language'] = 'ja, en'
|
84
87
|
request['User-Agent'] = @user_agent
|
85
88
|
request.basic_auth(@user_id, @password) if use_basic_auth
|
86
89
|
return request
|
data/lib/timelog4r/version.rb
CHANGED
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
|
+
timelog4r
|
9
9
|
</title>
|
10
10
|
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
11
|
<style>
|
@@ -30,22 +30,16 @@
|
|
30
30
|
<body>
|
31
31
|
<div id="main">
|
32
32
|
|
33
|
-
<h1>
|
33
|
+
<h1>timelog4r</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/timelog4r"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/timelog4r" class="numbers">0.
|
36
|
+
<a href="http://rubyforge.org/projects/timelog4r" class="numbers">0.0.1</a>
|
37
37
|
</div>
|
38
|
-
<
|
39
|
-
<
|
38
|
+
<h1>&#x2192; ‘timelog4r’</h1>
|
39
|
+
<h2>What</h2>
|
40
40
|
<h2>Installing</h2>
|
41
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
42
|
<h2>The basics</h2>
|
43
|
-
<p>require ‘timelog4r’<br />
|
44
|
-
t = Timelog4r.new<br />
|
45
|
-
t.user_id = ‘your user_id’<br />
|
46
|
-
t.password = ‘your password’<br />
|
47
|
-
t.user_agent = ‘your appli name’ #=> optional setting.<br />
|
48
|
-
t.update ‘Hello, Timelog.(from ruby)’ #=> send to TimelogAPI.</p>
|
49
43
|
<h2>Demonstration of usage</h2>
|
50
44
|
<p><span class="caps">TODO</span> – pick <span class="caps">SVN</span> or Git instructions</p>
|
51
45
|
<p>The trunk repository is <code>svn://rubyforge.org/var/svn/timelog4r/trunk</code> for anonymous access.</p>
|
@@ -67,7 +61,7 @@ rake install_gem</pre>
|
|
67
61
|
<h2>Contact</h2>
|
68
62
|
<p>Comments are welcome. Send an email to <a href="mailto:jamneco">saronpasu</a> at gmail dot com mail</p>
|
69
63
|
<p class="coda">
|
70
|
-
<a href="FIXME email">FIXME full name</a>,
|
64
|
+
<a href="FIXME email">FIXME full name</a>, 29th September 2008<br>
|
71
65
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
72
66
|
</p>
|
73
67
|
</div>
|
data/website/index.txt
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
h1.
|
1
|
+
h1. timelog4r
|
2
|
+
|
3
|
+
h1. → 'timelog4r'
|
4
|
+
|
2
5
|
|
3
6
|
h2. What
|
4
7
|
|
5
|
-
Timelog4r is TimelogAPI for ruby.
|
6
8
|
|
7
9
|
h2. Installing
|
8
10
|
|
@@ -10,19 +12,15 @@ h2. Installing
|
|
10
12
|
|
11
13
|
h2. The basics
|
12
14
|
|
13
|
-
require 'timelog4r'
|
14
|
-
t = Timelog4r.new
|
15
|
-
t.user_id = 'your user_id'
|
16
|
-
t.password = 'your password'
|
17
|
-
t.user_agent = 'your appli name' #=> optional setting.
|
18
|
-
t.update 'Hello, Timelog.(from ruby)' #=> send to TimelogAPI.
|
19
15
|
|
20
16
|
h2. Demonstration of usage
|
21
17
|
|
22
18
|
|
19
|
+
TODO - pick SVN or Git instructions
|
23
20
|
|
24
21
|
The trunk repository is <code>svn://rubyforge.org/var/svn/timelog4r/trunk</code> for anonymous access.
|
25
22
|
|
23
|
+
OOOORRRR
|
26
24
|
|
27
25
|
You can fetch the source from either:
|
28
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timelog4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saronpasu
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-31 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -68,8 +68,6 @@ files:
|
|
68
68
|
- website/template.html.erb
|
69
69
|
has_rdoc: true
|
70
70
|
homepage: http://timelog4r.rubyforge.org
|
71
|
-
licenses: []
|
72
|
-
|
73
71
|
post_install_message: ""
|
74
72
|
rdoc_options:
|
75
73
|
- --main
|
@@ -91,9 +89,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
89
|
requirements: []
|
92
90
|
|
93
91
|
rubyforge_project: timelog4r
|
94
|
-
rubygems_version: 1.3.
|
92
|
+
rubygems_version: 1.3.1
|
95
93
|
signing_key:
|
96
|
-
specification_version:
|
94
|
+
specification_version: 2
|
97
95
|
summary: TimelogAPI for ruby.
|
98
96
|
test_files: []
|
99
97
|
|