hubstats 0.3.9 → 0.3.10
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 +8 -8
- data/CHANGELOG.markdown +9 -0
- data/app/models/hubstats/repo.rb +1 -1
- data/app/models/hubstats/user.rb +1 -1
- data/lib/hubstats/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MDdiODg1ZmU4OGJkMTM1MzBjNWNiZWNlNmZjYTYxODk2OGFmZjNkZA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MWFjNmQ1ZGQwZjRjMWYwNDNmM2E4ZGZlNzNlZTE4MTlhZTRhMGM3YQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NDkyMjc5ZDIyOGZlNDk3NjY4N2Q3MjliMmY3YmFmOTNlODNiMGRmNGRmZWNl
|
|
10
|
+
NDA4MzdjZjYzNzFjMmQ2ZDdiY2E1YTE2ZGU5NmY5NDY1NTE3ZDgzNzliZTE5
|
|
11
|
+
MDlhYmE4NTdmMTc5ZWYwMTg1YmZiNjI0NDYzZGY0ZWI5NDNiMTY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
data/app/models/hubstats/repo.rb
CHANGED
|
@@ -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.
|
|
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
|
|
data/app/models/hubstats/user.rb
CHANGED
|
@@ -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.
|
|
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
|
|
data/lib/hubstats/version.rb
CHANGED