linter 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/linter.rb +4 -2
- data/lib/linter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a74f2d2cf81e683ac4e5722d378181802685f3de067e36932fb1dfd28069ebf
|
4
|
+
data.tar.gz: 406fd415a11c8750bd4f72c64f34e302b2e10cb16c4d7030b0433f43f9ee898e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e248df80b8d7d09ef57c8221c17045332912292d27e90b89b9243ca4e55e7f5993efab37a36b72360a6b6fa75585b9d9835a2e1518c231fdd4a680496ac8e06c
|
7
|
+
data.tar.gz: 7b2b8b622ea8ee78ec55a8016c1d25f2b8201777af0471e41f9c3884c022266dcea53c8170a0a420255bd7fbe51f5550e4584ecfff643dd8940adfe12f475b03
|
data/Gemfile.lock
CHANGED
data/lib/linter.rb
CHANGED
@@ -16,12 +16,14 @@ module Linter
|
|
16
16
|
class Error < StandardError; end
|
17
17
|
|
18
18
|
class << self
|
19
|
-
def analyze(text)
|
20
|
-
{
|
19
|
+
def analyze(text, job_ad: false)
|
20
|
+
response = {
|
21
21
|
gender_association_analysis: Linter::GenderAssociation.analyze(text),
|
22
22
|
pronoun_analysis: Linter::PronounAssociation.analyze(text),
|
23
23
|
misused_words_analysis: Linter::MisusedWords.analyze(text)
|
24
24
|
}
|
25
|
+
response[:mindset_association_analysis] = Linter::MindsetAssociation.analyze(text) if job_ad
|
26
|
+
response
|
25
27
|
end
|
26
28
|
end
|
27
29
|
end
|
data/lib/linter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lien van den steen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|