spdx 2.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6b710b626383daa5b897071127070f74863afc3149e016dde2944cfbb4459ee0
4
+ data.tar.gz: fd93bc57de2be909c8129a5893860a7ed01f52b3a661a268a356eeb2ef8d9d18
5
+ SHA512:
6
+ metadata.gz: 51e16e88b99e72293efa83ad7d2615f67b3fff62a04e835fcb661b1ec80dc83080c1b3d75844a203735dd9a76240bb1e80f87146f637eefb491bb07ab48c672d
7
+ data.tar.gz: 94e08d7d2d0fed47528b39ae22f3a9e0db5eaa0775f97d32627d9c66f5d31aa44c951ccbd652367f2c407cafe016cfdb744756900fcebe5d004a9614cd09f483
@@ -0,0 +1,195 @@
1
+ ## Contributing to Libraries.io :heart:
2
+ Thanks for considering contributing. These guidelines outline how to contribute to the [Libraries.io](http://github.com/librariesio) project.
3
+
4
+ ## Table of Contents
5
+ [What is Libraries.io all about?](#whats-librariesio-about)
6
+
7
+ [Who is Libraries.io for?](#who-is-librariesio-for)
8
+
9
+ [What should I know Before I get started?](#what-should-i-know-before-i-get-started)
10
+ * [Code of conduct](#code-of-conduct)
11
+ * [Language](#language)
12
+ * [Installation and setup](#setup)
13
+
14
+ [How can I contribute?](#how-can-i-contribute)
15
+ * [Reporting bugs](#reporting-bugs)
16
+ * [Suggesting enhancements](#suggesting-enhancements)
17
+ * [Suggesting a new feature](#suggesting-new-features)
18
+ * [Your first contribution](#your-first-contribution)
19
+ * [Tackling something meatier](#tackling-something-meatier)
20
+
21
+ [How can I talk to other contributors?](#how-can-i-talk-to-other-contributors)
22
+ * [Chat](#chat)
23
+ * [Video](#video)
24
+ * [Social media](#twitter)
25
+
26
+ [Who Are Libraries.io's Users?](#who-are-librariesios-users)
27
+
28
+ [Our workflow](#workflow)
29
+
30
+
31
+ ## What's Libraries.io About?
32
+ _Our goal is to raise the quality of all software._
33
+
34
+ By outlining our [mission and strategy](/strategy.md) we hope to give you more power to make decisions and determine how best to spend your time. Specifically we tackle three distinct problems:
35
+
36
+ * Discovery: _Helping developers make faster, more informed decisions about the software that they use._
37
+ * Maintainability: _Helping maintainers understand more about the software they depend upon and the consumers of their software._
38
+ * Sustainability: _Supporting undervalued software by highlighting shortfalls in contribution and funneling support to them._
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
+
51
+ ## What Should I Know Before I Get Started?
52
+
53
+ ### Code of Conduct
54
+ Libraries.io is an open and inclusive [community of people](https://github.com/orgs/librariesio/people) working together. We expect contributors to abide by our [contributor code of conduct](CODE_OF_CONDUCT.md) which basically say 'be excellent to each other'. Please report unacceptable behavior to conduct@libraries.io
55
+
56
+ ### Language
57
+ We communicate predominately in English. Contributions to the project should be made with English as the first language. We are happy for members of the community to communicate in a language other than English in chat, email and video but be aware that this might be considered exclusive by other members of the community.
58
+
59
+ ### Documentation
60
+ Documentation for the project as a whole is available at [docs.libraries.io](https://docs.libraries.io). These pages are generated from the [documentation](https://github.com/librariesio/documentation) repo. Documentation that needs to be in every repo is replicated in [required-files](https://github.com/librariesio/required-files) (currently limited to [GitHub templates](https://github.com/blog/2111-issue-and-pull-request-templates)). Otherwise documentation will be specific to that repo. For example the main [Libraries.io](https://github.com/librariesio/libraries.io) `README.md` contains information about installing and running the main rails application.
61
+
62
+ ### Setup
63
+ If you wish to make contributions to Libraries.io then you'll need a local version of the site to test. You can find instructions to install the correct Ruby version, Postgres, and to set up the database in our [README](https://github.com/librariesio/libraries.io/blob/master/README.md#getting-started).
64
+
65
+ ## How Can I Contribute?
66
+
67
+ ### Reporting Bugs
68
+
69
+ The simplest thing that you can do to help us is by filing good bug reports, so here we go:
70
+
71
+ #### Before Submitting a Bug Report
72
+
73
+ * Double-check that the bug is persistent. The site is still in it's infancy and sometimes artifacts may appear and disappear.
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`.
75
+
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).
77
+
78
+ ### Suggesting Enhancements
79
+
80
+ The next simplest thing you can do to help us is by telling us how we can improve the features we already support, here we go:
81
+
82
+ #### Before Submitting an Enhancement
83
+
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'.
85
+
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).
87
+
88
+ ### Suggesting New Features
89
+
90
+ If you're into this zone then you need to understand a little more about what we're trying to achieve:
91
+
92
+ #### Before Suggesting a Feature
93
+
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*).
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'.
96
+
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).
98
+
99
+ ### Your First Contribution
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).
101
+
102
+ ### Tackling Something Meatier
103
+
104
+ Tickets are labeled by size, skills required and to indicate workflow. Details can be found in our [labelling policy](/labelling.md).
105
+
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:
107
+
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.
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.
110
+
111
+ ## How Can I Talk To Other Contributors?
112
+
113
+ ### Chat
114
+ We use [Slack](http://slack.io) for chat. There's an open invitation available to anyone who wishes to join the conversation at [http://slack.libraries.io](http://slack.libraries.io).
115
+
116
+ We try to use the following channels accordingly:
117
+
118
+ * `#general` channel is used for general, water cooler-type conversation, contributor updates and issue discussion.
119
+ * `#events` is used to share and discuss events that may be of interest to or attended by members of the community
120
+ * `#activity` contains notifications from the various platforms that we use to keep the Libraries.io project turning. Including notifications from GitHub, Twitter and our servers.
121
+
122
+ Members are encouraged to openly discuss their work, their lives, share views and ask for help using chat. It should be considered a *safe space* in which there is *no such thing as a stupid question*. Conversely no one contributor should ever be expected to have read something said in a chat. If someone should know something then it should be written down as an issue and/or documented in an obvious place for others to find.
123
+
124
+ ### Video
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.
126
+
127
+ ### Regular updates
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).
129
+
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*.
131
+
132
+ ### Mail
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).
134
+
135
+ ### Twitter
136
+ We have an account on Twitter at [@librariesio](http://twitter.com/librariesio). This is predominately used to retweet news, events and musings by contributors rather than as a direct method of communication. Contributors are encouraged to use @librariesio in a tweet when talking about the project, so that we may retweet if appropriate. The account is moderated and protected by the [core team](https://github.com/orgs/librariesio/teams/core).
137
+
138
+ ### Facebook
139
+ We have a Facebook page at [@libraries.io](https://www.facebook.com/libraries.io). Again this is predominantly used to gather and reflect news, events and musings by contributors rather than as a direct method of communication. Contributors are encouraged to reference Libraries.io in a post when talking about the project, so that we may reflect this if appropriate. Again the account is moderated and protected by the [core team](https://github.com/orgs/librariesio/teams/core).
140
+
141
+ ### Medium
142
+ We have a Medium account at [@librariesio](https://medium.com/@librariesio) and once again it is used to reflect news, events and musings by contributors rather than a direct method of communication. Contributors are encouraged to reference @librariesio in a post when talking about the project, so that we may recommend it if appropriate. Again the account is moderated and protected by the [core team](https://github.com/orgs/librariesio/teams/core).
143
+
144
+ ## Who Are Libraries.io's Users?
145
+ Libraries.io focusses on the following personas:
146
+
147
+ ### Google
148
+ _Is hungry for linked data so she can serve you up search traffic_
149
+
150
+ ### 'Searcher'
151
+ _Is a developer with a problem, she is looking for something to help solve it._
152
+
153
+ ### 'Extender'
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._
155
+
156
+ ## Workflow
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.
158
+
159
+ #### Forking
160
+ We prefer that contributors fork the project in order to contribute.
161
+
162
+ #### Branching
163
+ We *try* to use principles of [GitHub-flow](https://lucamezzalira.com/2014/03/10/git-flow-vs-github-flow/) in our branching model. That is the `master` branch will always be deployable to the live site, and that every branch from that will be used to add a feature, fix a bug, improve something or otherwise represent an atomic unit of work.
164
+
165
+ #### Ticketing
166
+ We *try* to create an issue for everything. That is any bug, feature or enhancement that is worth an open, focussed and documented discussion.
167
+
168
+ #### Labelling
169
+ We constrain labels as they are a key part of our workflow. Tickets will be labeled according to our [labelling policy](/labelling.md).
170
+
171
+ #### Templates
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).
173
+
174
+ #### Commenting
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.
176
+
177
+ #### Committing
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.
179
+
180
+ #### Testing
181
+ When adding or fixing functionality, tests should be added to help reduce future regressions and breakage. All tests are ran automatically when new commits are pushed to a branch. Pull requests with broken/missing tests are not likely to be merged.
182
+
183
+ #### Submitting for Review
184
+ Once a piece of work (in a branch) is complete it should be readied for review. This is your last chance to ensure that your contribution is [properly tested](#testing). If you are contributing code it is likely your contribution will be rejected if it would lower the test-coverage. Once this is done you can submit a pull-request following the [template](/pull_request_template.md).
185
+
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.
187
+
188
+ #### Reviewing a PR
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.
190
+
191
+ #### Merging
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
+
194
+ #### Deploying
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).
@@ -0,0 +1,18 @@
1
+ Thanks for taking the time to raise an issue. This template should guide you through the process of submitting a bug, enhancement or feature request. Please erase any part of this template that is not relevant to your issue.
2
+
3
+ ## Bugs
4
+ Before submitting a bug report:
5
+
6
+ - [ ] Double-check that the bug is persistent,
7
+ - [ ] Double-check the bug hasn't already been reported [on our issue tracker](https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+org%3Alibrariesio), they *should* be labelled `bug` or `bugsnag`.
8
+
9
+ If you have completed those steps then please replace this section with a description of the steps taken to recreate the bug, the expected behavior and the observed behavior.
10
+
11
+ ## Enhancements and Features
12
+
13
+ Before submitting an enhancement or feature request:
14
+
15
+ - [ ] Check that the enhancement is not already [in our issue tracker](https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+org%3Alibrariesio), they should be labelled 'enhancement'.,
16
+ - [ ] For large feature requests, check that your request aligns with our strategy http://docs.libraries.io/strategy.
17
+
18
+ If you have complete the above step then please replace this section with a description of your proposed enhancement or feature, the motivation for it, an approach and any alternative approaches considered, and whether you are willing and able to create a pull request for it. Note that we may close this issue if it's not something we're planning on working on.
@@ -0,0 +1,10 @@
1
+ Thanks taking the time to contribute. This template should help guide you through the process of creating a pull request for review. Please erase any part of this template that is not relevant to your pull request:
2
+
3
+
4
+ - [ ] Have you followed the guidelines for [contributors](http://docs.libraries.io/contributorshandbook)?
5
+ - [ ] Have you checked to ensure there aren't other open pull requests on the repository for a similar change?
6
+ - [ ] Is there a corresponding ticket for your pull request?
7
+ - [ ] Have you written new tests for your changes?
8
+ - [ ] Have you successfully run the project with your changes locally?
9
+
10
+ If so then please replace this section with a link to the ticket(s) it addressed, an explanation of your change and why you think we should include it. Thanks again!
@@ -0,0 +1,10 @@
1
+ # Libraries.io Support
2
+
3
+ If you're looking for support for Libraries.io there are a lot of options, check out:
4
+
5
+ * Documentation — https://docs.libraries.io
6
+ * Email — support@libraries.io
7
+ * Twitter — https://twitter.com/librariesio
8
+ * Chat — https://slack.libraries.io
9
+
10
+ On Discuss and in the Libraries.io Slack team, there are a bunch of helpful community members that should be willing to point you in the right direction.
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,57 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Metrics/BlockLength:
5
+ Max: 100
6
+ Exclude:
7
+ - spec/**/*_spec.rb
8
+ - spec/factories.rb
9
+
10
+ Lint/AmbiguousBlockAssociation:
11
+ Exclude:
12
+ - "spec/**/*"
13
+
14
+ # metrics and documentation. code is complex as it needs to be,
15
+ # and docs shouldn't be required. add them when needed.
16
+ Metrics/AbcSize:
17
+ Enabled: false
18
+ Metrics/LineLength:
19
+ Enabled: false
20
+ Metrics/ClassLength:
21
+ Enabled: false
22
+ Metrics/MethodLength:
23
+ Enabled: false
24
+ Metrics/ModuleLength:
25
+ Enabled: false
26
+ Metrics/CyclomaticComplexity:
27
+ Enabled: false
28
+ Metrics/PerceivedComplexity:
29
+ Enabled: false
30
+ Metrics/ParameterLists:
31
+ Max: 7
32
+ Style/Documentation:
33
+ Enabled: false
34
+
35
+ # differences from standard ruby style guide.
36
+ Style/RegexpLiteral:
37
+ Enabled: false
38
+ Style/StringLiterals:
39
+ EnforcedStyle: double_quotes
40
+ Style/TrailingCommaInArrayLiteral:
41
+ EnforcedStyleForMultiline: comma
42
+ Style/TrailingCommaInHashLiteral:
43
+ EnforcedStyleForMultiline: comma
44
+ Layout/FirstArrayElementIndentation:
45
+ Enabled: false
46
+ Layout/MultilineMethodCallIndentation:
47
+ EnforcedStyle: indented
48
+ Style/NumericPredicate:
49
+ Enabled: false
50
+
51
+ # things we need to have discussions about
52
+ Style/GuardClause:
53
+ Enabled: false
54
+ Style/ClassAndModuleChildren:
55
+ Enabled: false
56
+ Style/NumericLiterals:
57
+ MinDigits: 6
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.5.0
4
+ cache: bundler
5
+ sudo: false
6
+ before_install:
7
+ - gem update --system
8
+ notifications:
9
+ slack:
10
+ secure: Peh2ABalhVqVbHXxpEEIyjdp2zbtUFaL0rS7ZFq5+yly70nbsIGrx4vYWzz1Vfa6QQEFUAlchuOyF3Xou/ug8sM1FSTwWfvtKbF4pJV+z3RnaXxbVWGEGQX7FYVPKM3Eg2T2zOL9fncl6yoEEkb4nAHm6iKmBqrT6hCHzQq0N94=
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at andrew@libraries.io. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in spdx.gemspec
6
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2016 Andrew Nesbitt
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,39 @@
1
+ # [Spdx](http://libraries.io/rubygems/spdx) - A SPDX license normalizer
2
+
3
+ This gem allows you to find the closest match using [FuzzyMatch](https://github.com/seamusabshere/fuzzy_match) in the [spdx-licenses](https://github.com/domcleal/spdx-licenses) list for similar (not necessarily exact) license names.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'spdx'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install spdx
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ Spdx.find('Apache 2') # => <SpdxLicenses::License:0x007fa3a2b462c8 @id="Apache-2.0", @name="Apache License 2.0", @osi_approved=true>
25
+ ```
26
+
27
+ ## Testing
28
+
29
+ Run the tests with:
30
+
31
+ $ bundle exec rake
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it ( https://github.com/librariesio/spdx/fork )
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create a new Pull Request