hatenaapigraph 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/lib/hatena/api/graph.rb +5 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/hatena/api/graph.rb
CHANGED
@@ -41,7 +41,11 @@ module Hatena
|
|
41
41
|
:value => value,
|
42
42
|
}
|
43
43
|
end
|
44
|
-
|
44
|
+
|
45
|
+
if params[:value] != nil
|
46
|
+
params[:value] = params[:value].to_f
|
47
|
+
end
|
48
|
+
|
45
49
|
params[:date] = params[:date].strftime(DATE_FORMAT) if params[:date]
|
46
50
|
|
47
51
|
res = http_post GRAPH_API_DATA_URI, params
|