bibliothecary 6.2.1 → 6.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CONTRIBUTING.md +27 -23
- data/lib/bibliothecary/analyser.rb +10 -14
- data/lib/bibliothecary/parsers/bower.rb +1 -1
- data/lib/bibliothecary/parsers/cargo.rb +2 -2
- data/lib/bibliothecary/parsers/carthage.rb +3 -3
- data/lib/bibliothecary/parsers/clojars.rb +1 -1
- data/lib/bibliothecary/parsers/cocoapods.rb +4 -4
- data/lib/bibliothecary/parsers/cpan.rb +2 -2
- data/lib/bibliothecary/parsers/cran.rb +1 -1
- data/lib/bibliothecary/parsers/dub.rb +2 -2
- data/lib/bibliothecary/parsers/elm.rb +2 -2
- data/lib/bibliothecary/parsers/go.rb +8 -8
- data/lib/bibliothecary/parsers/hackage.rb +1 -1
- data/lib/bibliothecary/parsers/haxelib.rb +1 -1
- data/lib/bibliothecary/parsers/hex.rb +2 -2
- data/lib/bibliothecary/parsers/julia.rb +1 -1
- data/lib/bibliothecary/parsers/maven.rb +3 -3
- data/lib/bibliothecary/parsers/meteor.rb +1 -1
- data/lib/bibliothecary/parsers/npm.rb +4 -4
- data/lib/bibliothecary/parsers/nuget.rb +6 -6
- data/lib/bibliothecary/parsers/packagist.rb +2 -2
- data/lib/bibliothecary/parsers/pub.rb +2 -2
- data/lib/bibliothecary/parsers/pypi.rb +4 -4
- data/lib/bibliothecary/parsers/rubygems.rb +3 -3
- data/lib/bibliothecary/parsers/shard.rb +2 -2
- data/lib/bibliothecary/parsers/swift_pm.rb +1 -1
- 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: 4beec9dee5f3223d4f87b7b1132cc069dc7e5d845492c94d7f7e32ffa865e53b
|
4
|
+
data.tar.gz: d63c47bd039937d9d9aeedac65930efd230edeb60c0107c2470a71c87bd08a0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2153d34b8a178fd5149ead8c9497d6444c89dd6d39b03bd4581aca72042d7a746020ff4f0a0da17bc7a7a9f35c8484ceb5f360a5a0a76c7611401e6f7f45344
|
7
|
+
data.tar.gz: 78e365f170d21c0f8c46e42041916950f423526e74795b75c1db3c9d86f6acb701db99e649dc0d8dcfe81471047ee6776b291088e351e95fb4701123d2fec184
|
data/.github/CONTRIBUTING.md
CHANGED
@@ -4,9 +4,11 @@ Thanks for considering contributing. These guidelines outline how to contribute
|
|
4
4
|
## Table of Contents
|
5
5
|
[What is Libraries.io all about?](#whats-librariesio-about)
|
6
6
|
|
7
|
+
[Who is Libraries.io for?](#who-is-librariesio-for)
|
8
|
+
|
7
9
|
[What should I know Before I get started?](#what-should-i-know-before-i-get-started)
|
8
10
|
* [Code of conduct](#code-of-conduct)
|
9
|
-
* [
|
11
|
+
* [Language](#language)
|
10
12
|
* [Installation and setup](#setup)
|
11
13
|
|
12
14
|
[How can I contribute?](#how-can-i-contribute)
|
@@ -35,6 +37,17 @@ By outlining our [mission and strategy](/strategy.md) we hope to give you more p
|
|
35
37
|
* Maintainability: _Helping maintainers understand more about the software they depend upon and the consumers of their software._
|
36
38
|
* Sustainability: _Supporting undervalued software by highlighting shortfalls in contribution and funneling support to them._
|
37
39
|
|
40
|
+
The first of these problems is our foccus for Libraries.io. The other two we are trying to tackle at [Tidelift](https://tidelift.com).
|
41
|
+
|
42
|
+
## Who is Libraries.io For?
|
43
|
+
Libraries.io currently caters for the needs of three distinct user groups:
|
44
|
+
|
45
|
+
* Google: _is hungry for your linked datas so she can serve you up search traffic_
|
46
|
+
* Searcher: _is a developer with a problem, she is looking for something to help solve it._
|
47
|
+
* Maintainer: _has a project that is used within and/or incorporates open dependencies. She needs to ensure her project(s) are working as expected for users._
|
48
|
+
|
49
|
+
These groups have been expanded into [personas](/personas.md) for contributors to reference.
|
50
|
+
|
38
51
|
## What Should I Know Before I Get Started?
|
39
52
|
|
40
53
|
### Code of Conduct
|
@@ -58,7 +71,7 @@ The simplest thing that you can do to help us is by filing good bug reports, so
|
|
58
71
|
#### Before Submitting a Bug Report
|
59
72
|
|
60
73
|
* Double-check that the bug is persistent. The site is still in it's infancy and sometimes artifacts may appear and disappear.
|
61
|
-
* Double-check the bug hasn't already been reported [on our issue tracker](https://github.com/
|
74
|
+
* Double-check the bug hasn't already been reported [on our issue tracker](https://github.com/search?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+org%3Alibrariesio), they *should* be labelled `bug` or `bugsnag`.
|
62
75
|
|
63
76
|
If something hasn't been raised, you can go ahead and create a new issue using [the template](/issue_template.md). If you'd like to help investigate further or fix the bug just mention it in your issue and check out our [workflow](#workflow).
|
64
77
|
|
@@ -68,7 +81,7 @@ The next simplest thing you can do to help us is by telling us how we can improv
|
|
68
81
|
|
69
82
|
#### Before Submitting an Enhancement
|
70
83
|
|
71
|
-
* Check that the enhancement is not already [in our issue tracker](https://github.com/
|
84
|
+
* Check that the enhancement is not already [in our issue tracker](https://github.com/search?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+org%3Alibrariesio), they should be labelled 'enhancement'.
|
72
85
|
|
73
86
|
If there isn't already an issue for feature then go ahead and create a new issue for it using the [template](/issue_template.md). If you'd like to work on the enhancement then just mention it in a comment and check out our [workflow](#workflow).
|
74
87
|
|
@@ -79,13 +92,12 @@ If you're into this zone then you need to understand a little more about what we
|
|
79
92
|
#### Before Suggesting a Feature
|
80
93
|
|
81
94
|
* Check that it aligns with [our strategy](strategy.md) and is specifically not in line with something we have said we will not do (for the moment this is anything to do with ranking *people*).
|
82
|
-
* Check that the feature is not already [in our issue tracker](https://github.com/
|
83
|
-
* Specifically check that it is not already a [funded commitment](https://github.com/librariesio/supporters/issues).
|
95
|
+
* Check that the feature is not already [in our issue tracker](https://github.com/search?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+org%3Alibrariesio), they should be tagged 'feature'.
|
84
96
|
|
85
97
|
If you're still thinking about that killer feature that no one else is thinking about then *please* create an issue for it using the [template](/issue_template.md).
|
86
98
|
|
87
99
|
### Your First Contribution
|
88
|
-
You're in luck! We label issues that are ideal for first time contributors with [`first-pr`](https://github.com/
|
100
|
+
You're in luck! We label issues that are ideal for first time contributors with [`first-pr`](https://github.com/search?l=&q=is%3Aopen+is%3Aissue+org%3Alibrariesio+label%3Afirst-pr&ref=advsearch&type=Issues&utf8=%E2%9C%93). For someone who wants something a little more meaty you might find an issue that needs some assistance with [`help wanted`](https://github.com/search?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+org%3Alibrariesio+label%3A%22help+wanted%22&type=Issues). Next you'll want to read our [workflow](#workflow).
|
89
101
|
|
90
102
|
### Tackling Something Meatier
|
91
103
|
|
@@ -94,7 +106,7 @@ Tickets are labeled by size, skills required and to indicate workflow. Details c
|
|
94
106
|
To get you started you might want to check out issues concerning [documentation](https://github.com/librariesio/documentation/issues/), [user experience](https://github.com/librariesio/libraries.io/labels/ux), [visual design](https://github.com/librariesio/libraries.io/issues/labels/visual%20design) or perhaps something already [awaiting help](https://github.com/librariesio/libraries.io/labels/help%20wanted). You may find the following useful:
|
95
107
|
|
96
108
|
* Our [strategy](/strategy.md) which outlines what our goals are, how we are going to achieve those goals and what we are specifically going to avoid.
|
97
|
-
*
|
109
|
+
* An [overview](/overview.md) of the components that make up the Libraries.io project and run the [https://libraries.io](https://libraries.io) site.
|
98
110
|
|
99
111
|
## How Can I Talk To Other Contributors?
|
100
112
|
|
@@ -113,9 +125,9 @@ Members are encouraged to openly discuss their work, their lives, share views an
|
|
113
125
|
[Google Hangouts](http://hangouts.google.com) is our preferred tool for video chat. We operate an [open hangout](http://bit.ly/2kWtYak) for anyone to jump into at any time to discuss issues face to face.
|
114
126
|
|
115
127
|
### Regular updates
|
116
|
-
Contributors are encouraged to share what they're working on. We do this through daily or weekly updates in the `#general` channel on Slack. Updates should take the format 'currently working on X, expecting to move onto Y, blocked on Z' where x, y and z are issues in our [issue tracker](https://github.com/
|
128
|
+
Contributors are encouraged to share what they're working on. We do this through daily or weekly updates in the `#general` channel on Slack. Updates should take the format 'currently working on X, expecting to move onto Y, blocked on Z' where x, y and z are issues in our [issue tracker](https://github.com/search?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+org%3Alibrariesio).
|
117
129
|
|
118
|
-
Additionally we host an [open hangout](http://bit.ly/2kWtYak) for any contributor to join at *5pm
|
130
|
+
Additionally we host an [open hangout](http://bit.ly/2kWtYak) for any contributor to join at *5pm BST/GMT on a Tuesday* to discuss their work, the next week's priorities and to ask questions of other contributors regarding any aspect of the project. Again this is considered a *safe space* in which *there is no such thing as a stupid question*.
|
119
131
|
|
120
132
|
### Mail
|
121
133
|
The [core team](https://github.com/orgs/librariesio/teams/core) operate a mailing list for project updates. If you'd like to subscribe you'll find a form in the footer on [Libraries.io](http://libraries.io).
|
@@ -132,24 +144,15 @@ We have a Medium account at [@librariesio](https://medium.com/@librariesio) and
|
|
132
144
|
## Who Are Libraries.io's Users?
|
133
145
|
Libraries.io focusses on the following personas:
|
134
146
|
|
135
|
-
### Google
|
147
|
+
### Google
|
136
148
|
_Is hungry for linked data so she can serve you up search traffic_
|
137
149
|
|
138
|
-
### 'Searcher'
|
139
|
-
_Is a developer with a problem, she is looking for something to help solve it._
|
140
|
-
|
141
|
-
### 'Producer'
|
142
|
-
_Has a product or products that incorporates some free/open source dependencies. She needs to ensure the product(s) are well maintained, free of vulnerabilities and licence compatible._
|
143
|
-
|
144
|
-
### 'Maintainer'
|
145
|
-
_Is a developer with a successful free/open source project. She's looking to understand more about those who use her project, attract more contributors and manage their contributions well._
|
150
|
+
### 'Searcher'
|
151
|
+
_Is a developer with a problem, she is looking for something to help solve it._
|
146
152
|
|
147
153
|
### 'Extender'
|
148
154
|
_Has her own ideas. She wants access to the raw data so that she can mash up her own service and offer it to the world._
|
149
155
|
|
150
|
-
### 'Overlord'
|
151
|
-
_Has a vast empire of people, products and projects. Some of which she publishes as open source, some are proprietary. She wants to ensure that her policies regarding the use of dependencies are adhered to and that her team are as efficient as possible._
|
152
|
-
|
153
156
|
## Workflow
|
154
157
|
In general we use [GitHub](https://help.github.com/) and [Git](https://git-scm.com/docs/gittutorial) to support our workflow. If you are unfamiliar with those tools then you should check them out until you feel you have a basic understanding of GitHub and a working understanding of Git. Specifically you should understand how forking, branching, committing, PRing and merging works.
|
155
158
|
|
@@ -169,7 +172,7 @@ We constrain labels as they are a key part of our workflow. Tickets will be labe
|
|
169
172
|
We use templates to guide contributors toward good practice in [filing bugs, requesting enhancements and features](/issue_template.md) and in [issuing pull-requests](/pull_request_template.md).
|
170
173
|
|
171
174
|
#### Commenting
|
172
|
-
If it possible to comment your contribution — for instance if you are contributing code — then do so in a way that is simple, clear, concise and lowers the level of understanding necessary for others to comprehend what comes afterward
|
175
|
+
If it is possible to comment your contribution — for instance if you are contributing code — then do so in a way that is simple, clear, concise and lowers the level of understanding necessary for others to comprehend what comes afterward. If you are contributing code it is very likely it will be rejected if it does not contain sufficient comments.
|
173
176
|
|
174
177
|
#### Committing
|
175
178
|
When committing to a branch be sure to use plain, simple language that describes the incremental changes made on the branch toward the overall goal. Avoid unnecessary complexity. Simplify whenever possible. Assume a reasonable but not comprehensive knowledge of the tools, techniques and context of your work.
|
@@ -183,9 +186,10 @@ Once a piece of work (in a branch) is complete it should be readied for review.
|
|
183
186
|
It is likely that your contributions will need to be checked by at least one member of the [core team](https://github.com/orgs/librariesio/teams/core) prior to merging. It is also incredibly likely that your contribution may need some re-work in order to be accepted. Particularly if it lacks an appropriate level of comments, tests or it is difficult to understand your commits. Please do not take offense if this is the case. We understand that contributors give their time because they want to improve the project but please understand it is another's responsibility to ensure that the project is maintainable, and good practices like these are key to ensuring that is possible.
|
184
187
|
|
185
188
|
#### Reviewing a PR
|
186
|
-
We appreciate that it may be difficult to offer constructive criticism, but it is a necessary part of ensuring the project is maintainable and successful. If it is difficult to understand something, request it is better commented. If you do not feel assured of the robustness of a contribution, request it is better tested. If it is unclear what the goal of the piece of work is and how it relates to the [strategy](/strategy.md), request a clarification in the corresponding issue. If a pull-request has no corresponding issue, decreases
|
189
|
+
We appreciate that it may be difficult to offer constructive criticism, but it is a necessary part of ensuring the project is maintainable and successful. If it is difficult to understand something, request it is better documented and/or commented. If you do not feel assured of the robustness of a contribution, request it is better tested. If it is unclear what the goal of the piece of work is and how it relates to the [strategy](/strategy.md), request a clarification in the corresponding issue. If a pull-request has no corresponding issue, decreases test coverage or otherwise decreases the quality of the project. Reject it. Otherwise, merge it.
|
187
190
|
|
188
191
|
#### Merging
|
189
192
|
As we keep the `master` branch in a permanent state of 'deployment ready' once-merged your contribution will be live on the next deployment.
|
193
|
+
|
190
194
|
#### Deploying
|
191
195
|
Any member of the [deployers](https://github.com/orgs/librariesio/teams/deployers) team are able to redeploy the site. If you require a deployment then you might find one of them in our `#general` [chat channel on Slack](slack.libraries.io).
|
@@ -51,21 +51,17 @@ module Bibliothecary
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def analyse_contents(filename, contents)
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
}
|
63
|
-
else
|
64
|
-
nil
|
65
|
-
end
|
66
|
-
rescue
|
67
|
-
nil
|
54
|
+
dependencies = parse_file(filename, contents)
|
55
|
+
if dependencies && dependencies.any?
|
56
|
+
{
|
57
|
+
platform: platform_name,
|
58
|
+
path: filename,
|
59
|
+
dependencies: dependencies,
|
60
|
+
kind: determine_kind(filename)
|
61
|
+
}
|
68
62
|
end
|
63
|
+
rescue
|
64
|
+
nil
|
69
65
|
end
|
70
66
|
|
71
67
|
def determine_kind(filename)
|
@@ -7,11 +7,11 @@ module Bibliothecary
|
|
7
7
|
|
8
8
|
def self.mapping
|
9
9
|
{
|
10
|
-
/Cargo
|
10
|
+
/(^Cargo.toml$|.*\/Cargo.toml$)/ => {
|
11
11
|
kind: 'manifest',
|
12
12
|
parser: :parse_manifest
|
13
13
|
},
|
14
|
-
/Cargo\.lock
|
14
|
+
/(^Cargo\.lock$|.*\/Cargo\.lock$)/ => {
|
15
15
|
kind: 'lockfile',
|
16
16
|
parser: :parse_lockfile
|
17
17
|
}
|
@@ -5,15 +5,15 @@ module Bibliothecary
|
|
5
5
|
|
6
6
|
def self.mapping
|
7
7
|
{
|
8
|
-
|
8
|
+
/(^Cartfile$|.*\/Cartfile$)/ => {
|
9
9
|
kind: 'manifest',
|
10
10
|
parser: :parse_cartfile
|
11
11
|
},
|
12
|
-
|
12
|
+
/(^Cartfile\.private$|.*\/Cartfile\.private$)/ => {
|
13
13
|
kind: 'manifest',
|
14
14
|
parser: :parse_cartfile_private
|
15
15
|
},
|
16
|
-
|
16
|
+
/(^Cartfile\.resolved$|.*\/Cartfile\.resolved$)/ => {
|
17
17
|
kind: 'lockfile',
|
18
18
|
parser: :parse_cartfile_resolved
|
19
19
|
}
|
@@ -11,19 +11,19 @@ module Bibliothecary
|
|
11
11
|
|
12
12
|
def self.mapping
|
13
13
|
{
|
14
|
-
|
14
|
+
/(^Podfile$|.*\/Podfile$)/ => {
|
15
15
|
kind: 'manifest',
|
16
16
|
parser: :parse_podfile
|
17
17
|
},
|
18
|
-
|
18
|
+
/(^[A-Za-z0-9_-]+\.podspec$|.*\/[A-Za-z0-9_-]+\.podspec$)/ => {
|
19
19
|
kind: 'manifest',
|
20
20
|
parser: :parse_podspec
|
21
21
|
},
|
22
|
-
|
22
|
+
/(^Podfile\.lock$|.*\/Podfile\.lock$)/ => {
|
23
23
|
kind: 'lockfile',
|
24
24
|
parser: :parse_podfile_lock
|
25
25
|
},
|
26
|
-
|
26
|
+
/(^[A-Za-z0-9_-]+\.podspec.json$|.*\/[A-Za-z0-9_-]+\.podspec.json$)/ => {
|
27
27
|
kind: 'manifest',
|
28
28
|
parser: :parse_json_manifest
|
29
29
|
}
|
@@ -8,11 +8,11 @@ module Bibliothecary
|
|
8
8
|
|
9
9
|
def self.mapping
|
10
10
|
{
|
11
|
-
|
11
|
+
/(^META\.json$|.*\/META\.json$)/i => {
|
12
12
|
kind: 'manifest',
|
13
13
|
parser: :parse_json_manifest
|
14
14
|
},
|
15
|
-
|
15
|
+
/(^META\.yml$|.*\/META.yml$)/i => {
|
16
16
|
kind: 'manifest',
|
17
17
|
parser: :parse_yaml_manifest
|
18
18
|
}
|
@@ -8,11 +8,11 @@ module Bibliothecary
|
|
8
8
|
|
9
9
|
def self.mapping
|
10
10
|
{
|
11
|
-
|
11
|
+
/(^dub\.json$|.*\/dub\.json$)/ => {
|
12
12
|
kind: 'manifest',
|
13
13
|
parser: :parse_json_runtime_manifest
|
14
14
|
},
|
15
|
-
|
15
|
+
/(^dub\.sdl$|.*\/dub\.sdl$)/ => {
|
16
16
|
kind: 'manifest',
|
17
17
|
parser: :parse_sdl_manifest
|
18
18
|
}
|
@@ -7,11 +7,11 @@ module Bibliothecary
|
|
7
7
|
|
8
8
|
def self.mapping
|
9
9
|
{
|
10
|
-
|
10
|
+
/(^elm-package\.json$|^elm_dependencies\.json$|.*\/elm-package\.json$|.*\/elm_dependencies\.json$)/ => {
|
11
11
|
kind: 'manifest',
|
12
12
|
parser: :parse_json_runtime_manifest
|
13
13
|
},
|
14
|
-
|
14
|
+
/(^elm-stuff\/exact-dependencies\.json$|.*\/elm-stuff\/exact-dependencies\.json$)/ => {
|
15
15
|
kind: 'lockfile',
|
16
16
|
parser: :parse_json_lock
|
17
17
|
}
|
@@ -10,35 +10,35 @@ module Bibliothecary
|
|
10
10
|
|
11
11
|
def self.mapping
|
12
12
|
{
|
13
|
-
|
13
|
+
/(^glide\.yaml$|.*\/glide\.yaml$)/ => {
|
14
14
|
kind: 'manifest',
|
15
15
|
parser: :parse_glide_yaml
|
16
16
|
},
|
17
|
-
|
17
|
+
/(^glide\.lock$|.*\/glide\.lock$)/ => {
|
18
18
|
kind: 'lockfile',
|
19
19
|
parser: :parse_glide_lockfile
|
20
20
|
},
|
21
|
-
|
21
|
+
/(^Godeps\/Godeps\.json$|.*\/Godeps\/Godeps\.json$)/ => {
|
22
22
|
kind: 'manifest',
|
23
23
|
parser: :parse_godep_json
|
24
24
|
},
|
25
|
-
|
25
|
+
/(^Godeps$|.*\/Godeps$)/i => {
|
26
26
|
kind: 'manifest',
|
27
27
|
parser: :parse_gpm
|
28
28
|
},
|
29
|
-
|
29
|
+
/(^vendor\/manifest$|.*\/vendor\/manifest$)/ => {
|
30
30
|
kind: 'manifest',
|
31
31
|
parser: :parse_gb_manifest
|
32
32
|
},
|
33
|
-
|
33
|
+
/(^vendor\/vendor.json$|.*\/vendor\/vendor.json$)/ => {
|
34
34
|
kind: 'manifest',
|
35
35
|
parser: :parse_govendor
|
36
36
|
},
|
37
|
-
|
37
|
+
/(^Gopkg\.toml$|.*\/Gopkg\.toml$)/ => {
|
38
38
|
kind: 'manifest',
|
39
39
|
parser: :parse_dep_toml
|
40
40
|
},
|
41
|
-
|
41
|
+
/(^Gopkg\.lock$|.*\/Gopkg\.lock$)/ => {
|
42
42
|
kind: 'lockfile',
|
43
43
|
parser: :parse_dep_lockfile
|
44
44
|
},
|
@@ -7,11 +7,11 @@ module Bibliothecary
|
|
7
7
|
|
8
8
|
def self.mapping
|
9
9
|
{
|
10
|
-
/^mix\.exs$/ => {
|
10
|
+
/^mix\.exs$|.*\/mix\.exs$/ => {
|
11
11
|
kind: 'manifest',
|
12
12
|
parser: :parse_mix
|
13
13
|
},
|
14
|
-
/^mix\.lock$/ => {
|
14
|
+
/^mix\.lock$|.*\/mix\.lock$/ => {
|
15
15
|
kind: 'lockfile',
|
16
16
|
parser: :parse_mix_lock
|
17
17
|
}
|
@@ -7,15 +7,15 @@ module Bibliothecary
|
|
7
7
|
|
8
8
|
def self.mapping
|
9
9
|
{
|
10
|
-
|
10
|
+
/^ivy\.xml$|.*\/ivy\.xml$/i => {
|
11
11
|
kind: 'manifest',
|
12
12
|
parser: :parse_ivy_manifest
|
13
13
|
},
|
14
|
-
|
14
|
+
/^pom\.xml$|.*\/pom\.xml$/i => {
|
15
15
|
kind: 'manifest',
|
16
16
|
parser: :parse_pom_manifest
|
17
17
|
},
|
18
|
-
|
18
|
+
/^build.gradle$|.*\/build.gradle$/i => {
|
19
19
|
kind: 'manifest',
|
20
20
|
parser: :parse_gradle
|
21
21
|
}
|
@@ -7,19 +7,19 @@ module Bibliothecary
|
|
7
7
|
|
8
8
|
def self.mapping
|
9
9
|
{
|
10
|
-
/^
|
10
|
+
/^package\.json$|.*\/package\.json$/ => {
|
11
11
|
kind: 'manifest',
|
12
12
|
parser: :parse_manifest
|
13
13
|
},
|
14
|
-
/^
|
14
|
+
/^npm-shrinkwrap\.json$|.*\/npm-shrinkwrap\.json$/ => {
|
15
15
|
kind: 'lockfile',
|
16
16
|
parser: :parse_shrinkwrap
|
17
17
|
},
|
18
|
-
/^
|
18
|
+
/^yarn\.lock$|.*\/yarn.lock$/ => {
|
19
19
|
kind: 'lockfile',
|
20
20
|
parser: :parse_yarn_lock
|
21
21
|
},
|
22
|
-
/^
|
22
|
+
/^package-lock\.json$|.*\/package-lock\.json$/ => {
|
23
23
|
kind: 'lockfile',
|
24
24
|
parser: :parse_package_lock
|
25
25
|
}
|
@@ -8,27 +8,27 @@ module Bibliothecary
|
|
8
8
|
|
9
9
|
def self.mapping
|
10
10
|
{
|
11
|
-
/Project\.json
|
11
|
+
/(^Project\.json$|.*\/Project\.json$)/ => {
|
12
12
|
kind: 'manifest',
|
13
13
|
parser: :parse_json_runtime_manifest
|
14
14
|
},
|
15
|
-
/Project\.lock\.json
|
15
|
+
/(^Project\.lock\.json$|.*\/Project\.lock\.json$)/ => {
|
16
16
|
kind: 'lockfile',
|
17
17
|
parser: :parse_project_lock_json
|
18
18
|
},
|
19
|
-
/packages\.config
|
19
|
+
/(^packages\.config$|.*\/packages\.config$)/ => {
|
20
20
|
kind: 'manifest',
|
21
21
|
parser: :parse_packages_config
|
22
22
|
},
|
23
|
-
|
23
|
+
/(^[A-Za-z0-9_-]+\.nuspec$|.*\/[A-Za-z0-9_-]+\.nuspec$)/ => {
|
24
24
|
kind: 'manifest',
|
25
25
|
parser: :parse_nuspec
|
26
26
|
},
|
27
|
-
|
27
|
+
/(^[A-Za-z0-9_-]+\.csproj$|.*\/[A-Za-z0-9_-]+\.csproj$)/ => {
|
28
28
|
kind: 'manifest',
|
29
29
|
parser: :parse_csproj
|
30
30
|
},
|
31
|
-
/paket\.lock
|
31
|
+
/(^paket\.lock$|.*\/paket\.lock$)/ => {
|
32
32
|
kind: 'lockfile',
|
33
33
|
parser: :parse_paket_lock
|
34
34
|
}
|
@@ -7,11 +7,11 @@ module Bibliothecary
|
|
7
7
|
|
8
8
|
def self.mapping
|
9
9
|
{
|
10
|
-
/^composer\.json$/ => {
|
10
|
+
/^composer\.json$|.*\/composer\.json$/ => {
|
11
11
|
kind: 'manifest',
|
12
12
|
parser: :parse_manifest
|
13
13
|
},
|
14
|
-
/^composer\.lock$/ => {
|
14
|
+
/^composer\.lock$|.*\/composer\.lock$/ => {
|
15
15
|
kind: 'lockfile',
|
16
16
|
parser: :parse_lockfile
|
17
17
|
}
|
@@ -7,11 +7,11 @@ module Bibliothecary
|
|
7
7
|
|
8
8
|
def self.mapping
|
9
9
|
{
|
10
|
-
/^pubspec\.yaml$/i => {
|
10
|
+
/^pubspec\.yaml$|.*\/pubspec\.yaml$/i => {
|
11
11
|
kind: 'manifest',
|
12
12
|
parser: :parse_yaml_manifest
|
13
13
|
},
|
14
|
-
/^pubspec\.lock$/i => {
|
14
|
+
/^pubspec\.lock$|.*\/pubspec\.lock$/i => {
|
15
15
|
kind: 'lockfile',
|
16
16
|
parser: :parse_yaml_lockfile
|
17
17
|
}
|
@@ -9,19 +9,19 @@ module Bibliothecary
|
|
9
9
|
|
10
10
|
def self.mapping
|
11
11
|
{
|
12
|
-
|
12
|
+
/.*require[^\/]*(\/)?[^\/]*\.(txt|pip)$/ => {
|
13
13
|
kind: 'manifest',
|
14
14
|
parser: :parse_requirements_txt
|
15
15
|
},
|
16
|
-
|
16
|
+
/^setup\.py$|.*\/setup.py$/ => {
|
17
17
|
kind: 'manifest',
|
18
18
|
parser: :parse_setup_py
|
19
19
|
},
|
20
|
-
/^Pipfile$/ => {
|
20
|
+
/^Pipfile$|.*\/Pipfile$/ => {
|
21
21
|
kind: 'manifest',
|
22
22
|
parser: :parse_pipfile
|
23
23
|
},
|
24
|
-
/^Pipfile\.lock$/ => {
|
24
|
+
/^Pipfile\.lock$|.*\/Pipfile\.lock$/ => {
|
25
25
|
kind: 'lockfile',
|
26
26
|
parser: :parse_pipfile_lock
|
27
27
|
}
|
@@ -10,15 +10,15 @@ module Bibliothecary
|
|
10
10
|
|
11
11
|
def self.mapping
|
12
12
|
{
|
13
|
-
/^Gemfile$|^gems\.rb$/ => {
|
13
|
+
/^Gemfile$|^gems\.rb$|.*\/Gemfile$|.*\/gems\.rb$/ => {
|
14
14
|
kind: 'manifest',
|
15
15
|
parser: :parse_gemfile
|
16
16
|
},
|
17
|
-
|
17
|
+
/^[A-Za-z0-9_-]+\.gemspec$|.*\/[A-Za-z0-9_-]+\.gemspec$/ => {
|
18
18
|
kind: 'manifest',
|
19
19
|
parser: :parse_gemspec
|
20
20
|
},
|
21
|
-
/^Gemfile\.lock$|^gems\.locked$/ => {
|
21
|
+
/^Gemfile\.lock$|^gems\.locked$|.*\/gems\.locked$|.*\/Gemfile\.lock$/ => {
|
22
22
|
kind: 'lockfile',
|
23
23
|
parser: :parse_gemfile_lock
|
24
24
|
}
|
@@ -7,11 +7,11 @@ module Bibliothecary
|
|
7
7
|
|
8
8
|
def self.mapping
|
9
9
|
{
|
10
|
-
/^shard\.yml$/i => {
|
10
|
+
/^shard\.yml$|.*\/shard\.yml$/i => {
|
11
11
|
kind: 'manifest',
|
12
12
|
parser: :parse_yaml_manifest
|
13
13
|
},
|
14
|
-
/^shard\.lock$/i => {
|
14
|
+
/^shard\.lock$|.*\/shard\.lock$/i => {
|
15
15
|
kind: 'lockfile',
|
16
16
|
parser: :parse_yaml_lockfile
|
17
17
|
}
|
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.
|
4
|
+
version: 6.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|