hubstats 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDllYTczYjQ4OTgxNTcxNTIxNjBhMWM2MTRiYWNlNDlmMDBmOGQ3OA==
4
+ MDdiODg1ZmU4OGJkMTM1MzBjNWNiZWNlNmZjYTYxODk2OGFmZjNkZA==
5
5
  data.tar.gz: !binary |-
6
- NmRmMTc1NDQ3YWNlODkzYjY0MWVmMGI3YjgyNTVjODg1OTc5NmZlZg==
6
+ MWFjNmQ1ZGQwZjRjMWYwNDNmM2E4ZGZlNzNlZTE4MTlhZTRhMGM3YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2UzZWIxMGI0NGMzYWI4ODFiOWM3YTg5M2MwM2YxMDhhZTg5NDRiY2E5NDJm
10
- ZDYyMTI1MDk5NTljMzAzZDVjYzIxYWZhYWM5MTQ2OGQzNDQ5MDgxOWM4MzJk
11
- N2I4OTEyMmY0N2IzN2M1OWFiYzM1ZDI4ZjE5M2MyODc0ZGM2NGM=
9
+ NDkyMjc5ZDIyOGZlNDk3NjY4N2Q3MjliMmY3YmFmOTNlODNiMGRmNGRmZWNl
10
+ NDA4MzdjZjYzNzFjMmQ2ZDdiY2E1YTE2ZGU5NmY5NDY1NTE3ZDgzNzliZTE5
11
+ MDlhYmE4NTdmMTc5ZWYwMTg1YmZiNjI0NDYzZGY0ZWI5NDNiMTY=
12
12
  data.tar.gz: !binary |-
13
- YTFmZmI2ZjQ5NjU5MjA3ZjE5M2Q5NWVjYzlkMjY2N2JiOTk4YTIxMTQ0NjEw
14
- Njc5YjI2ZTM0NGI4ZjI2NmE3NGU5Mzg3OTA4NjU0YjU5Mzg4NmM3MzYyNTc5
15
- MzY3OGUwYTc2YmRlYzcyNjM5ZmExNmViZTVjZWM2MmM3MzFjODI=
13
+ MTlkMmY2ZGUwYWNhYjRmMjRiMjQ3N2I2NDExMzRjM2I3OTIxYWQwZjFhNDZi
14
+ MzlkODNmNDBiYmY0ODRiNTIzMWY1MTlhZWU3MzY1NzA3MTE3NTZjM2EzYmE2
15
+ ODM2MjJkZjZhZGQ0YTU4ZGUwMjQxOTBlNDI1Y2RjMWRmYjgyODk=
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,12 @@
1
+ #### v0.3.10
2
+ * Fixed bug with PR counts
3
+
4
+ > Emma Sax: Brian Bergstrom: https://github.com/sportngin/hubstats/pull/58
5
+
6
+ * Fixed bug with PR counts
7
+
8
+ > Emma Sax: Brian Bergstrom: https://github.com/sportngin/hubstats/pull/58
9
+
1
10
  #### v0.3.9
2
11
  * Refactored Main Parts of Code
3
12
 
@@ -22,7 +22,7 @@ module Hubstats
22
22
  scope :pull_requests_count, lambda {|time|
23
23
  select("hubstats_repos.id as repo_id")
24
24
  .select("IFNULL(COUNT(DISTINCT hubstats_pull_requests.id),0) AS pull_request_count")
25
- .joins("LEFT JOIN hubstats_pull_requests ON hubstats_pull_requests.repo_id = hubstats_repos.id AND hubstats_pull_requests.created_at > '#{time}' AND hubstats_pull_requests.merged = '1'")
25
+ .joins("LEFT JOIN hubstats_pull_requests ON hubstats_pull_requests.repo_id = hubstats_repos.id AND hubstats_pull_requests.merged_at > '#{time}' AND hubstats_pull_requests.merged = '1'")
26
26
  .group("hubstats_repos.id")
27
27
  }
28
28
 
@@ -21,7 +21,7 @@ module Hubstats
21
21
  scope :pull_requests_count, lambda {|time|
22
22
  select("hubstats_users.id as user_id")
23
23
  .select("IFNULL(COUNT(DISTINCT hubstats_pull_requests.id),0) AS pull_request_count")
24
- .joins("LEFT JOIN hubstats_pull_requests ON hubstats_pull_requests.user_id = hubstats_users.id AND hubstats_pull_requests.created_at > '#{time}' AND hubstats_pull_requests.merged = '1'")
24
+ .joins("LEFT JOIN hubstats_pull_requests ON hubstats_pull_requests.user_id = hubstats_users.id AND hubstats_pull_requests.merged_at > '#{time}' AND hubstats_pull_requests.merged = '1'")
25
25
  .group("hubstats_users.id")
26
26
  }
27
27
 
@@ -1,3 +1,3 @@
1
1
  module Hubstats
2
- VERSION = "0.3.9"
2
+ VERSION = "0.3.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Hursh