chat_correct 0.0.5 → 0.0.6

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: 8cb48dec491636bf29068069a124b3754dc6d943
4
- data.tar.gz: 7d4d423bb591477b5b2fb98bccde86cd89aae8c8
3
+ metadata.gz: b4352b3ec928d5e4b67f77744d304a6456708b70
4
+ data.tar.gz: d28f0f5abc9ee668f2af38559e402128d2286023
5
5
  SHA512:
6
- metadata.gz: 8e2521ec3de8b938bb12c9e6fb65309752e3e16df10681fdb4ce29fd42145cd225beff5c460f481129950e8300ac4f322085cf0fe6719250e3bb82b41f51f15a
7
- data.tar.gz: f4a33dd34d119c70c31bd0bd2bd29f0e7d6bbce6dc6df1db7edf785b9089516b5509de119a88315bf515de103403dd1c639cb4d795c67173532c2c8b08631588
6
+ metadata.gz: 15fe5637e039fe5c2d99bbe635722cd3e577d87582c459a217f88c9b48ca89efb2e2aec5b83fa4b17eb303039eeef20daf4eadf358818117399a6c48dda29dd1
7
+ data.tar.gz: 766e019cfbd591e8b0080b0aa464942ab72ec3131dd51c394807344d3b9d1256bb01cca1268b3bc4b9cbb52bb220dfaab18a4c70d10ffb99d368a6149c84a417
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - "2.1.0"
3
4
  - "2.1.5"
4
- - "2.2.0"
5
+ - "2.2.0"
data/README.md CHANGED
@@ -8,17 +8,17 @@ Live Demo: [Chat Correct chat room application](http://www.chat-correct.com)
8
8
 
9
9
  ![](https://s3.amazonaws.com/tm-town-nlp-resources/chat_correct_screenshot.jpg)
10
10
 
11
- ##Install
11
+ ##Install
12
12
 
13
- **Ruby**
14
- *Supports Ruby 2.1.5 and above*
13
+ **Ruby**
14
+ *Supports Ruby 2.1.0 and above*
15
15
  ```
16
16
  gem install chat_correct
17
17
  ```
18
18
 
19
- **Ruby on Rails**
20
- Add this line to your application’s Gemfile:
21
- ```ruby
19
+ **Ruby on Rails**
20
+ Add this line to your application’s Gemfile:
21
+ ```ruby
22
22
  gem 'chat_correct'
23
23
  ```
24
24
 
@@ -144,8 +144,8 @@ os = "is the, puncttuation are wrong."
144
144
  cs = "Is the punctuation wrong?"
145
145
  cc = ChatCorrect::Correct.new(original_sentence: os, corrected_sentence: cs)
146
146
  cc.mistake_report
147
- # => {
148
- # 'missing_word' => 0,
147
+ # => {
148
+ # 'missing_word' => 0,
149
149
  # 'unnecessary_word' => 1,
150
150
  # 'spelling' => 1,
151
151
  # 'verb' => 0,
@@ -205,4 +205,5 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
205
205
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
206
206
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
207
207
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
208
- THE SOFTWARE.
208
+ THE SOFTWARE.
209
+
data/chat_correct.gemspec CHANGED
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
+ spec.required_ruby_version = '>= 2.1.0'
20
21
 
21
22
  spec.add_development_dependency "bundler", "~> 1.7"
22
23
  spec.add_development_dependency "rake", "~> 10.0"
@@ -1,3 +1,3 @@
1
1
  module ChatCorrect
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -14,4 +14,18 @@ RSpec.describe ChatCorrect::Capitalization do
14
14
  cc = ChatCorrect::Capitalization.new(token_a: token_a, token_b: token_b)
15
15
  expect(cc.capitalization_error?).to eq(false)
16
16
  end
17
+
18
+ it 'should return false if token_a and token_b are not equal because this is a word choice error, not capitalization' do
19
+ token_a = 'Usa'
20
+ token_b = 'USA'
21
+ cc = ChatCorrect::Capitalization.new(token_a: token_a, token_b: token_b)
22
+ expect(cc.capitalization_error?).to eq(true)
23
+ end
24
+
25
+ it 'should return false if token_a and token_b are not equal because this is a word choice error, not capitalization' do
26
+ token_a = 'hEllo'
27
+ token_b = 'Hello'
28
+ cc = ChatCorrect::Capitalization.new(token_a: token_a, token_b: token_b)
29
+ expect(cc.capitalization_error?).to eq(true)
30
+ end
17
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chat_correct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-08 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -170,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: 2.1.0
174
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
176
  - - ">="