gree-community 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/gree-community.gemspec +1 -1
- data/lib/gree-community.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
data/gree-community.gemspec
CHANGED
data/lib/gree-community.rb
CHANGED
@@ -53,7 +53,7 @@ module GREE
|
|
53
53
|
Comment.new(
|
54
54
|
id,
|
55
55
|
user_name: comment.at('.item strong a').text,
|
56
|
-
user_id: comment.at('.item strong a').attr(:href).match(%r{gree\.jp/(\d+)})
|
56
|
+
user_id: comment.at('.item strong a').attr(:href).match(%r{gree\.jp/(\d+)}) ? $1 : nil,
|
57
57
|
body_text: body.map{|elm| elm.name == 'br' ? "\n" : elm.text }.join('').gsub(//,''),
|
58
58
|
time: Time.strptime(comment.at('.shoulder .timestamp').text, '%m/%d %H:%M'),
|
59
59
|
)
|