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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adaa7fcb374f3b8778289f933b001a8878db2b27
4
- data.tar.gz: 6fe6763906ebfa20cbec0083f5fa08ce90088811
3
+ metadata.gz: 53f0bf2ec24fd3b5a22d6afc5419dd35c52585e2
4
+ data.tar.gz: 611bcaee1d6f025442408fe9c68053c2bc485456
5
5
  SHA512:
6
- metadata.gz: 26818b295d83d8b0bf2d90cd2ea3f144052b496aaf45710e2593cbb170b3cf57791fc39f4360a8e52e35915b9cde698d473509ec21de883f0e324415ce90ac5f
7
- data.tar.gz: cefeae99f73f11bdf590a18e8dcca0e204a8cdd5a624ade0cb1038087bd84ba8dc310048079f50e3480ce230cca080c11e3e63593eaa2f2c75dbe8cb210181b9
6
+ metadata.gz: 9161557769c92de4cf17b5b6b7273823e94d7820192b9eab3d29e9fddf1b058bb51595ce93f178fdbb794996e043a9547a71505995068e2f8383c7e29a874572
7
+ data.tar.gz: df905cb78250a89f7d646c488a5822be33cd9fb57868bc8b2c4ecd68172d22b3fc8d36bb439a08a41f8dfeb94b6fa3a19fd02f05afccfcbf5124550256641c4b
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.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", "~> 2.11.0"
10
- gem "rdoc", "~> 3.12"
11
- gem "jeweler", "~> 1.8.4"
12
- gem "simplecov", ">= 0"
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.3.6)
5
- builder (3.1.4)
6
- diff-lcs (1.1.3)
7
- faraday (0.8.9)
8
- multipart-post (~> 1.2.0)
9
- git (1.2.8)
10
- github_api (0.10.1)
11
- addressable
12
- faraday (~> 0.8.1)
13
- hashie (>= 1.2)
14
- multi_json (~> 1.4)
15
- nokogiri (~> 1.5.2)
16
- oauth2
17
- hashie (3.3.2)
18
- highline (1.6.21)
19
- jeweler (1.8.8)
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 (~> 1.0)
24
+ bundler
22
25
  git (>= 1.2.5)
23
- github_api (= 0.10.1)
26
+ github_api (~> 0.16.0)
24
27
  highline (>= 1.6.15)
25
- nokogiri (= 1.5.10)
28
+ nokogiri (>= 1.5.10)
29
+ psych
26
30
  rake
27
31
  rdoc
28
- json (1.8.1)
29
- jwt (1.2.0)
30
- multi_json (1.10.1)
31
- multi_xml (0.5.5)
32
- multipart-post (1.2.0)
33
- nokogiri (1.5.10)
34
- oauth2 (1.0.0)
35
- faraday (>= 0.8, < 0.10)
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 (~> 1.2)
40
- rack (1.5.2)
41
- rake (10.4.2)
42
- rdoc (3.12.2)
43
- json (~> 1.4)
44
- rspec (2.11.0)
45
- rspec-core (~> 2.11.0)
46
- rspec-expectations (~> 2.11.0)
47
- rspec-mocks (~> 2.11.0)
48
- rspec-core (2.11.1)
49
- rspec-expectations (2.11.3)
50
- diff-lcs (~> 1.1.3)
51
- rspec-mocks (2.11.3)
52
- simplecov (0.7.1)
53
- multi_json (~> 1.0)
54
- simplecov-html (~> 0.7.1)
55
- simplecov-html (0.7.1)
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 (~> 1.8.4)
62
- rdoc (~> 3.12)
63
- rspec (~> 2.11.0)
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.0
1
+ 0.3.1
@@ -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.0 ruby lib
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.0"
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 = "2016-04-08"
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.2.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>, ["~> 2.11.0"])
852
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
853
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
854
- s.add_development_dependency(%q<simplecov>, [">= 0"])
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>, ["~> 2.11.0"])
857
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
858
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
859
- s.add_dependency(%q<simplecov>, [">= 0"])
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>, ["~> 2.11.0"])
863
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
864
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
865
- s.add_dependency(%q<simplecov>, [">= 0"])
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.should eq(":(")
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"].should eq(":(")
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.should eq(0.5)
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.0
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: 2016-04-08 00:00:00.000000000 Z
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: 2.11.0
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: 2.11.0
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: '3.12'
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: '3.12'
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: 1.8.4
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: 1.8.4
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.2.2
916
+ rubygems_version: 2.6.14
917
917
  signing_key:
918
918
  specification_version: 4
919
919
  summary: Sentiment analysis with ruby.