how_is 14.0.0 → 15.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/how_is/version.rb +1 -1
- data/lib/how_is.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 780caeff9872fb8e036d0af805bf57131e4d6738
|
4
|
+
data.tar.gz: f7bed1cf2f9c9d88629463d2edb2fbd191f81ad1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbc13b729e2b2956a2b22ac9dc100a65c50e90ab766db7da50f46fcc86fa631b14df90a5f82980c04179ce7ebbc1f9228f617c1a809c7b3ae1ce8724d0ea786a
|
7
|
+
data.tar.gz: e834dda8575bb61b623c2c3779d840435b4b8c33d91478049b0313ade6b1ad72c600a75980d28323471d66e14bc925f211ff9c5908298e3926b7c3d93c592953
|
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,16 @@ this project adheres to [Semantic Versioning](http://semver.org).
|
|
9
9
|
|
10
10
|
(Nothing so far.)
|
11
11
|
|
12
|
+
## [v15.0.0]
|
13
|
+
|
14
|
+
This release ([snapshot](https://github.com/how-is/how_is/tree/v15.0.0))
|
15
|
+
implements `HowIs.from_json`.
|
16
|
+
|
17
|
+
### Changes
|
18
|
+
|
19
|
+
* Implemented `How_is.from_json`.
|
20
|
+
([#126](https://github.com/how-is/how_is/pull/126))
|
21
|
+
|
12
22
|
## [v14.0.0]
|
13
23
|
|
14
24
|
This release ([snapshot](https://github.com/how-is/how_is/tree/v14.0.0))
|
data/lib/how_is/version.rb
CHANGED
data/lib/how_is.rb
CHANGED
@@ -25,8 +25,9 @@ class HowIs
|
|
25
25
|
|
26
26
|
##
|
27
27
|
# Generates and returns a report as a String.
|
28
|
-
def initialize(repository, **kw_args)
|
29
|
-
|
28
|
+
def initialize(repository, analysis = nil, **kw_args)
|
29
|
+
analysis ||= HowIs.generate_analysis(repository: repository, **kw_args)
|
30
|
+
@analysis = analysis
|
30
31
|
end
|
31
32
|
|
32
33
|
def to_html
|
@@ -37,6 +38,13 @@ class HowIs
|
|
37
38
|
Report.export(@analysis, :json)
|
38
39
|
end
|
39
40
|
|
41
|
+
def self.from_json(json)
|
42
|
+
data = JSON.parse(json)
|
43
|
+
analysis = HowIs::Analysis.new(data)
|
44
|
+
|
45
|
+
self.new(data['repository'], analysis)
|
46
|
+
end
|
47
|
+
|
40
48
|
##
|
41
49
|
# Returns a list of possible export formats.
|
42
50
|
def self.supported_formats
|