google_perspective 0.1.2 → 0.1.3

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: 40d46d86e7eaa4cbc31afa136edbe2e7f8abfb92
4
- data.tar.gz: cc3ca72602be545429e43ed9bdf7a10249683542
3
+ metadata.gz: fc95fc60e4369cd9ab8d5d810c9ee61be8612e73
4
+ data.tar.gz: b2bf539a2ded94d5de1e61c4fcb2b2ae4c686b7a
5
5
  SHA512:
6
- metadata.gz: 7db19b5c31d393a68c3e39d1100422e1ec333a0910338fbd14a9bcd00d7c72eb4c6649363db66fb237bc43a014310ebc5892c46dbac017390649f22b30a4965f
7
- data.tar.gz: 873ac41c158c3dab004246936b3184f231a4c72bb7a1fd1a968a80bf9ce73ae2e25e41f9f0a8fae23a8d9f8ea99b4a919038745c5dc865639420db67eaa59ace
6
+ metadata.gz: ae43aee0059c62ea2d28d978fc4a7d2437f801162ef1a83697cd5afbd6675f53b1c3d7d1a4e6ed27a51fb5257a43cdb219f3208aeb0d1fc1c1dbcde0fff04874
7
+ data.tar.gz: 30447d1ecae9233765ecba4e90f8771f7980aa8428c088903a98fb1cec20f012df4345f3ca914fa827db38c623fec9614505de00e60efc9882d00fee23b1b56a
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = 'Use google perspective AI.'
12
12
  spec.description = 'Use google perspective AI.'
13
- spec.homepage = 'https://github.com/SquareOffs/google_perspective'
13
+ spec.homepage = 'https://github.com/rderoldan1/google_perspective'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  # spec.metadata['allowed_push_host'] = "Set to 'http://mygemserver.com'"
20
20
 
21
21
  spec.metadata['homepage_uri'] = spec.homepage
22
- spec.metadata['source_code_uri'] = 'https://github.com/SquareOffs/google_perspective'
23
- spec.metadata['changelog_uri'] = 'https://github.com/SquareOffs/google_perspective'
22
+ spec.metadata['source_code_uri'] = 'https://github.com/rderoldan1/google_perspective'
23
+ spec.metadata['changelog_uri'] = 'https://github.com/rderoldan1/google_perspective'
24
24
  else
25
25
  raise 'RubyGems 2.0 or newer is required to protect against ' \
26
26
  'public gem pushes.'
@@ -4,8 +4,6 @@ module GooglePerspective
4
4
  class CommentAnalyzer
5
5
  attr_accessor :text, :client, :score
6
6
 
7
- TOXICITY_MODELS = %w[TOXICITY SEVERE_TOXICITY].freeze
8
-
9
7
  def initialize(text:, score: 0.5)
10
8
  @client = Client.new
11
9
  @text = text
@@ -12,8 +12,7 @@ module GooglePerspective
12
12
  attr_accessor :access_key, :models
13
13
 
14
14
  def initialize
15
- @mailer_sender = ''
16
- @models = []
15
+ @access_key = ''
17
16
  end
18
17
  end
19
18
  end
@@ -1,3 +1,3 @@
1
1
  module GooglePerspective
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_perspective
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Espinosa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-10 00:00:00.000000000 Z
11
+ date: 2019-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -91,13 +91,13 @@ files:
91
91
  - lib/google_perspective/comment_analizer.rb
92
92
  - lib/google_perspective/config.rb
93
93
  - lib/google_perspective/version.rb
94
- homepage: https://github.com/SquareOffs/google_perspective
94
+ homepage: https://github.com/rderoldan1/google_perspective
95
95
  licenses:
96
96
  - MIT
97
97
  metadata:
98
- homepage_uri: https://github.com/SquareOffs/google_perspective
99
- source_code_uri: https://github.com/SquareOffs/google_perspective
100
- changelog_uri: https://github.com/SquareOffs/google_perspective
98
+ homepage_uri: https://github.com/rderoldan1/google_perspective
99
+ source_code_uri: https://github.com/rderoldan1/google_perspective
100
+ changelog_uri: https://github.com/rderoldan1/google_perspective
101
101
  post_install_message:
102
102
  rdoc_options: []
103
103
  require_paths: