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 CHANGED
@@ -46,6 +46,10 @@ See source for details.
46
46
 
47
47
  ## Changes
48
48
 
49
+ ### 0.0.4
50
+
51
+ * Thread::Comment#user_id could be nil.
52
+
49
53
  ### 0.0.3
50
54
 
51
55
  * Update Gemfile.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "gree-community"
3
- gem.version = "0.0.3"
3
+ gem.version = "0.0.4"
4
4
  gem.authors = ["todesking"]
5
5
  gem.email = ["discommunicative@gmail.com"]
6
6
  gem.summary = %q{Access to GREE community.}
@@ -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+)})[1],
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
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gree-community
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: