githubstats 3.0.1 → 3.0.2

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
  SHA256:
3
- metadata.gz: 7ddc0f03d81a36bc6f159480109e7392f7dcdf4594625e22eb1e261a64ba8bd6
4
- data.tar.gz: 85178d5a77b0fbae8d3f288ee9f3b900bba06220d9ba84e7ebe2796255c3e3b1
3
+ metadata.gz: cbc52fb43a7ea21f49af181e9fceac0aaa61953ee1d2891029ba0678cdc50e38
4
+ data.tar.gz: 91cb1ba5ca68c13dd6b451ed20c1bf1d484fa52633b76c4ab8ef11c045bc98ce
5
5
  SHA512:
6
- metadata.gz: 67bc33def2f39498652161c3c435ec1aee8998bbd80c14ebd18c82163ce668bb75e4967766c2575dafbedda2545fcc40dbdf47c32f895d73835207b63fcb60ab
7
- data.tar.gz: 8dd90f0da46226fcb8acd032b379034254b08108bc2b09f5f6ec588783504896239af8d7e49efd9add0fc0b2da686a47899e9422e6dc69216de53d8a86e112a4
6
+ metadata.gz: 3ff5c12de669ffdc4ef973d7301a513364a56ac41e923bf41e7d77a029c63240709363de30ca43d684d9fd13ebd72e67222c7e16a45d62e9dd1497dc9332909e
7
+ data.tar.gz: 0ca40694b1d8f656697128a9b2b49a3f3a796eb68e4226e9e8bc57cb83b46cdf70edfc5d0562950d9f114f76058a2be789f4f9a90746cb6eb64d5cde3586587a
@@ -1,3 +1,4 @@
1
- 2.5.1
2
- 2.4.4
3
- 2.3.7
1
+ 2.6.1
2
+ 2.5.3
3
+ 2.4.5
4
+ 2.3.8
@@ -1,11 +1,11 @@
1
1
  my_slug = 'akerl/githubstats'
2
2
 
3
- Prospectus.extra_dep('file', 'prospectus_circleci')
3
+ Prospectus.extra_dep('file', 'prospectus_travis')
4
4
  Prospectus.extra_dep('file', 'prospectus_gems')
5
5
 
6
6
  item do
7
7
  noop
8
8
 
9
9
  extend ProspectusGems::Gemspec.new
10
- extend ProspectusCircleci::Build.new(my_slug)
10
+ extend ProspectusTravis::Build.new(my_slug)
11
11
  end
@@ -0,0 +1,10 @@
1
+ dist: xenial
2
+ install:
3
+ - for i in $(cat .circle-ruby) ; do rvm install $i || exit 1 ; done
4
+ - for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done
5
+ script:
6
+ - for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done
7
+ notifications:
8
+ email: false
9
+ slack:
10
+ secure: PQOCIfuacnmF9MMGmZseYwGn8HfxmL1m7qqftoWhDkkp8oKLKVaSfoMPGAADWQsWLBl4JQC+z/lRH8I2gXChQjZhKZBz15bFH6mwFBI82DXidVNVxt27g/uR3RMT8GfGw8CkgW8DsSpNF+E4pBPOKONFLhj9Y0xdpAID7slrPwd6wDdpi4oDXvnfTO4ZfUZbB3OGT0nnzcH4gCiKXKijv4MRzHTVpvbwe+P3TOKkTY0V21B++YSBpX1tIYt6cLOHaDFQT4DScwFajtvynpwWf3PCRMCATganpyEqEpkiUp+dSg1h2WjYilAwVHkLnNaESUFKeTLQGIXpKMj4+3yHlIPPG6M2MawgwhSDuYy1IAE/81+Y06V9Sn9PPnICsjV1+W0LxnCms13t1JcVWrzVOtlzyCInKr8ENAX6Ku6SSQaouuqYghm1maG8ZtNhqyByqGctov7noLUH6T+lHS8ODr22cLg6f0lzVn5d13/aha9OvTZV7DN6uVCfwpbAL9S+u1TNtjrDhJQFohSe7X+jb+KxN7sLZR5Z5RKwM8sx6Tadf3rrvVRF5+jQxpb2IgjakV2QgxmVDrZDu3XXWbRUYMlGbmR4EEwDaKPJsjKh8KIu6GS6rhrQHiwvwDH6FQcXdeQsieLaVTBoKnE1slYvRMVTMZxFkAbI2dIt+H06c7c=
data/README.md CHANGED
@@ -2,8 +2,7 @@ GithubStats
2
2
  =========
3
3
 
4
4
  [![Gem Version](https://img.shields.io/gem/v/githubstats.svg)](https://rubygems.org/gems/githubstats)
5
- [![Dependency Status](https://img.shields.io/gemnasium/akerl/githubstats.svg)](https://gemnasium.com/akerl/githubstats)
6
- [![Build Status](https://img.shields.io/circleci/project/akerl/githubstats/master.svg)](https://circleci.com/gh/akerl/githubstats)
5
+ [![Build Status](https://img.shields.io/travis/com/akerl/githubstats.svg)](https://travis-ci.com/akerl/githubstats)
7
6
  [![Coverage Status](https://img.shields.io/codecov/c/github/akerl/githubstats.svg)](https://codecov.io/github/akerl/githubstats)
8
7
  [![Code Quality](https://img.shields.io/codacy/d25d2521df3f4a6b8369edd419438d97.svg)](https://www.codacy.com/app/akerl/githubstats)
9
8
  [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
@@ -20,13 +20,13 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_runtime_dependency 'basiccache', '~> 1.0.0'
22
22
  s.add_runtime_dependency 'curb', '~> 0.9.0'
23
- s.add_runtime_dependency 'nokogiri', '~> 1.8.0'
23
+ s.add_runtime_dependency 'nokogiri', '~> 1.10.8'
24
24
 
25
25
  s.add_development_dependency 'codecov', '~> 0.1.1'
26
- s.add_development_dependency 'fuubar', '~> 2.3.0'
27
- s.add_development_dependency 'goodcop', '~> 0.5.0'
28
- s.add_development_dependency 'rake', '~> 12.3.0'
29
- s.add_development_dependency 'rspec', '~> 3.8.0'
30
- s.add_development_dependency 'rubocop', '~> 0.58.0'
26
+ s.add_development_dependency 'fuubar', '~> 2.5.0'
27
+ s.add_development_dependency 'goodcop', '~> 0.8.0'
28
+ s.add_development_dependency 'rake', '~> 13.0.0'
29
+ s.add_development_dependency 'rspec', '~> 3.9.0'
30
+ s.add_development_dependency 'rubocop', '~> 0.76.0'
31
31
  s.add_development_dependency 'timecop', '~> 0.9.0'
32
32
  end
@@ -34,7 +34,7 @@ module GithubStats
34
34
  ##
35
35
  # Default URL for grabbing data
36
36
 
37
- DEFAULT_URL = "#{DEFAULT_HOST}/users/%s/contributions".freeze
37
+ DEFAULT_URL = "#{DEFAULT_HOST}/users/%s/contributions"
38
38
 
39
39
  ##
40
40
  # User object
@@ -180,7 +180,7 @@ module GithubStats
180
180
  # Return the quartile of a given score
181
181
 
182
182
  def quartile(score)
183
- return nil if score < 0 || score > max.score
183
+ return nil if score.negative? || score > max.score
184
184
  quartile_boundaries.count { |bound| score > bound }
185
185
  end
186
186
 
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Define the version
5
5
  module GithubStats
6
- VERSION = '3.0.1'.freeze
6
+ VERSION = '3.0.2'
7
7
  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: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-19 00:00:00.000000000 Z
11
+ date: 2020-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: basiccache
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.8.0
47
+ version: 1.10.8
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: 1.8.0
54
+ version: 1.10.8
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: codecov
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,70 +72,70 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.3.0
75
+ version: 2.5.0
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: 2.3.0
82
+ version: 2.5.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: goodcop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.5.0
89
+ version: 0.8.0
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.5.0
96
+ version: 0.8.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 12.3.0
103
+ version: 13.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: 12.3.0
110
+ version: 13.0.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 3.8.0
117
+ version: 3.9.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: 3.8.0
124
+ version: 3.9.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.58.0
131
+ version: 0.76.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.58.0
138
+ version: 0.76.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: timecop
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -163,13 +163,13 @@ files:
163
163
  - ".prospectus"
164
164
  - ".rspec"
165
165
  - ".rubocop.yml"
166
+ - ".travis.yml"
166
167
  - CHANGELOG.md
167
168
  - Gemfile
168
169
  - LICENSE
169
170
  - README.md
170
171
  - Rakefile
171
172
  - bin/githubstats
172
- - circle.yml
173
173
  - githubstats.gemspec
174
174
  - lib/githubstats.rb
175
175
  - lib/githubstats/data.rb
@@ -189,7 +189,7 @@ homepage: https://github.com/akerl/githubstats
189
189
  licenses:
190
190
  - MIT
191
191
  metadata: {}
192
- post_install_message:
192
+ post_install_message:
193
193
  rdoc_options: []
194
194
  require_paths:
195
195
  - lib
@@ -204,9 +204,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubyforge_project:
208
- rubygems_version: 2.7.6
209
- signing_key:
207
+ rubygems_version: 3.1.2
208
+ signing_key:
210
209
  specification_version: 4
211
210
  summary: Present Github contributions stats in a consumable format
212
211
  test_files:
data/circle.yml DELETED
@@ -1,7 +0,0 @@
1
- dependencies:
2
- override:
3
- - 'for i in $(cat .circle-ruby) ; do rvm-exec $i gem update --system --no-doc || exit 1 ; done'
4
- - 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done'
5
- test:
6
- override:
7
- - 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done'