word_count_analyzer 0.0.8 → 0.0.9

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: 342d1a0ede90ade91de48b7d6305781ac07bce41
4
- data.tar.gz: bbbf42aff382a2ac2005a30eeeec87a69aa34bad
3
+ metadata.gz: 87bec846bdd02ab33c2547dab4bebd08ac58a702
4
+ data.tar.gz: c59562499109dc6bfd1427d67e293bfa34a09c5e
5
5
  SHA512:
6
- metadata.gz: e63162459e6e8333a333a35c103cc7c3018385e64bacfa556a598c77e5ebb3f99ede9579b0dbb97511cc44fb14d9bddb46c3407cdc4a14c8c0097320c8dd30d1
7
- data.tar.gz: c000538dcefc659cc5b92aecc71cdc703166546e2a0759245a4a67a0049b23d913b0403689eb31c089e9e972344d2d21294d3363d2dc9afb022d5aa9fe17b830
6
+ metadata.gz: 019f11f42cfa49c56bf723513f90f4ea8905e2fa540c7652b72ed4d512ed4e21e6ba7e6d7ca66e82c72fe75e604266bfd2999187d2cedb2fb56db463df5d46a5
7
+ data.tar.gz: 7a8cc1ef740fc06e6474d4218fcca4533050e0fd9e74545cb158db4f2cc9918851c4eecde0d9c1c389943d2f17fb61bad6b2efecb3e0823c4921a1111a59d5ea
@@ -25,7 +25,7 @@ module WordCountAnalyzer
25
25
  end
26
26
 
27
27
  def pages_count
28
- @ellipsis = 'no_special_treatment'
28
+ @ellipsis = 'ignore'
29
29
  @hyperlink = 'split_at_period'
30
30
  @contraction = 'count_as_one'
31
31
  @hyphenated_word = 'count_as_multiple'
@@ -1,3 +1,3 @@
1
1
  module WordCountAnalyzer
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -587,6 +587,12 @@ RSpec.describe WordCountAnalyzer::Counter do
587
587
  ws = WordCountAnalyzer::Counter.new(text: text)
588
588
  expect(ws.pages_count).to eq(79)
589
589
  end
590
+
591
+ it 'reverse engineers Pages word count #003' do
592
+ text = "..."
593
+ ws = WordCountAnalyzer::Counter.new(text: text)
594
+ expect(ws.pages_count).to eq(0)
595
+ end
590
596
  end
591
597
 
592
598
  context 'Microsoft Word Count' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word_count_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias