how_is 19.0.0 → 20.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.codeclimate.yml +1 -0
- data/.rubocop.yml +16 -0
- data/CHANGELOG.md +30 -3
- data/Gemfile +0 -6
- data/README.md +5 -2
- data/exe/how_is +7 -2
- data/fixtures/vcr_cassettes/how-is-example-empty-repository.yml +446 -727
- data/fixtures/vcr_cassettes/how-is-example-repository.yml +508 -727
- data/fixtures/vcr_cassettes/how-is-from-config-frontmatter.yml +43522 -1218
- data/fixtures/vcr_cassettes/how-is-how-is-travis-api-repos-builds.yml +287 -0
- data/fixtures/vcr_cassettes/how-is-with-config-file.yml +44307 -23286
- data/fixtures/vcr_cassettes/how_is_contributions_additions_count.yml +307 -0
- data/fixtures/vcr_cassettes/how_is_contributions_all_contributors.yml +81 -0
- data/fixtures/vcr_cassettes/how_is_contributions_changed_files.yml +307 -0
- data/fixtures/vcr_cassettes/how_is_contributions_changes.yml +307 -0
- data/fixtures/vcr_cassettes/how_is_contributions_commits.yml +307 -0
- data/fixtures/vcr_cassettes/how_is_contributions_compare_url.yml +74 -0
- data/fixtures/vcr_cassettes/how_is_contributions_deletions_count.yml +307 -0
- data/fixtures/vcr_cassettes/how_is_contributions_new_contributors.yml +234 -0
- data/fixtures/vcr_cassettes/how_is_contributions_summary.yml +378 -0
- data/fixtures/vcr_cassettes/how_is_contributions_summary_2.yml +378 -0
- data/fixtures/vcr_cassettes/how_is_fetcher_call.yml +572 -0
- data/how_is.gemspec +3 -2
- data/lib/how_is/cli.rb +4 -6
- data/lib/how_is/frontmatter.rb +46 -0
- data/lib/how_is/report.rb +59 -63
- data/lib/how_is/sources/github/contributions.rb +164 -0
- data/lib/how_is/sources/github/issues.rb +142 -0
- data/lib/how_is/sources/github/pulls.rb +20 -0
- data/lib/how_is/sources/github.rb +11 -0
- data/lib/how_is/sources/github_helpers.rb +191 -0
- data/lib/how_is/sources/travis.rb +34 -0
- data/lib/how_is/sources.rb +9 -0
- data/lib/how_is/templates/issues_or_pulls_partial.html_template +7 -0
- data/lib/how_is/templates/report.html_template +27 -0
- data/lib/how_is/templates/report_partial.html_template +12 -0
- data/lib/how_is/version.rb +2 -2
- data/lib/how_is.rb +59 -158
- metadata +42 -16
- data/lib/how_is/analyzer.rb +0 -222
- data/lib/how_is/builds.rb +0 -36
- data/lib/how_is/contributions.rb +0 -156
- data/lib/how_is/fetcher.rb +0 -77
- data/lib/how_is/pulse.rb +0 -47
- data/lib/how_is/report/base_report.rb +0 -148
- data/lib/how_is/report/html.rb +0 -120
- data/lib/how_is/report/json.rb +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1d75996b62af9db5ef72debe8d09152ee9af73d4f5118c7668fedd590a498b82
|
4
|
+
data.tar.gz: d688356614ca883571069f59713ae829908b04a019f9631500f0d96d4ffb0056
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a6650239af0dbb5589e1b0e2ac3734ded1a37179dd679f733e5f59b8d89a683c8d4c2ebbca08998892ab06f574cc1bae2a10b44f17a934fba1ce710019cc360
|
7
|
+
data.tar.gz: 206de4e53c5adf6b5959897b48e232cabe6a2d2ec9f4745504aaa71a93d9404675e80dd0de71df837c1fae35cc7bbff3bf6260bd873d15f5ef2258b9247ac205
|
data/.codeclimate.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -73,6 +73,14 @@ Style/AsciiIdentifiers:
|
|
73
73
|
Style/BlockDelimiters:
|
74
74
|
Enabled: false
|
75
75
|
|
76
|
+
# There's more nuance around this than RuboCop seems capable of.
|
77
|
+
Style/BracesAroundHashParameters:
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
# Don't force use of Time or Date; DateTime is okay.
|
81
|
+
Style/DateTime:
|
82
|
+
Enabled: false
|
83
|
+
|
76
84
|
# Unicode is good, mkay?
|
77
85
|
Style/Encoding:
|
78
86
|
Enabled: true
|
@@ -114,6 +122,14 @@ Style/FrozenStringLiteralComment:
|
|
114
122
|
Style/HashSyntax:
|
115
123
|
EnforcedStyle: no_mixed_keys
|
116
124
|
|
125
|
+
Layout/IndentHash:
|
126
|
+
Enabled: true
|
127
|
+
EnforcedStyle: consistent
|
128
|
+
|
129
|
+
Layout/IndentArray:
|
130
|
+
Enabled: true
|
131
|
+
EnforcedStyle: consistent
|
132
|
+
|
117
133
|
# I deplore assignments in conditions and never want them in any codebase
|
118
134
|
# I have direct control over.
|
119
135
|
Style/ParenthesesAroundCondition:
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,33 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [
|
4
|
-
|
3
|
+
## [20.0.0](https://github.com/how-is/how_is/tree/v20.0.0) (2017-12-21)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/how-is/how_is/compare/v19.0.0...v20.0.0)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- Figure out why CodeClimate is unhappy [\#200](https://github.com/how-is/how_is/issues/200)
|
10
|
+
- Refactor + improve tests for Contributions class [\#194](https://github.com/how-is/how_is/issues/194)
|
11
|
+
- Analysis/Analyzer refactor. [\#142](https://github.com/how-is/how_is/issues/142)
|
12
|
+
- Make internal-only methods private [\#138](https://github.com/how-is/how_is/issues/138)
|
13
|
+
- Export cleanup [\#133](https://github.com/how-is/how_is/issues/133)
|
14
|
+
- Use APIs instead of scraping /pulse [\#122](https://github.com/how-is/how_is/issues/122)
|
15
|
+
- Rake task for clearing VCR cache [\#95](https://github.com/how-is/how_is/issues/95)
|
16
|
+
|
17
|
+
**Merged pull requests:**
|
18
|
+
|
19
|
+
- Partial rewrite [\#215](https://github.com/how-is/how_is/pull/215) ([duckinator](https://github.com/duckinator))
|
20
|
+
- switch from Tessellator::Fetcher to Okay::HTTP. [\#214](https://github.com/how-is/how_is/pull/214) ([duckinator](https://github.com/duckinator))
|
21
|
+
- Remove XPulse class. [\#213](https://github.com/how-is/how_is/pull/213) ([duckinator](https://github.com/duckinator))
|
22
|
+
- Switch from Pulse to Contributions [\#212](https://github.com/how-is/how_is/pull/212) ([duckinator](https://github.com/duckinator))
|
23
|
+
- Gem: github\_api 0.18.1 [\#211](https://github.com/how-is/how_is/pull/211) ([olleolleolle](https://github.com/olleolleolle))
|
24
|
+
- Add tests for Contributions class [\#210](https://github.com/how-is/how_is/pull/210) ([duckinator](https://github.com/duckinator))
|
25
|
+
- Refactor [\#209](https://github.com/how-is/how_is/pull/209) ([duckinator](https://github.com/duckinator))
|
26
|
+
- use stable version of pry since there's no longer a conflict with slop [\#208](https://github.com/how-is/how_is/pull/208) ([duckinator](https://github.com/duckinator))
|
27
|
+
- add icons to README for Waffle.io, Travis, Code Climate, RubyGems, Gemnasium. [\#207](https://github.com/how-is/how_is/pull/207) ([duckinator](https://github.com/duckinator))
|
28
|
+
|
29
|
+
## [v19.0.0](https://github.com/how-is/how_is/tree/v19.0.0) (2017-09-16)
|
30
|
+
[Full Changelog](https://github.com/how-is/how_is/compare/v18.1.0...v19.0.0)
|
5
31
|
|
6
32
|
**Closed issues:**
|
7
33
|
|
@@ -11,6 +37,7 @@
|
|
11
37
|
|
12
38
|
**Merged pull requests:**
|
13
39
|
|
40
|
+
- bump version to 19.0.0; update changelog [\#206](https://github.com/how-is/how_is/pull/206) ([duckinator](https://github.com/duckinator))
|
14
41
|
- Move away from slop [\#205](https://github.com/how-is/how_is/pull/205) ([duckinator](https://github.com/duckinator))
|
15
42
|
- add .codeclimate.yml [\#204](https://github.com/how-is/how_is/pull/204) ([duckinator](https://github.com/duckinator))
|
16
43
|
- quick refactor of spec/capture\_warnings. [\#203](https://github.com/how-is/how_is/pull/203) ([duckinator](https://github.com/duckinator))
|
@@ -366,4 +393,4 @@
|
|
366
393
|
|
367
394
|
|
368
395
|
|
369
|
-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
396
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Gemfile
CHANGED
@@ -9,9 +9,3 @@ ruby "~> 2.3"
|
|
9
9
|
|
10
10
|
# Specify your gem's dependencies in how_is.gemspec
|
11
11
|
gemspec
|
12
|
-
|
13
|
-
# TODO: move Pry back to gemspec, once a version is released that does not rely
|
14
|
-
# on an ancient version of Slop. Reason: gemspecs can not handle git deps.
|
15
|
-
group :development do
|
16
|
-
gem "pry", git: "https://github.com/pry/pry.git"
|
17
|
-
end
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
[![
|
2
|
-
[![
|
1
|
+
[![Waffle.io](https://img.shields.io/waffle/label/how-is/how_is/in%20progress.svg)](https://waffle.io/how-is/how_is)
|
2
|
+
[![Travis](https://img.shields.io/travis/how-is/how_is.svg)](https://travis-ci.org/how-is/how_is)
|
3
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/how-is/how_is.svg)](https://codeclimate.com/github/how-is/how_is)
|
4
|
+
[![Gem](https://img.shields.io/gem/v/how_is.svg)](https://rubygems.org/gems/how_is)
|
5
|
+
[![Gemnasium](https://img.shields.io/gemnasium/how-is/how_is.svg)](https://gemnasium.com/github.com/how-is/how_is)
|
3
6
|
|
4
7
|
# How is [your repo]?
|
5
8
|
|
data/exe/how_is
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
require "how_is"
|
6
6
|
require "how_is/cli"
|
7
|
+
require "date"
|
7
8
|
|
8
9
|
begin
|
9
10
|
result = HowIs::CLI.parse(ARGV)
|
@@ -23,9 +24,13 @@ elsif options[:version]
|
|
23
24
|
exit
|
24
25
|
end
|
25
26
|
|
27
|
+
# TODO: Once retroactive issue reports are done, allow exe/how_is to be passed
|
28
|
+
# other dates.
|
29
|
+
today = DateTime.now.strftime("%Y-%m-%d")
|
30
|
+
|
26
31
|
begin
|
27
32
|
if options[:config]
|
28
|
-
reports = HowIs.from_config(YAML.load_file(options[:config]))
|
33
|
+
reports = HowIs.from_config(YAML.load_file(options[:config]), today)
|
29
34
|
|
30
35
|
reports.each { |file, report| HowIs::Report.save_report(file, report) }
|
31
36
|
else
|
@@ -34,7 +39,7 @@ begin
|
|
34
39
|
json_report = File.open(options[:from]).read
|
35
40
|
HowIs.from_json(json_report)
|
36
41
|
else
|
37
|
-
HowIs.new(options[:repository])
|
42
|
+
HowIs.new(options[:repository], today)
|
38
43
|
end
|
39
44
|
|
40
45
|
HowIs::Report.save_report(
|