how_is 13.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/README.md +7 -12
- data/exe/how_is +0 -1
- data/fixtures/vcr_cassettes/how-is-from-config-frontmatter.yml +1299 -0
- data/lib/how_is/analyzer.rb +2 -0
- data/lib/how_is/cli.rb +88 -5
- data/lib/how_is/fetcher.rb +15 -7
- data/lib/how_is/report/base_report.rb +1 -10
- data/lib/how_is/report/html.rb +0 -4
- data/lib/how_is/report.rb +0 -1
- data/lib/how_is/version.rb +1 -1
- metadata +2 -2
- data/lib/how_is/cli/parser.rb +0 -94
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92f7a27a7c77dee45b47a1f7c072caa9fe1254f4
|
4
|
+
data.tar.gz: d06011cb83a0677ded7e352f4858d3c3f78a33cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bd834db9ec70f3872fe17eb71d1421e55b81d72f4034cad5317d5da035448df72015fac0963e0862a631f600833d86561d2716d320948c955a444dda6a13438
|
7
|
+
data.tar.gz: d8eb09c869da7db70bacf8447dcd84759fe836ae6cf4f9e6108af2f2d51b38f3c3079d3aeb4791be5d4df9bd4e9263d14da7f009b6105ce508e2d0f5db39fd54
|
data/CHANGELOG.md
CHANGED
@@ -9,12 +9,24 @@ this project adheres to [Semantic Versioning](http://semver.org).
|
|
9
9
|
|
10
10
|
(Nothing so far.)
|
11
11
|
|
12
|
+
## [v14.0.0]
|
13
|
+
|
14
|
+
This release ([snapshot](https://github.com/how-is/how_is/tree/v14.0.0))
|
15
|
+
made JSON reports include Pulse data, thus making `HowIs.from_json()`
|
16
|
+
not make any network requests at all.
|
17
|
+
|
18
|
+
### Changes
|
19
|
+
|
20
|
+
* Remove dead code. ([#123](https://github.com/how-is/how_is/pull/123))
|
21
|
+
* Include Pulse data in JSON reports.
|
22
|
+
([#125](https://github.com/how-is/how_is/pull/125))
|
23
|
+
|
12
24
|
## [v13.0.0]
|
13
25
|
|
14
26
|
This release ([snapshot](https://github.com/how-is/how_is/tree/v13.0.0))
|
15
27
|
largely focused on an API redesign.
|
16
28
|
|
17
|
-
Pull requests for this release can be [
|
29
|
+
Pull requests for this release can be [viewed on
|
18
30
|
GitHub](https://github.com/how-is/how_is/pulls?utf8=&q=is%3Apr%20created%3A2016-12-12..2017-02-09).
|
19
31
|
|
20
32
|
### Changed
|
data/README.md
CHANGED
@@ -78,23 +78,18 @@ Every value under `reports` is a format string, so you can do e.g.
|
|
78
78
|
### Ruby API
|
79
79
|
|
80
80
|
```ruby
|
81
|
-
# Generate
|
82
|
-
#
|
83
|
-
HowIs.
|
84
|
-
|
85
|
-
# Generate a report for <orgname>/<reponame>, specifying
|
86
|
-
# a report file of blah-report.html.
|
87
|
-
HowIs.generate_report(repository: '<orgname>/<reponame>', report:
|
88
|
-
'blah-report.html')
|
81
|
+
# Generate an HTML report for <orgname>/<reponame>, and save it to
|
82
|
+
# report.html
|
83
|
+
report = HowIs.new('<orgname>/<reponame>').to_html
|
84
|
+
File.open('report.html', 'w') { |f| f.puts report }
|
89
85
|
|
90
86
|
# Generate a report from a config file located at ./how_is.yml.
|
91
87
|
# Example config file: https://github.com/how-is/how-is-rubygems/blob/gh-pages/how_is.yml
|
92
|
-
|
93
|
-
HowIs
|
88
|
+
require 'yaml'
|
89
|
+
HowIs.from_config_file(YAML.load_file('how_is.yml'))
|
94
90
|
|
95
91
|
# Generate a report from a config Hash.
|
96
|
-
|
97
|
-
HowIs::CLI.new.from_config({
|
92
|
+
HowIs.from_config({
|
98
93
|
repository: '<orgname>/<reponame>',
|
99
94
|
reports: {
|
100
95
|
html: {
|