chat_correct 0.0.5 → 0.0.6
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 +4 -4
- data/.travis.yml +2 -1
- data/README.md +10 -9
- data/chat_correct.gemspec +1 -0
- data/lib/chat_correct/version.rb +1 -1
- data/spec/chat_correct/capitalization_spec.rb +14 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4352b3ec928d5e4b67f77744d304a6456708b70
|
4
|
+
data.tar.gz: d28f0f5abc9ee668f2af38559e402128d2286023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15fe5637e039fe5c2d99bbe635722cd3e577d87582c459a217f88c9b48ca89efb2e2aec5b83fa4b17eb303039eeef20daf4eadf358818117399a6c48dda29dd1
|
7
|
+
data.tar.gz: 766e019cfbd591e8b0080b0aa464942ab72ec3131dd51c394807344d3b9d1256bb01cca1268b3bc4b9cbb52bb220dfaab18a4c70d10ffb99d368a6149c84a417
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -8,17 +8,17 @@ Live Demo: [Chat Correct chat room application](http://www.chat-correct.com)
|
|
8
8
|
|
9
9
|

|
10
10
|
|
11
|
-
##Install
|
11
|
+
##Install
|
12
12
|
|
13
|
-
**Ruby**
|
14
|
-
*Supports Ruby 2.1.
|
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"
|
data/lib/chat_correct/version.rb
CHANGED
@@ -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.
|
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-
|
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:
|
173
|
+
version: 2.1.0
|
174
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
175
|
requirements:
|
176
176
|
- - ">="
|