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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5353b0fbb338eaeec8f162cdcaf3e3d5750afc2ed82d23eddf13367f92ebd39c
4
- data.tar.gz: f76ddb1b0bbcf754d65ad136a6c010f132a0b4e8cc1be0501525eafb2186beb6
3
+ metadata.gz: b4ff3342bf7c25f326b256ca8db4b5c44285bafcec2c66733d4628e829bfb0d5
4
+ data.tar.gz: 55536bfc9d528ecfc99300dca1c723dc3ce3444a83af581963940b7c268901cf
5
5
  SHA512:
6
- metadata.gz: 473789f139eb246fcb13433c2307951f6d777db0e82a71179dace7a36f9b82903a655b82aa283844da41f85fc0c1ca1cb4c7845e9ce322295acd6b7f46639012
7
- data.tar.gz: e30f25772c86b511ac390f739d6ff5e19e871a3269c272359f823233c9ab7d38ef3f537d8c7b08842016d2641ac90c4d0b2603b1d1e2503524613a91ad0b33e2
6
+ metadata.gz: ed2f8a734345a88266b2410bfa6559cda8a9fc4b43d946ee5fab89700de1ec57e45441e1e924c70a2ff6641991649a924158577cbf3de10dab00f4cff267c296
7
+ data.tar.gz: 3e5f7ac3867b68b07c25c2d2364629440a377ac21f74d9b4cfd680d3f0069aa54f64aa470ab86261546c7f572cec559ccb5937cfe292d2d1ee9139b222c8c08c
data/lib/bibliothecary.rb CHANGED
@@ -63,6 +63,8 @@ module Bibliothecary
63
63
 
64
64
  class << self
65
65
  attr_writer :configuration
66
+ alias analyze analyse
67
+ alias analyze_file analyse_file
66
68
  end
67
69
 
68
70
  def self.runner
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "6.12.0"
2
+ VERSION = "6.12.1"
3
3
  end
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2021-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb