bibliothecary 6.12.0 → 6.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bibliothecary.rb +2 -0
- data/lib/bibliothecary/analyser.rb +4 -0
- data/lib/bibliothecary/runner.rb +2 -0
- data/lib/bibliothecary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4ff3342bf7c25f326b256ca8db4b5c44285bafcec2c66733d4628e829bfb0d5
|
4
|
+
data.tar.gz: 55536bfc9d528ecfc99300dca1c723dc3ce3444a83af581963940b7c268901cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed2f8a734345a88266b2410bfa6559cda8a9fc4b43d946ee5fab89700de1ec57e45441e1e924c70a2ff6641991649a924158577cbf3de10dab00f4cff267c296
|
7
|
+
data.tar.gz: 3e5f7ac3867b68b07c25c2d2364629440a377ac21f74d9b4cfd680d3f0069aa54f64aa470ab86261546c7f572cec559ccb5937cfe292d2d1ee9139b222c8c08c
|
data/lib/bibliothecary.rb
CHANGED
@@ -101,6 +101,7 @@ module Bibliothecary
|
|
101
101
|
def analyse(folder_path, file_list)
|
102
102
|
analyse_file_info(file_list.map { |full_path| FileInfo.new(folder_path, full_path) })
|
103
103
|
end
|
104
|
+
alias analyze analyse
|
104
105
|
|
105
106
|
def analyse_file_info(file_info_list)
|
106
107
|
matching_info = file_info_list
|
@@ -111,10 +112,12 @@ module Bibliothecary
|
|
111
112
|
.merge(related_paths: related_paths(info, matching_info))
|
112
113
|
end
|
113
114
|
end
|
115
|
+
alias analyze_file_info analyse_file_info
|
114
116
|
|
115
117
|
def analyse_contents(filename, contents)
|
116
118
|
analyse_contents_from_info(FileInfo.new(nil, filename, contents))
|
117
119
|
end
|
120
|
+
alias analyze_contents analyse_contents
|
118
121
|
|
119
122
|
def analyse_contents_from_info(info)
|
120
123
|
# If your Parser needs to return multiple responses for one file, please override this method
|
@@ -126,6 +129,7 @@ module Bibliothecary
|
|
126
129
|
rescue Bibliothecary::FileParsingError => e
|
127
130
|
Bibliothecary::Analyser::create_error_analysis(platform_name, info.relative_path, kind, e.message)
|
128
131
|
end
|
132
|
+
alias analyze_contents_from_info analyse_contents_from_info
|
129
133
|
|
130
134
|
# calling this with contents=nil can produce less-informed
|
131
135
|
# results, but kept for back compat
|
data/lib/bibliothecary/runner.rb
CHANGED
@@ -26,6 +26,7 @@ module Bibliothecary
|
|
26
26
|
|
27
27
|
analyses
|
28
28
|
end
|
29
|
+
alias analyze analyse
|
29
30
|
|
30
31
|
# deprecated; use load_file_info_list.
|
31
32
|
def load_file_list(path)
|
@@ -94,6 +95,7 @@ module Bibliothecary
|
|
94
95
|
pm.analyse_contents(file_path, contents)
|
95
96
|
end.flatten.uniq.compact
|
96
97
|
end
|
98
|
+
alias analyze_file analyse_file
|
97
99
|
|
98
100
|
# this skips manifests sometimes because it doesn't look at file
|
99
101
|
# contents and can't establish from only regexes that the thing
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibliothecary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.12.
|
4
|
+
version: 6.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|