how_is 13.0.0 → 14.0.0

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
  SHA1:
3
- metadata.gz: 7e016f1b7f3e89bf467f6ecedf72a5381ddb1efa
4
- data.tar.gz: b5a681c62fac3083352a7b998d8dc37e74edd3bd
3
+ metadata.gz: 92f7a27a7c77dee45b47a1f7c072caa9fe1254f4
4
+ data.tar.gz: d06011cb83a0677ded7e352f4858d3c3f78a33cf
5
5
  SHA512:
6
- metadata.gz: 0a99668e69ed19eacd4e430be5571600fdf55589a5a7261120ae03d8d3af43aa95b445f7385f7f3a4be443df3f3173ec79b639ab9c798944e8a1671d67595150
7
- data.tar.gz: 37c55d12b41138e5fd73aa6e8fb0070de3a8999805a096836575140d70548cc73861cbe35847681aced55c34af0c4e86c384256f89fe6fe67381a90d363e2483
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 [viewe on
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 a report for <orgname>/<reponame>, defaulting to
82
- # the report file being report.html.
83
- HowIs.generate_report(repository: '<orgname>/<reponame>')
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
- # NOTE: This is going to be moved outside of HowIs::CLI at some point.
93
- HowIs::CLI.new.from_config_file('how_is.yml')
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
- # NOTE: This is going to be moved outside of HowIs::CLI at some point.
97
- HowIs::CLI.new.from_config({
92
+ HowIs.from_config({
98
93
  repository: '<orgname>/<reponame>',
99
94
  reports: {
100
95
  html: {
data/exe/how_is CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "how_is"
4
4
  require "how_is/cli"
5
- require "how_is/cli/parser"
6
5
 
7
6
  begin
8
7
  parser = HowIs::CLI::Parser.new