githubstats 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 859d87930a4885d2cc37f52f93bd9d013b73113d
4
- data.tar.gz: 47063387a9d6c29e657998684a80c2584c1dbdab
3
+ metadata.gz: d38f55901e2ca3214afcfdf9810a3d0254f035b2
4
+ data.tar.gz: 4b527bfac9c2986d3856b430f3fde02684fcea8d
5
5
  SHA512:
6
- metadata.gz: d8b1db33103370203864346ebd9ec2266624c61b8c1968f6e889a1a01e12047285527058ff6c7eed8244e468f85d4258081043d0758565f1ea72ba34482c73fd
7
- data.tar.gz: 0998ee5a4e38af7ec3fe8b2c1c89876f4aa840f30b27bfc7085de4d7218838f4bf3e984669b8f731e4ef54069259294c3b31b249671904e34804caded5b79314
6
+ metadata.gz: d4dea3e94cdedaf55af41ccf0604a8f98dbf0c6a17172af6d24115d96a8d6329a6b993a5fd4eb7f5130940b4dd174bb9c3c4e1f51ba7cfd71a14dc4908cdbbb1
7
+ data.tar.gz: 479b6275aaf7ca35a23e627f0a6054db22cc68b43468b3dd107ebc70c37a637f4429775b64c85cb53dd05076b90619d69e6bf975a33f11042dadc194b8147d47
data/githubstats.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'githubstats'
3
- s.version = '0.2.14'
3
+ s.version = '0.2.15'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = 'Present Github contributions stats in a consumable format'
@@ -14,13 +14,13 @@ Gem::Specification.new do |s|
14
14
  s.test_files = `git ls-files spec/*`.split
15
15
  s.executables = ['githubstats']
16
16
 
17
- s.add_runtime_dependency 'curb', '~> 0.8.5'
18
- s.add_runtime_dependency 'basiccache', '~> 0.2.0'
17
+ s.add_runtime_dependency 'curb', '~> 0.8.6'
18
+ s.add_runtime_dependency 'basiccache', '~> 0.2.2'
19
19
 
20
20
  s.add_development_dependency 'timecop', '~> 0.7.1'
21
- s.add_development_dependency 'rubocop', '~> 0.25.0'
21
+ s.add_development_dependency 'rubocop', '~> 0.26.0'
22
22
  s.add_development_dependency 'rake', '~> 10.3.2'
23
- s.add_development_dependency 'coveralls', '~> 0.7.0'
23
+ s.add_development_dependency 'coveralls', '~> 0.7.1'
24
24
  s.add_development_dependency 'rspec', '~> 3.0.0'
25
- s.add_development_dependency 'fuubar', '~> 2.0.0.rc1'
25
+ s.add_development_dependency 'fuubar', '~> 2.0.0'
26
26
  end
data/lib/githubstats.rb CHANGED
@@ -24,7 +24,7 @@ module GithubStats
24
24
  ##
25
25
  # Default URL for grabbing data
26
26
 
27
- DEFAULT_URL = 'https://github.com/users/%s/contributions'
27
+ DEFAULT_URL = 'https://github.com/users/%s/contributions.json'
28
28
 
29
29
  ##
30
30
  # User object
@@ -59,7 +59,7 @@ module GithubStats
59
59
  # Scores in chronological order
60
60
 
61
61
  def scores
62
- @raw.map { |x| x.score }
62
+ @raw.map(&:score)
63
63
  end
64
64
 
65
65
  ##
@@ -69,7 +69,7 @@ module GithubStats
69
69
  streaks = @raw.each_with_object(Array.new(1, [])) do |point, acc|
70
70
  point.score == 0 ? acc << [] : acc.last << point
71
71
  end
72
- streaks.reject! { |s| s.empty? }
72
+ streaks.reject!(&:empty?)
73
73
  streaks
74
74
  end
75
75
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githubstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-16 00:00:00.000000000 Z
11
+ date: 2014-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.5
19
+ version: 0.8.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.5
26
+ version: 0.8.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: basiccache
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.0
33
+ version: 0.2.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.0
40
+ version: 0.2.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: timecop
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.25.0
61
+ version: 0.26.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.25.0
68
+ version: 0.26.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.7.0
89
+ version: 0.7.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.7.0
96
+ version: 0.7.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.0.0.rc1
117
+ version: 2.0.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.0.0.rc1
124
+ version: 2.0.0
125
125
  description: Pulls the statistics from Github's user contribution chart and provides
126
126
  an interface for analyzing that data
127
127
  email: me@lesaker.org