timelog4r 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -1
- data/example/create_refollow_list.rb +1 -0
- data/example/hello_world.rb +1 -0
- data/lib/timelog4r/utils.rb +4 -0
- data/lib/timelog4r/version.rb +2 -2
- data/lib/timelog4r/xml_parser.rb +1 -0
- data/lib/timelog4r.rb +1 -0
- data/spec/timelog4r_spec.rb +1 -0
- metadata +3 -3
data/History.txt
CHANGED
data/example/hello_world.rb
CHANGED
data/lib/timelog4r/utils.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!ruby
|
2
|
+
# -*- encoding: UTF-8 -*-
|
2
3
|
require 'uri'
|
3
4
|
require 'net/http'
|
4
5
|
require 'rexml/document'
|
@@ -103,6 +104,9 @@ Return::
|
|
103
104
|
def http_access(uri, request)
|
104
105
|
Net::HTTP.start(uri.host, uri.port){|http|
|
105
106
|
response = http.request(request)
|
107
|
+
if RUBY_VERSION.match(/^1\.9\./)
|
108
|
+
response.body.force_encoding('UTF-8')
|
109
|
+
end
|
106
110
|
if response.code == '200'
|
107
111
|
return REXML::Document.new(response.body)
|
108
112
|
else
|
data/lib/timelog4r/version.rb
CHANGED
data/lib/timelog4r/xml_parser.rb
CHANGED
data/lib/timelog4r.rb
CHANGED
data/spec/timelog4r_spec.rb
CHANGED
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.0
|
4
|
+
version: 0.1.0
|
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:
|
12
|
+
date: 2009-02-17 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.
|
23
|
+
version: 1.8.0
|
24
24
|
version:
|
25
25
|
description: TimelogAPI for ruby.
|
26
26
|
email:
|