hubstats 0.0.10 → 0.0.12

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
- NjhiOTRjNzVhMzM0NmQ4OWQ1MDU4MTg4ZmI5NTBhMzEwOGU3NjIzNA==
4
+ ZWQ5YzIyN2FmMWI4ODMwNzVhMDYzYWRjNzRmNWJmYmJjM2Y0ZGJiNA==
5
5
  data.tar.gz: !binary |-
6
- OTQ4ZDRkMTJmNDA0OGU0NThmNTVhYWEzM2VlMGNhYzdkYzNiNTcyMA==
6
+ NWFlYzM5NmE4YmUwMzQzNzRlZjgwNWZlOGY1M2E3MDNlZDY4YjI4Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZThkOGY3NmE0MzIzNzgwY2YzZTNhZDQ0OThlNzg1MjY2N2E4MTkxYWM3YzM2
10
- NzMwYTg4YTc5NDYwNDgwZDY4N2YyODJhM2IxYTA2YjI2MDUwYzNiMTQyMWVh
11
- NjFhMjU3MzBlOTA2YzFlYjE4ZTNlOTA1ZWQwOGVhNGFkMmU3YjA=
9
+ ZGVkZDk4MTcxMzdlNTBhZWIwZWViN2NkZTVjYjBkNTg5ZjlmZmFhNTQ3YWI3
10
+ N2JkMWUwNjE4NTMwYzkzMjI4ODFmODEyYjc1MDE3Njk0ZGI4YzA2N2JiODI2
11
+ Mjc4NWE3NDAyYjYxYWMwNmE0MmEzODhjMTdkM2NiYzhhYjQ0MGM=
12
12
  data.tar.gz: !binary |-
13
- YTM3YTc0NDY3ZTcwYjc3ODM3ZDcxZjAwNDY1ZGM5OThkYWFjODU3OTI1ZjEw
14
- ZjVmYmU2MjVkNjcyYmQ4YTg5YjNjODIzNzQ5Y2Q3OTMzOThhZjRkYjcxZDk5
15
- M2VmYjFiOWI2NmE3MGQ4MGFiZGQxMzc1ZGY3Zjk0ZTVmYTNiMzE=
13
+ ODEzNjE3MmJhMThmMTgwMjdiYmRmYTNlYjkwMDA3NTU4MDU3ZWZkYTcyNjAy
14
+ ZjVkYWM1MGJhM2I4NTRkOTJkYTdlODBmODE0M2IyOTBkMGUwYjZlNjIyN2Rh
15
+ ZTFhNGY4Y2I1YjA0OTgyZmMyNTIwMGNjOTQ4MzM5NDUzOTFkYjc=
@@ -26,7 +26,7 @@ module Hubstats
26
26
  @stats = {
27
27
  pull_count: Hubstats::PullRequest.belonging_to_user(@user.id).closed_since(@timespan).count(:all),
28
28
  comment_count: Hubstats::Comment.belonging_to_user(@user.id).created_since(@timespan).count(:all),
29
- review_count: @review ? reviews_count : 0,
29
+ review_count: @review ? @review.reviews_count : 0,
30
30
  avg_additions: Hubstats::PullRequest.closed_since(@timespan).belonging_to_user(@user.id).average(:additions).to_i,
31
31
  avg_deletions: Hubstats::PullRequest.closed_since(@timespan).belonging_to_user(@user.id).average(:deletions).to_i,
32
32
  net_additions: Hubstats::PullRequest.closed_since(@timespan).belonging_to_user(@user.id).sum(:additions).to_i - Hubstats::PullRequest.closed_since(@timespan).belonging_to_user(@user.id).sum(:deletions).to_i
@@ -27,6 +27,8 @@ module Hubstats
27
27
  comment[:repo_id] = payload[:repository][:id]
28
28
  comment[:pull_number] = get_pull_number(payload)
29
29
 
30
+ puts "INSPECTING COMMENT"
31
+ puts comment.inspect
30
32
  Hubstats::Comment.create_or_update(comment)
31
33
  end
32
34
 
@@ -1,3 +1,3 @@
1
1
  module Hubstats
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -0,0 +1 @@
1
+ 78961
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Hursh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-09 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -298,6 +298,7 @@ files:
298
298
  - test/dummy/tmp/cache/assets/E10/920/sprockets%2Fe2793fe8a9f6773e8d2d5bececb01b7f
299
299
  - test/dummy/tmp/cache/assets/E30/D10/sprockets%2F5be1e5ad45bde1dbd7fb9f8d720277ea
300
300
  - test/dummy/tmp/cache/assets/E41/A20/sprockets%2F23cef5db9fa9d95cf84a2c688b5fe6ab
301
+ - test/dummy/tmp/pids/server.pid
301
302
  - test/functional/hubstats/splash_controller_test.rb
302
303
  - test/hubstats_test.rb
303
304
  - test/integration/navigation_test.rb
@@ -427,6 +428,7 @@ test_files:
427
428
  - test/dummy/tmp/cache/assets/E10/920/sprockets%2Fe2793fe8a9f6773e8d2d5bececb01b7f
428
429
  - test/dummy/tmp/cache/assets/E30/D10/sprockets%2F5be1e5ad45bde1dbd7fb9f8d720277ea
429
430
  - test/dummy/tmp/cache/assets/E41/A20/sprockets%2F23cef5db9fa9d95cf84a2c688b5fe6ab
431
+ - test/dummy/tmp/pids/server.pid
430
432
  - test/functional/hubstats/splash_controller_test.rb
431
433
  - test/hubstats_test.rb
432
434
  - test/integration/navigation_test.rb