gem-check 0.2.1 → 0.2.2

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: 31e7a891177cd5e3314d2ea3aaad892992746862
4
- data.tar.gz: b63f82df5f5124a4362a32bcd8d8ae1fc8095e71
3
+ metadata.gz: bb16d66453bc30609dd733b6111d5b906735882b
4
+ data.tar.gz: 7f0f3825f8ab2ccd4b9906fcc0411e05d74d16d5
5
5
  SHA512:
6
- metadata.gz: c439a7dfc00e4c8df7f7681da59b13138e578c957db65fac691883257ef001c060e664a5e386d31189d4dc8530b0a3d4f7f400de7df6151214421cb427f611d0
7
- data.tar.gz: eea068e867cadd81296b105733fee22972e0cc410afa5ae9cc15579b2edd3c41aeff55890ba6f123c0aa1daa97ebdbb8b8483b298576999d7b2176983e0d3c14
6
+ metadata.gz: 5175372b87e3f0769b6c81865b74b70656be1c559e659203b4ecde2fbe76ddf7c9125e1d3046eda40ff7026019c4a0491532ebabbbf8fede0737cc63ca0b8ec2
7
+ data.tar.gz: af58613b1bb209b3f28418beaa579c7b8ddeed8057706ea3a8c67b54b8651d7bac5916899d19d26427290e3b08780ce146af31b686204e9b0f7792955ae97a6f
@@ -38,7 +38,7 @@ module GemCheck
38
38
 
39
39
  def calc_new_downloads(idx, row, info)
40
40
  new_dls = decommafy(row[idx]).to_i - decommafy(info[idx]).to_i
41
- @new_downloads += new_dls
41
+ @new_downloads += new_dls if idx.eql?(COL_TDL)
42
42
  row[idx] = new_dls > 0 ? "#{row[idx]} ( +#{commafy(new_dls)} )" : row[idx]
43
43
  end
44
44
 
@@ -54,8 +54,5 @@ module GemCheck
54
54
  @update_version = JSON.parse(versions, object_class: OpenStruct).first.number
55
55
  @update_version > GemCheck::VERSION
56
56
  end
57
-
58
-
59
-
60
57
  end
61
58
  end
@@ -1,3 +1,3 @@
1
1
  module GemCheck
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meissa Dia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-29 00:00:00.000000000 Z
11
+ date: 2017-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gems