githubstats 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/Gemfile.lock +7 -7
- data/Rakefile +1 -1
- data/githubstats.gemspec +2 -2
- data/lib/githubstats.rb +1 -1
- data/spec/githubstats_spec.rb +5 -1
- data/vendor/cache/{basiccache-0.0.26.gem → basiccache-0.0.29.gem} +0 -0
- data/vendor/cache/parser-2.1.2.gem +0 -0
- data/vendor/cache/rainbow-1.99.1.gem +0 -0
- data/vendor/cache/ruby-progressbar-1.4.0.gem +0 -0
- data/vendor/cache/timecop-0.7.1.gem +0 -0
- metadata +12 -13
- data/vendor/cache/parser-2.1.1.gem +0 -0
- data/vendor/cache/rainbow-1.1.4.gem +0 -0
- data/vendor/cache/ruby-progressbar-1.3.2.gem +0 -0
- data/vendor/cache/timecop-0.7.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a743bc599eb0817f0da1fdce3390b12bbeaf83f
|
4
|
+
data.tar.gz: 53b630cdaaa8b7398349b1b4f5adaef38fe33a61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88a6776d9ca09c2213507d8b790db2bb9662dd1e11368746201bf9d60151e4434e897a5561e6dd642f7a1e03e9b5afe85bea9850237a5b1c61813696b6fc0a65
|
7
|
+
data.tar.gz: 92359fc534ee2d420b1bae1b47228f8a0ee35c5bb2ccd75434fbacf3fd0dbe7809a59f72dd85014838fb7b5b444a2d6360ee7b9aec3d20d9bfda085b5e0986d3
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
githubstats (0.2.
|
5
|
-
basiccache
|
4
|
+
githubstats (0.2.6)
|
5
|
+
basiccache
|
6
6
|
curb
|
7
7
|
json
|
8
8
|
|
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
ast (1.1.0)
|
13
|
-
basiccache (0.0.
|
13
|
+
basiccache (0.0.29)
|
14
14
|
coveralls (0.7.0)
|
15
15
|
multi_json (~> 1.3)
|
16
16
|
rest-client
|
@@ -27,11 +27,11 @@ GEM
|
|
27
27
|
json (1.8.1)
|
28
28
|
mime-types (2.0)
|
29
29
|
multi_json (1.8.2)
|
30
|
-
parser (2.1.
|
30
|
+
parser (2.1.2)
|
31
31
|
ast (~> 1.1)
|
32
32
|
slop (~> 3.4, >= 3.4.5)
|
33
33
|
powerpack (0.0.9)
|
34
|
-
rainbow (1.1
|
34
|
+
rainbow (1.99.1)
|
35
35
|
rake (10.1.1)
|
36
36
|
rest-client (1.6.7)
|
37
37
|
mime-types (>= 1.16)
|
@@ -47,7 +47,7 @@ GEM
|
|
47
47
|
parser (~> 2.1)
|
48
48
|
powerpack (~> 0.0.6)
|
49
49
|
rainbow (>= 1.1.4)
|
50
|
-
ruby-progressbar (1.
|
50
|
+
ruby-progressbar (1.4.0)
|
51
51
|
simplecov (0.8.2)
|
52
52
|
docile (~> 1.1.0)
|
53
53
|
multi_json
|
@@ -57,7 +57,7 @@ GEM
|
|
57
57
|
term-ansicolor (1.2.2)
|
58
58
|
tins (~> 0.8)
|
59
59
|
thor (0.18.1)
|
60
|
-
timecop (0.7.
|
60
|
+
timecop (0.7.1)
|
61
61
|
tins (0.13.1)
|
62
62
|
travis-lint (1.7.0)
|
63
63
|
hashr (~> 0.0.22)
|
data/Rakefile
CHANGED
@@ -18,7 +18,7 @@ end
|
|
18
18
|
|
19
19
|
desc 'Run travis-lint on .travis.yml'
|
20
20
|
task :travislint do
|
21
|
-
|
21
|
+
print 'There may be an issue with your .travis.yml' unless system('travis-lint')
|
22
22
|
end
|
23
23
|
|
24
24
|
task default: [:spec, :travislint, :rubocop, :build, :install]
|
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.6'
|
4
4
|
s.date = Time.now.strftime("%Y-%m-%d")
|
5
5
|
|
6
6
|
s.summary = 'Present Github contributions stats in a consumable format'
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_runtime_dependency 'curb'
|
18
18
|
s.add_runtime_dependency 'json'
|
19
|
-
s.add_runtime_dependency 'basiccache'
|
19
|
+
s.add_runtime_dependency 'basiccache'
|
20
20
|
|
21
21
|
s.add_development_dependency 'timecop'
|
22
22
|
s.add_development_dependency 'rubocop'
|
data/lib/githubstats.rb
CHANGED
@@ -97,7 +97,7 @@ module GithubStats
|
|
97
97
|
|
98
98
|
def method_missing(sym, *args, &block)
|
99
99
|
load_data if @last_updated.nil?
|
100
|
-
return unless @data.respond_to? sym
|
100
|
+
return super unless @data.respond_to? sym
|
101
101
|
instance_eval "def #{sym}(*args, &block) @data.#{sym}(*args, &block) end"
|
102
102
|
send(sym, *args, &block)
|
103
103
|
end
|
data/spec/githubstats_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe GithubStats do
|
4
|
-
describe '
|
4
|
+
describe '#new' do
|
5
5
|
it 'creates a User object' do
|
6
6
|
expect(GithubStats.new).to be_an_instance_of GithubStats::User
|
7
7
|
end
|
@@ -55,6 +55,10 @@ describe GithubStats do
|
|
55
55
|
expect(named_user.scores).to be_an_instance_of Array
|
56
56
|
end
|
57
57
|
|
58
|
+
it 'raises an error for requests it cannot proxy' do
|
59
|
+
expect { named_user.abcd }.to raise_error NoMethodError
|
60
|
+
end
|
61
|
+
|
58
62
|
it 'truthfully handles respond_to? queries' do
|
59
63
|
expect(named_user.respond_to? :to_s).to be_true
|
60
64
|
expect(named_user.respond_to? :today).to be_true
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: basiccache
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: timecop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -195,7 +195,7 @@ files:
|
|
195
195
|
- spec/githubstats_spec.rb
|
196
196
|
- spec/spec_helper.rb
|
197
197
|
- vendor/cache/ast-1.1.0.gem
|
198
|
-
- vendor/cache/basiccache-0.0.
|
198
|
+
- vendor/cache/basiccache-0.0.29.gem
|
199
199
|
- vendor/cache/coveralls-0.7.0.gem
|
200
200
|
- vendor/cache/curb-0.8.5.gem
|
201
201
|
- vendor/cache/diff-lcs-1.2.5.gem
|
@@ -205,9 +205,9 @@ files:
|
|
205
205
|
- vendor/cache/json-1.8.1.gem
|
206
206
|
- vendor/cache/mime-types-2.0.gem
|
207
207
|
- vendor/cache/multi_json-1.8.2.gem
|
208
|
-
- vendor/cache/parser-2.1.
|
208
|
+
- vendor/cache/parser-2.1.2.gem
|
209
209
|
- vendor/cache/powerpack-0.0.9.gem
|
210
|
-
- vendor/cache/rainbow-1.1.
|
210
|
+
- vendor/cache/rainbow-1.99.1.gem
|
211
211
|
- vendor/cache/rake-10.1.1.gem
|
212
212
|
- vendor/cache/rest-client-1.6.7.gem
|
213
213
|
- vendor/cache/rspec-2.14.1.gem
|
@@ -215,13 +215,13 @@ files:
|
|
215
215
|
- vendor/cache/rspec-expectations-2.14.4.gem
|
216
216
|
- vendor/cache/rspec-mocks-2.14.4.gem
|
217
217
|
- vendor/cache/rubocop-0.16.0.gem
|
218
|
-
- vendor/cache/ruby-progressbar-1.
|
218
|
+
- vendor/cache/ruby-progressbar-1.4.0.gem
|
219
219
|
- vendor/cache/simplecov-0.8.2.gem
|
220
220
|
- vendor/cache/simplecov-html-0.8.0.gem
|
221
221
|
- vendor/cache/slop-3.4.7.gem
|
222
222
|
- vendor/cache/term-ansicolor-1.2.2.gem
|
223
223
|
- vendor/cache/thor-0.18.1.gem
|
224
|
-
- vendor/cache/timecop-0.7.
|
224
|
+
- vendor/cache/timecop-0.7.1.gem
|
225
225
|
- vendor/cache/tins-0.13.1.gem
|
226
226
|
- vendor/cache/travis-lint-1.7.0.gem
|
227
227
|
homepage: https://github.com/akerl/githubstats
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
version: '0'
|
245
245
|
requirements: []
|
246
246
|
rubyforge_project:
|
247
|
-
rubygems_version: 2.0.
|
247
|
+
rubygems_version: 2.0.14
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: Present Github contributions stats in a consumable format
|
@@ -258,4 +258,3 @@ test_files:
|
|
258
258
|
- spec/githubstats/data_spec.rb
|
259
259
|
- spec/githubstats_spec.rb
|
260
260
|
- spec/spec_helper.rb
|
261
|
-
has_rdoc:
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|