githubstats 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/Rakefile +1 -1
- data/bin/githubstats +5 -0
- data/githubstats.gemspec +5 -5
- data/lib/githubstats/data.rb +1 -2
- data/spec/githubstats_spec.rb +3 -3
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3ccae06472947c9c150cad5223f0321f6840964
|
4
|
+
data.tar.gz: 6979d5968d6dcc5222ca8c29d5a21d5aad94e609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8af7498a704f76c9db58e65c2f42e7b69e543f62363c1b5fafe1dd0b3b120e1b945f6b92a3c940d131c6a166a5669f49ab7d235a975484b34c0d6f33871f049
|
7
|
+
data.tar.gz: 92d954c75aed7d68a8713e0c1c64b4696b14fce82dd54cbce9ebec05561663817501857ada2d7f3387d2040a1d47b3e1bc8502ffe34450e50c47d5a1f154c687
|
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
data/bin/githubstats
CHANGED
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.
|
3
|
+
s.version = '0.2.12'
|
4
4
|
s.date = Time.now.strftime("%Y-%m-%d")
|
5
5
|
|
6
6
|
s.summary = 'Present Github contributions stats in a consumable format'
|
@@ -18,9 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.add_runtime_dependency 'basiccache', '~> 0.1.0'
|
19
19
|
|
20
20
|
s.add_development_dependency 'timecop', '~> 0.7.1'
|
21
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
22
|
-
s.add_development_dependency 'rake', '~> 10.3.
|
21
|
+
s.add_development_dependency 'rubocop', '~> 0.24.0'
|
22
|
+
s.add_development_dependency 'rake', '~> 10.3.2'
|
23
23
|
s.add_development_dependency 'coveralls', '~> 0.7.0'
|
24
|
-
s.add_development_dependency 'rspec', '~>
|
25
|
-
s.add_development_dependency 'fuubar', '~>
|
24
|
+
s.add_development_dependency 'rspec', '~> 3.0.0'
|
25
|
+
s.add_development_dependency 'fuubar', '~> 2.0.0.rc1'
|
26
26
|
end
|
data/lib/githubstats/data.rb
CHANGED
@@ -66,9 +66,8 @@ module GithubStats
|
|
66
66
|
# All streaks for a user
|
67
67
|
|
68
68
|
def streaks
|
69
|
-
streaks = @raw.
|
69
|
+
streaks = @raw.each_with_object(Array.new(1, [])) do |point, acc|
|
70
70
|
point.score == 0 ? acc << [] : acc.last << point
|
71
|
-
acc
|
72
71
|
end
|
73
72
|
streaks.reject! { |s| s.empty? }
|
74
73
|
streaks
|
data/spec/githubstats_spec.rb
CHANGED
@@ -60,9 +60,9 @@ describe GithubStats do
|
|
60
60
|
end
|
61
61
|
|
62
62
|
it 'truthfully handles respond_to? queries' do
|
63
|
-
expect(named_user.respond_to? :to_s).to
|
64
|
-
expect(named_user.respond_to? :today).to
|
65
|
-
expect(named_user.respond_to? :abcd).to
|
63
|
+
expect(named_user.respond_to? :to_s).to be_truthy
|
64
|
+
expect(named_user.respond_to? :today).to be_truthy
|
65
|
+
expect(named_user.respond_to? :abcd).to be_falsey
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
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.
|
4
|
+
version: 0.2.12
|
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-
|
11
|
+
date: 2014-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.24.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.
|
68
|
+
version: 0.24.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 10.3.
|
75
|
+
version: 10.3.2
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 10.3.
|
82
|
+
version: 10.3.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: coveralls
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 3.0.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 3.0.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: fuubar
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 2.0.0.rc1
|
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:
|
124
|
+
version: 2.0.0.rc1
|
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
|
@@ -189,3 +189,4 @@ test_files:
|
|
189
189
|
- spec/githubstats/data_spec.rb
|
190
190
|
- spec/githubstats_spec.rb
|
191
191
|
- spec/spec_helper.rb
|
192
|
+
has_rdoc:
|