repocrawler 0.1.5 → 0.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: accc97cc5f24dd3e17e9a0d49c394407f8458612
4
- data.tar.gz: d3af1a5dd50f136f9885a78adf9b29636cd2a53c
3
+ metadata.gz: b15ef9d661c5c28e40649e7e7e9843d564cd3e1c
4
+ data.tar.gz: 160d5ad0919810c4a8add17a6893d6dd2a3051ce
5
5
  SHA512:
6
- metadata.gz: 7f0ff800bd92bebce55f10a12af43fac490d618d34d6a8ed498303eb6b843d82cb9d354b77c9d6aea4f7cbe879e9390610cd747461f5f8d809f873289e952f17
7
- data.tar.gz: 7f0c4ce3a741fe18b1122049abca15627dc4a34d810f7fc539053ee21a0a25e0494194973aa9de52b44a6a518766e1d7df5ffb373062857cf10fc02e4cf2670e
6
+ metadata.gz: ad0bf56cad2995ea4d36b0254cae4b5bc06aa3cb4891a5396cc51da21068249db91d5d48b1564cb62c6b5a19f8fd46fce7a654278fa27f4c7a4965fdf0036121
7
+ data.tar.gz: 8d9fdf480040c4a099936b75a9aacdc9e514bb27b4556b945f3e1b52a09764de321e4a6f5ebc601f8ebaf01c5075ccaa03486538409b4170648462e10e389aa9
@@ -27,6 +27,9 @@ module Repos
27
27
  last_year_commit_activity = HTTParty.get(@GITHUB_API_BASE_URL + "/stats/commit_activity?access_token=#{@access_token}", headers: {
28
28
  "User-Agent" => @user_agent
29
29
  })
30
+
31
+ last_year_commit_activity.delete_if {|record| record['total'] == 0}
32
+ last_year_commit_activity
30
33
  end
31
34
 
32
35
  # Get the contributors
@@ -193,6 +196,10 @@ module Repos
193
196
  end.reverse!
194
197
 
195
198
  version_downloads_trend.compact! if version_downloads_trend.include? nil
199
+
200
+ version_downloads_trend.each do |version|
201
+ version['downloads_date'].delete_if {|_key, value| value == 0}
202
+ end
196
203
  version_downloads_trend
197
204
  end
198
205
 
@@ -1,4 +1,4 @@
1
1
  # Versioning
2
2
  module Repos
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repocrawler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Chen