linggle 0.04.2 → 0.04.3

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: 802e94722af8ae524eba3fd6935d0613cf85c80e
4
- data.tar.gz: f31502a544bcdf605d1cb4afa92ad8491a530429
3
+ metadata.gz: c5f8d38379b0ce1d2db5ff56bf5c9a4772faf9ac
4
+ data.tar.gz: f5e20bd2973965606855e011626e13b6d458bb52
5
5
  SHA512:
6
- metadata.gz: e932afdae70f562b0cc7d64ee574ffca8c2c9a1f6925afa93f73ce728fdd942a6b23fda0bfdc5b66a3ac4523af3c0072b565ca216912d912084793ff5d1e5f5e
7
- data.tar.gz: 2a05c2b614eecc4e43d71a5a140bd3f14d05b0205ea44e6602b020b1dea5303e72e5cfa85d7b579872d4b3c6cb3f038f4d622c58a228d1a61d332fa63f6351ac
6
+ metadata.gz: 3971be22b1784289d7001475701fb4e86bbfe0fd0b3aed5b854fca69323e1cb8d37bdf20903fda4f7a4d4e8d9c297cde1ee14093bb53c427b0b981d463aee8de
7
+ data.tar.gz: 887969f72dd3830e20d9911cee19ce9f550ed1e5f619b75bd52612a7b83e3e82992c8f0d6c5b00b0ebc94f6b10effc8dd0efe9737a020658c950d75e2a80dcf7
@@ -29,9 +29,9 @@ module Linggle
29
29
  "total": 674125
30
30
  }
31
31
  =end
32
- entries = results['ngrams'].take(20).map do |x|
32
+ results['ngrams'].take(20).each do |x|
33
33
  percent = ( (x[1].to_f/results['total']).round(2) * 100 ).to_s
34
- "#{x[0].green} Percent: #{percent.yellow} #{x[1]} \n #{percent.percent_line} \n \n"
34
+ puts "#{x[0].green} Percent: #{percent.yellow} #{x[1]} \n #{percent.percent_line} \n \n"
35
35
  end
36
36
  end
37
37
 
@@ -35,7 +35,6 @@ class String
35
35
  Strips = '|' * 100
36
36
  def percent_line
37
37
  count = self.to_i
38
- puts count
39
38
  "[#{ Strips[0..count].red } #{ ' ' * (100 - count) }]"
40
39
  end
41
40
  end
@@ -1,3 +1,3 @@
1
1
  module Linggle
2
- VERSION = "0.04.2"
2
+ VERSION = "0.04.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linggle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.04.2
4
+ version: 0.04.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - fangxing