sentiment-all 1.2.0beta → 1.2.1beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c321a29189195824fc656683e9f2b1f7ed00f958efd4a5fa5f19c32f4c0d8156
4
- data.tar.gz: 69e91da7edffa600921aa21923073c3466028ae16611be5a97539de9b3d6dc7b
3
+ metadata.gz: 22a6be7f23cf4ef5a9f311a8ccb03dd652842d95b298b7f03c607b22ab212058
4
+ data.tar.gz: 24094fd543d3d8f8497b9043534c8fce72c8bd35110f0470585983d9fc5ee3eb
5
5
  SHA512:
6
- metadata.gz: 4c47f4d5c87cc482d722f9a7fdd7bca79e8316bf427e4d195592760414ee9fa7dc8c0af6cd4a77d5b3c4499a6a615b50a2eee470f8333f1cb1d3a81a6f25de74
7
- data.tar.gz: '0981182ceac7d3b0f9d046d0c4f954c4eade2e2ef64c08a44ea395fcf1f7a77febe9e52f8b086cd4f68e3d6145c6a42f188d7cdfa18640c01c951ebb9e7d579e'
6
+ metadata.gz: 2929c8ccc4c1a023007df672bce02353c2612a8907eb6d1fc5b19ebaa695d6970ad2d2b41dc8f79530af9d881c986b62237f05b36da74c4a93ffcfb64e688bda
7
+ data.tar.gz: b066ad5922df7e02ebb4e22d7f4c486d713e87e9191e13a38fdc705fbf3c30249e6a6803f7edcd6000e25946a78d7a01989f881dd7f953347c9367f12eda4080
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sentiment-all (1.2.0beta)
4
+ sentiment-all (1.2.1beta)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,31 +1,13 @@
1
- # sentiment-al
1
+ # sentiment-all
2
2
 
3
- sentiment-al is Sentiment Analysis Service that allow the analysis of text throught [SENTIM-API](https://sentim-api.herokuapp.com/).
3
+ sentiment-all is Sentiment Analysis Service that allow the analysis of text throught [SENTIM-API](https://sentim-api.herokuapp.com/).
4
4
 
5
5
  [![Build Status](https://travis-ci.com/armando1339/sentiment-al.svg?branch=master)](https://travis-ci.com/armando1339/sentiment-al) [![Coverage Status](https://coveralls.io/repos/github/armando1339/sentiment-al/badge.svg?branch=master)](https://coveralls.io/github/armando1339/sentiment-al?branch=master)
6
6
 
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'sentiment-al'
13
- ```
14
-
15
- And then execute:
16
-
17
- ```bash
18
- $ bundle install
19
- ```
20
-
21
- Or install it yourself as:
22
-
23
- ```bash
24
- $ gem install sentiment-al
25
- ```
26
-
27
7
  ## Usage
28
8
 
9
+ Just call the service passing through a text to be processed.
10
+
29
11
  ```ruby
30
12
 
31
13
  # => Execute the service
@@ -51,6 +33,53 @@ sentiment_al.response.message
51
33
  sentiment_al.response.body
52
34
  ```
53
35
 
36
+ It's also available the constant SentimentAl::Service.
37
+
38
+ ```ruby
39
+
40
+ # => Execute the service
41
+ SentimentAl::Service.call text: "Candy"
42
+
43
+ # => Verify the SENTIM-API responce
44
+ SentimentAl::Service.successfully?
45
+
46
+ # => Verify the response
47
+ SentimentAl::Service.response
48
+
49
+ # => Response to hash
50
+ SentimentAl::Service.response_to_hash
51
+
52
+ ```
53
+
54
+ Verify the status of HTTP Request
55
+
56
+ ```ruby
57
+ SentimentAl::Service.response
58
+ SentimentAl::Service.response.code
59
+ SentimentAl::Service.response.message
60
+ SentimentAl::Service.response.body
61
+ ```
62
+
63
+ ## Installation
64
+
65
+ Add this line to your application's Gemfile:
66
+
67
+ ```ruby
68
+ gem 'sentiment-all', '~> 1.2.1beta'
69
+ ```
70
+
71
+ And then execute:
72
+
73
+ ```bash
74
+ $ bundle install
75
+ ```
76
+
77
+ Or install it yourself as:
78
+
79
+ ```bash
80
+ $ gem install sentiment-all
81
+ ```
82
+
54
83
  ## Development
55
84
 
56
85
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,3 +1,3 @@
1
1
  module SentimentAl
2
- VERSION = "1.2.0beta"
2
+ VERSION = "1.2.1beta"
3
3
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.metadata["allowed_push_host"] = "https://rubygems.org/"
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/armando1339"
18
+ spec.metadata["source_code_uri"] = "https://github.com/armando1339/sentiment-all"
19
19
  # spec.metadata["changelog_uri"] = "Put your gem's CHANGELOG.md URL here."
20
20
 
21
21
  # Specify which files should be added to the gem when it is released.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentiment-all
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0beta
4
+ version: 1.2.1beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armando Alejandre
@@ -68,7 +68,7 @@ licenses:
68
68
  metadata:
69
69
  allowed_push_host: https://rubygems.org/
70
70
  homepage_uri: https://github.com/armando1339
71
- source_code_uri: https://github.com/armando1339
71
+ source_code_uri: https://github.com/armando1339/sentiment-all
72
72
  post_install_message:
73
73
  rdoc_options: []
74
74
  require_paths: