sentimentalizer 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +4 -4
- data/Gemfile.lock +67 -48
- data/VERSION +1 -1
- data/sentimentalizer.gemspec +25 -25
- data/spec/sentimentalizer_spec.rb +3 -3
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53f0bf2ec24fd3b5a22d6afc5419dd35c52585e2
|
4
|
+
data.tar.gz: 611bcaee1d6f025442408fe9c68053c2bc485456
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9161557769c92de4cf17b5b6b7273823e94d7820192b9eab3d29e9fddf1b058bb51595ce93f178fdbb794996e043a9547a71505995068e2f8383c7e29a874572
|
7
|
+
data.tar.gz: df905cb78250a89f7d646c488a5822be33cd9fb57868bc8b2c4ecd68172d22b3fc8d36bb439a08a41f8dfeb94b6fa3a19fd02f05afccfcbf5124550256641c4b
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.3
|
data/Gemfile
CHANGED
@@ -6,8 +6,8 @@ source "http://rubygems.org"
|
|
6
6
|
# Add dependencies to develop your gem here.
|
7
7
|
# Include everything needed to run rake, tests, features, etc.
|
8
8
|
group :development do
|
9
|
-
gem "rspec", "~>
|
10
|
-
gem "rdoc", "~>
|
11
|
-
gem "jeweler", "~>
|
12
|
-
gem "simplecov", "
|
9
|
+
gem "rspec", "~> 3.6"
|
10
|
+
gem "rdoc", "~> 6.0"
|
11
|
+
gem "jeweler", "~> 2.3"
|
12
|
+
gem "simplecov", "~> 0.15"
|
13
13
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,64 +1,83 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
addressable (2.
|
5
|
-
builder (3.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
4
|
+
addressable (2.4.0)
|
5
|
+
builder (3.2.3)
|
6
|
+
descendants_tracker (0.0.4)
|
7
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
8
|
+
diff-lcs (1.3)
|
9
|
+
docile (1.1.5)
|
10
|
+
faraday (0.9.2)
|
11
|
+
multipart-post (>= 1.2, < 3)
|
12
|
+
git (1.3.0)
|
13
|
+
github_api (0.16.0)
|
14
|
+
addressable (~> 2.4.0)
|
15
|
+
descendants_tracker (~> 0.0.4)
|
16
|
+
faraday (~> 0.8, < 0.10)
|
17
|
+
hashie (>= 3.4)
|
18
|
+
mime-types (>= 1.16, < 3.0)
|
19
|
+
oauth2 (~> 1.0)
|
20
|
+
hashie (3.5.7)
|
21
|
+
highline (1.7.10)
|
22
|
+
jeweler (2.3.9)
|
20
23
|
builder
|
21
|
-
bundler
|
24
|
+
bundler
|
22
25
|
git (>= 1.2.5)
|
23
|
-
github_api (
|
26
|
+
github_api (~> 0.16.0)
|
24
27
|
highline (>= 1.6.15)
|
25
|
-
nokogiri (
|
28
|
+
nokogiri (>= 1.5.10)
|
29
|
+
psych
|
26
30
|
rake
|
27
31
|
rdoc
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
semver2
|
33
|
+
json (2.1.0)
|
34
|
+
jwt (1.5.6)
|
35
|
+
mime-types (2.99.3)
|
36
|
+
mini_portile2 (2.3.0)
|
37
|
+
multi_json (1.13.1)
|
38
|
+
multi_xml (0.6.0)
|
39
|
+
multipart-post (2.0.0)
|
40
|
+
nokogiri (1.8.2)
|
41
|
+
mini_portile2 (~> 2.3.0)
|
42
|
+
oauth2 (1.4.0)
|
43
|
+
faraday (>= 0.8, < 0.13)
|
36
44
|
jwt (~> 1.0)
|
37
45
|
multi_json (~> 1.3)
|
38
46
|
multi_xml (~> 0.5)
|
39
|
-
rack (
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
rspec (
|
45
|
-
rspec-core (~>
|
46
|
-
rspec-expectations (~>
|
47
|
-
rspec-mocks (~>
|
48
|
-
rspec-core (
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
47
|
+
rack (>= 1.2, < 3)
|
48
|
+
psych (3.0.2)
|
49
|
+
rack (2.0.4)
|
50
|
+
rake (12.3.0)
|
51
|
+
rdoc (6.0.1)
|
52
|
+
rspec (3.7.0)
|
53
|
+
rspec-core (~> 3.7.0)
|
54
|
+
rspec-expectations (~> 3.7.0)
|
55
|
+
rspec-mocks (~> 3.7.0)
|
56
|
+
rspec-core (3.7.1)
|
57
|
+
rspec-support (~> 3.7.0)
|
58
|
+
rspec-expectations (3.7.0)
|
59
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
+
rspec-support (~> 3.7.0)
|
61
|
+
rspec-mocks (3.7.0)
|
62
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
63
|
+
rspec-support (~> 3.7.0)
|
64
|
+
rspec-support (3.7.1)
|
65
|
+
semver2 (3.4.2)
|
66
|
+
simplecov (0.15.1)
|
67
|
+
docile (~> 1.1.0)
|
68
|
+
json (>= 1.8, < 3)
|
69
|
+
simplecov-html (~> 0.10.0)
|
70
|
+
simplecov-html (0.10.2)
|
71
|
+
thread_safe (0.3.6)
|
56
72
|
|
57
73
|
PLATFORMS
|
58
74
|
ruby
|
59
75
|
|
60
76
|
DEPENDENCIES
|
61
|
-
jeweler (~>
|
62
|
-
rdoc (~>
|
63
|
-
rspec (~>
|
64
|
-
simplecov
|
77
|
+
jeweler (~> 2.3)
|
78
|
+
rdoc (~> 6.0)
|
79
|
+
rspec (~> 3.6)
|
80
|
+
simplecov (~> 0.15)
|
81
|
+
|
82
|
+
BUNDLED WITH
|
83
|
+
1.16.1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/sentimentalizer.gemspec
CHANGED
@@ -2,18 +2,18 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: sentimentalizer 0.3.
|
5
|
+
# stub: sentimentalizer 0.3.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
|
-
s.name = "sentimentalizer"
|
9
|
-
s.version = "0.3.
|
8
|
+
s.name = "sentimentalizer".freeze
|
9
|
+
s.version = "0.3.1"
|
10
10
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["malavbhavsar"]
|
14
|
-
s.date = "
|
15
|
-
s.description = "Sentiment analysis with ruby."
|
16
|
-
s.email = "malav.bhavsar@gmail.com"
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["malavbhavsar".freeze]
|
14
|
+
s.date = "2018-03-11"
|
15
|
+
s.description = "Sentiment analysis with ruby.".freeze
|
16
|
+
s.email = "malav.bhavsar@gmail.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE.txt",
|
19
19
|
"README.md"
|
@@ -839,30 +839,30 @@ Gem::Specification.new do |s|
|
|
839
839
|
"spec/sentimentalizer_spec.rb",
|
840
840
|
"spec/spec_helper.rb"
|
841
841
|
]
|
842
|
-
s.homepage = "http://github.com/malavbhavsar/sentimentalizer"
|
843
|
-
s.licenses = ["MIT"]
|
844
|
-
s.rubygems_version = "2.
|
845
|
-
s.summary = "Sentiment analysis with ruby."
|
842
|
+
s.homepage = "http://github.com/malavbhavsar/sentimentalizer".freeze
|
843
|
+
s.licenses = ["MIT".freeze]
|
844
|
+
s.rubygems_version = "2.6.14".freeze
|
845
|
+
s.summary = "Sentiment analysis with ruby.".freeze
|
846
846
|
|
847
847
|
if s.respond_to? :specification_version then
|
848
848
|
s.specification_version = 4
|
849
849
|
|
850
850
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
851
|
-
s.add_development_dependency(%q<rspec
|
852
|
-
s.add_development_dependency(%q<rdoc
|
853
|
-
s.add_development_dependency(%q<jeweler
|
854
|
-
s.add_development_dependency(%q<simplecov
|
851
|
+
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.6"])
|
852
|
+
s.add_development_dependency(%q<rdoc>.freeze, ["~> 6.0"])
|
853
|
+
s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3"])
|
854
|
+
s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.15"])
|
855
855
|
else
|
856
|
-
s.add_dependency(%q<rspec
|
857
|
-
s.add_dependency(%q<rdoc
|
858
|
-
s.add_dependency(%q<jeweler
|
859
|
-
s.add_dependency(%q<simplecov
|
856
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3.6"])
|
857
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 6.0"])
|
858
|
+
s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
|
859
|
+
s.add_dependency(%q<simplecov>.freeze, ["~> 0.15"])
|
860
860
|
end
|
861
861
|
else
|
862
|
-
s.add_dependency(%q<rspec
|
863
|
-
s.add_dependency(%q<rdoc
|
864
|
-
s.add_dependency(%q<jeweler
|
865
|
-
s.add_dependency(%q<simplecov
|
862
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3.6"])
|
863
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 6.0"])
|
864
|
+
s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
|
865
|
+
s.add_dependency(%q<simplecov>.freeze, ["~> 0.15"])
|
866
866
|
end
|
867
867
|
end
|
868
868
|
|
@@ -10,14 +10,14 @@ describe "Sentimentalizer" do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
it "will return a valid ruby hash with a valid input" do
|
13
|
-
Sentimentalizer.analyze("I hate not tests").sentiment.
|
13
|
+
expect(Sentimentalizer.analyze("I hate not tests").sentiment).to eq(":(")
|
14
14
|
end
|
15
15
|
|
16
16
|
it "will return a valid json string with a valid input" do
|
17
|
-
JSON.parse(Sentimentalizer.analyze("I hate not tests", true))["sentiment"].
|
17
|
+
expect(JSON.parse(Sentimentalizer.analyze("I hate not tests", true))["sentiment"]).to eq(":(")
|
18
18
|
end
|
19
19
|
|
20
20
|
it "will assign a probability of .5 in the case of an unknown word" do
|
21
|
-
Sentimentalizer.analyze("a;lsdnzi").overall_probability.
|
21
|
+
expect(Sentimentalizer.analyze("a;lsdnzi").overall_probability).to eq(0.5)
|
22
22
|
end
|
23
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentimentalizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- malavbhavsar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '3.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '3.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '6.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '6.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jeweler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '2.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '2.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '0.15'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '0.15'
|
69
69
|
description: Sentiment analysis with ruby.
|
70
70
|
email: malav.bhavsar@gmail.com
|
71
71
|
executables: []
|
@@ -913,7 +913,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
913
913
|
version: '0'
|
914
914
|
requirements: []
|
915
915
|
rubyforge_project:
|
916
|
-
rubygems_version: 2.
|
916
|
+
rubygems_version: 2.6.14
|
917
917
|
signing_key:
|
918
918
|
specification_version: 4
|
919
919
|
summary: Sentiment analysis with ruby.
|