lingua-it-readability 1.1.5 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b93556194cfe9537a625a11be8b2f973c0939622
4
- data.tar.gz: 959ea95d40475e12c0e4f3e8c4b2a3ac8d4f595f
3
+ metadata.gz: 42f6c7ecd1fac59e26a952b0b4637ca37823b9c4
4
+ data.tar.gz: a5b1e3865b48a65f656f0df86f870e74a376db8d
5
5
  SHA512:
6
- metadata.gz: b1fa57d62d3c1dbc8ee62f58094cc92551c5186b3dcf3218337c3558ad7e68f425f6d0b82d0e1bdeefe7c7493299c680624fd12df2a3ed08597be88175bed39a
7
- data.tar.gz: 2eaaaf25d2e5dd2e0bb58cdeaf87e17b318c18d94458fe755ce3365067b5be218435a1b38884d014cafac31496a6fc5f358b3c1444b5cc5a0982e7b3f7f394de
6
+ metadata.gz: 0c223befa1275a132e274fe2013881b9d72a134cb2b1f1278b4c3f2ac4a07609bb468c0e12e51176c421650c1b72aef3a8a757308047c8e870f783cbdfa84d4b
7
+ data.tar.gz: 5fe0490781ccf1ce60d170772e52be7510002994dd5c32f75c037a0adba25999281c5a4933006080e19dc4621b4c1efda4b8edacdd37f498666ec80cc704caeb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ #### 1.1.6 - 2016-02-10
2
+ ###### Added
3
+ - Refactoring
4
+ - Additional test for report method
5
+
1
6
  #### 1.1.5 - 2016-02-10
2
7
  ###### Added
3
8
  - Method analyze, accept text and optional delimiters
@@ -8,12 +13,14 @@
8
13
  - Optimized regex, greatly improved overall performance
9
14
  - Possibility to add custom symbols as end delimiter for sentences
10
15
  - Readme usage section
16
+
11
17
  ###### Fixed
12
18
  - Minor bugs
13
19
 
14
20
  #### 1.0.4 - 2016-02-09
15
21
  ###### Added
16
22
  - Readme usage section
23
+
17
24
  ###### Fixed
18
25
  - Minor bugs
19
26
 
@@ -24,12 +31,14 @@
24
31
  #### 1.0.2 - 2016-02-09
25
32
  ###### Added
26
33
  - Readme usage section
34
+
27
35
  ###### Fixed
28
36
  - Minor bugs
29
37
 
30
38
  #### 1.0.1 - 2016-02-09
31
39
  ###### Added
32
40
  - Some more tests
41
+
33
42
  ###### Fixed
34
43
  - Improvements on syllables regex
35
44
 
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  [![Build Status](https://travis-ci.org/codepr/lingua-it-readability.svg?branch=master)](https://travis-ci.org/codepr/lingua-it-readability)
2
+ [![Gem Version](https://badge.fury.io/rb/lingua-it-readability.svg)](https://badge.fury.io/rb/lingua-it-readability)
2
3
 
3
4
  # Lingua::It::Readability
4
5
 
@@ -145,7 +145,8 @@ module Lingua
145
145
  # A nicely formatted report on the sample, showing most the useful
146
146
  # stats
147
147
  def report
148
- sprintf "Number of paragraphs %d \n" <<
148
+ sprintf "Sentence delimiters %s \n" <<
149
+ "Number of paragraphs %d \n" <<
149
150
  "Number of sentences %d \n" <<
150
151
  "Number of words %d \n" <<
151
152
  "Number of characters %d \n\n" <<
@@ -153,9 +154,9 @@ module Lingua
153
154
  "Average syllables per word %.2f \n\n" <<
154
155
  "Gulpease score %2.2f \n" <<
155
156
  "Flesch score %2.2f \n",
156
- num_paragraphs, num_sentences, num_words, num_characters,
157
- words_per_sentence, syllables_per_word, gulpease,
158
- flesch
157
+ sentence.delim_regex.gsub(/\\/,''), num_paragraphs, num_sentences,
158
+ num_words, num_characters, words_per_sentence,
159
+ syllables_per_word, gulpease, flesch
159
160
  end
160
161
 
161
162
  private
@@ -1,7 +1,7 @@
1
1
  module Lingua
2
2
  module It
3
3
  module Readability
4
- VERSION = "1.1.5"
4
+ VERSION = "1.1.6"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lingua-it-readability
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Giacomo Baldan