ruboty-qiita_anti_spam 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9363ff370b768499cf452a39b9608bf7291a064e
4
- data.tar.gz: 9037418dfc5e59ad1ba3c83ec2a864c9abf9b817
3
+ metadata.gz: 75f85d54e8f19b0ed218580546f474d2bece87cf
4
+ data.tar.gz: eb126dfc939bac1c946f92f681751373e60b4455
5
5
  SHA512:
6
- metadata.gz: 8d42d9d9d37abf8436c919b4e3e03b6fd56ab647ec0d4a1a4e0ddf5006ec9d34e8fce08d3006700dee4ead0bc8b86bf6c1406b3035b2445bd2337e6a80cfffe5
7
- data.tar.gz: ac5f37059ef96757e7049bebff587267b3a94d7a99bbe770b5a18ec0fe0a65f51916cd22da2bbb1f59928761cdd717e066361f3952989edc014cb488acfcc3ad
6
+ metadata.gz: 15d4528b727219ecdb28f26b02d2a7fc76a947a626ac6626d6cdc2bfc8767c6439addb4d2518bdbf1ec8d8cefe0da80f11ee864949a95f9a4d8f6b548ccade4c
7
+ data.tar.gz: 5f41074b7bae07b1af0f310733188e58578c640b8cfbf009021298c79429425b72243783c7bc408811262b93492c42af2410303c41e71f85df6be3e64a501974
@@ -82,7 +82,7 @@ module Ruboty
82
82
  # @param user_id [String]
83
83
  # @return [Integer, nil]
84
84
  def get_permanent_user_id(user_id)
85
- qiita_client.get_user(user_id).body["permanent_id"].to_i || nil rescue nil
85
+ Integer(qiita_client.get_user(user_id).body["permanent_id"]) rescue nil
86
86
  end
87
87
 
88
88
  def akismet_client
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module QiitaAntiSpam
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-qiita_anti_spam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomoki Aonuma