semantic_range 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/semantic_range.rb +6 -0
- data/lib/semantic_range/version.rb +1 -1
- metadata +8 -23
- data/.github/CONTRIBUTING.md +0 -195
- data/.github/ISSUE_TEMPLATE.md +0 -18
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -10
- data/.github/SUPPORT.md +0 -10
- data/.gitignore +0 -10
- data/.rspec +0 -2
- data/.ruby-version +0 -1
- data/.travis.yml +0 -9
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -5
- data/Guardfile +0 -87
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/semantic_range.gemspec +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccde626c1a653687b8994fa8f79db2862c424e785e5f9947081481eadce45a21
|
4
|
+
data.tar.gz: d73b3387a5955017d9133f41a9ab844fb647805d206f1b5221e82ace813c68fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df892019675f0bd4c9b0d9e38dbc373201de7b7ee1a5e40f0aa0f6339d7915021476b01569aaa6e2ab4a903fa45c5fc6fa31449877a221be90bf155b6b2e7527
|
7
|
+
data.tar.gz: ca56913a665bc5b9adca0f5497331c11c190149ca1f6349fdc370f4fe4405cced341a19c95b991ded906fc6edd123022dbfd88aabbfef94f2637bde85c49410b
|
data/README.md
CHANGED
@@ -24,6 +24,7 @@ Or install it yourself as:
|
|
24
24
|
SemanticRange.valid('1.2.3') # '1.2.3'
|
25
25
|
SemanticRange.valid('a.b.c') # nil
|
26
26
|
SemanticRange.clean(' =v1.2.3 ') # '1.2.3'
|
27
|
+
SemanticRange.filter(['0.9.0', '1.3.0', '1.5.0', '2.0.5'], '1.3.0 || <1.0.0 || >2.0.0') # ['0.9.0', '1.3.0', '2.0.5']
|
27
28
|
SemanticRange.satisfies?('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') # true
|
28
29
|
SemanticRange.gt?('1.2.3', '9.8.7') # false
|
29
30
|
SemanticRange.lt?('1.2.3', '9.8.7') # true
|
data/lib/semantic_range.rb
CHANGED
@@ -153,6 +153,12 @@ module SemanticRange
|
|
153
153
|
Range.new(range, loose, platform).test(version)
|
154
154
|
end
|
155
155
|
|
156
|
+
def self.filter(versions, range, loose = false, platform = nil)
|
157
|
+
return [] if !valid_range(range, loose, platform)
|
158
|
+
|
159
|
+
versions.filter { |v| SemanticRange.satisfies?(v, range, loose, platform) }
|
160
|
+
end
|
161
|
+
|
156
162
|
def self.max_satisfying(versions, range, loose = false, platform = nil)
|
157
163
|
versions.select { |version|
|
158
164
|
satisfies?(version, range, loose, platform)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic_range
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02
|
11
|
+
date: 2020-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,40 +52,25 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.4'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email:
|
57
57
|
- andrewnez@gmail.com
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- ".github/CONTRIBUTING.md"
|
63
|
-
- ".github/ISSUE_TEMPLATE.md"
|
64
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
65
|
-
- ".github/SUPPORT.md"
|
66
|
-
- ".gitignore"
|
67
|
-
- ".rspec"
|
68
|
-
- ".ruby-version"
|
69
|
-
- ".travis.yml"
|
70
|
-
- CODE_OF_CONDUCT.md
|
71
|
-
- Gemfile
|
72
|
-
- Guardfile
|
73
62
|
- LICENSE.txt
|
74
63
|
- README.md
|
75
|
-
- Rakefile
|
76
|
-
- bin/console
|
77
|
-
- bin/setup
|
78
64
|
- lib/semantic_range.rb
|
79
65
|
- lib/semantic_range/comparator.rb
|
80
66
|
- lib/semantic_range/pre_release.rb
|
81
67
|
- lib/semantic_range/range.rb
|
82
68
|
- lib/semantic_range/version.rb
|
83
|
-
- semantic_range.gemspec
|
84
69
|
homepage: https://libraries.io/github/librariesio/semantic_range
|
85
70
|
licenses:
|
86
71
|
- MIT
|
87
72
|
metadata: {}
|
88
|
-
post_install_message:
|
73
|
+
post_install_message:
|
89
74
|
rdoc_options: []
|
90
75
|
require_paths:
|
91
76
|
- lib
|
@@ -100,8 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
85
|
- !ruby/object:Gem::Version
|
101
86
|
version: '0'
|
102
87
|
requirements: []
|
103
|
-
rubygems_version: 3.0.
|
104
|
-
signing_key:
|
88
|
+
rubygems_version: 3.0.4
|
89
|
+
signing_key:
|
105
90
|
specification_version: 4
|
106
91
|
summary: node-semver rewritten in ruby, for comparison and inclusion of semantic versions
|
107
92
|
and ranges
|
data/.github/CONTRIBUTING.md
DELETED
@@ -1,195 +0,0 @@
|
|
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).
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,18 +0,0 @@
|
|
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.
|
@@ -1,10 +0,0 @@
|
|
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!
|
data/.github/SUPPORT.md
DELETED
@@ -1,10 +0,0 @@
|
|
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.
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.6.2
|
data/.travis.yml
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.6.2
|
4
|
-
before_install: gem install bundler -v 1.13.6
|
5
|
-
cache: bundler
|
6
|
-
sudo: false
|
7
|
-
notifications:
|
8
|
-
slack:
|
9
|
-
secure: lT8nj3FTS1JncJ3+lBrztipeeUCT02AWDT+yqNRrYFcHni4nKpxjSMVuT7VJvWzyiCHo5bqqoHMZLrcoA71Qoe6uaO4Gcpe6Go6Rtg2HAh+F2gpEkGCCqKSrhckbgj6gtrBncm4JsbUHoyu0n75LNUTf7+CUZE88mr0cqNkaKUeD6tPvocAt14YN+w3HhtHsnldjv+I8WW2Uai+u3JOlB2Pvje7i8GGQMgjftmbFzcAGZKryKX+VUPqt0OgzeBXop6N+9X3U5Gf0kPSu5JMlsBXlb/bt+z95bw3BAkUdiTXl/HK/qcgLE0nA6e2NZ0H7SyiVl1XrANh/Gy2LrkSv38yqCpnGnAP3mr20DuBK1cytCc+1bHzGwnXz96QWbv2SUGIcWDbW+NLXVDqwQTNYVdjKLErPL08D1DWjSMHMbq7bf8QuNhtoCDs/1Peh1Ju7um5oADesbr+z5Wf5dxiA6RXbUfYGYuKxN2pkbZimHW+Tn2EMEJ4FvQxnpNF6d+l4VlTkhzUEr0b2GZ4hKTrfCMfRJjN2vjuLQjVv48V3FIMRBuYgoT6X9x3E/1oIfTvkZAXhCWPe8RbOKY7DWW1IugCaN2mUqOSl16buYOMzSl60B/iqv8TBnjXYzLeskrAE3Zj5jY6E+DZRNhhOJXczbwyqxWC7QSDh6YHr7QcCrpE=
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
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
DELETED
data/Guardfile
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
## Uncomment and set this to only include directories you want to watch
|
5
|
-
# directories %w(app lib config test spec features) \
|
6
|
-
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
7
|
-
|
8
|
-
## Note: if you are using the `directories` clause above and you are not
|
9
|
-
## watching the project directory ('.'), then you will want to move
|
10
|
-
## the Guardfile to a watched dir and symlink it back, e.g.
|
11
|
-
#
|
12
|
-
# $ mkdir config
|
13
|
-
# $ mv Guardfile config/
|
14
|
-
# $ ln -s config/Guardfile .
|
15
|
-
#
|
16
|
-
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
17
|
-
|
18
|
-
guard :bundler do
|
19
|
-
require 'guard/bundler'
|
20
|
-
require 'guard/bundler/verify'
|
21
|
-
helper = Guard::Bundler::Verify.new
|
22
|
-
|
23
|
-
files = ['Gemfile']
|
24
|
-
files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
|
25
|
-
|
26
|
-
# Assume files are symlinked from somewhere
|
27
|
-
files.each { |file| watch(helper.real_path(file)) }
|
28
|
-
end
|
29
|
-
|
30
|
-
guard 'migrate' do
|
31
|
-
watch(%r{^db/migrate/(\d+).+\.rb})
|
32
|
-
watch('db/seeds.rb')
|
33
|
-
end
|
34
|
-
|
35
|
-
# Note: The cmd option is now required due to the increasing number of ways
|
36
|
-
# rspec may be run, below are examples of the most common uses.
|
37
|
-
# * bundler: 'bundle exec rspec'
|
38
|
-
# * bundler binstubs: 'bin/rspec'
|
39
|
-
# * spring: 'bin/rspec' (This will use spring if running and you have
|
40
|
-
# installed the spring binstubs per the docs)
|
41
|
-
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
42
|
-
# * 'just' rspec: 'rspec'
|
43
|
-
|
44
|
-
guard :rspec, cmd: "bundle exec rspec" do
|
45
|
-
require "guard/rspec/dsl"
|
46
|
-
dsl = Guard::RSpec::Dsl.new(self)
|
47
|
-
|
48
|
-
# Feel free to open issues for suggestions and improvements
|
49
|
-
|
50
|
-
# RSpec files
|
51
|
-
rspec = dsl.rspec
|
52
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
53
|
-
watch(rspec.spec_support) { rspec.spec_dir }
|
54
|
-
watch(rspec.spec_files)
|
55
|
-
|
56
|
-
# Ruby files
|
57
|
-
ruby = dsl.ruby
|
58
|
-
dsl.watch_spec_files_for(ruby.lib_files)
|
59
|
-
|
60
|
-
# Rails files
|
61
|
-
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
62
|
-
dsl.watch_spec_files_for(rails.app_files)
|
63
|
-
dsl.watch_spec_files_for(rails.views)
|
64
|
-
|
65
|
-
watch(rails.controllers) do |m|
|
66
|
-
[
|
67
|
-
rspec.spec.("routing/#{m[1]}_routing"),
|
68
|
-
rspec.spec.("controllers/#{m[1]}_controller"),
|
69
|
-
rspec.spec.("acceptance/#{m[1]}")
|
70
|
-
]
|
71
|
-
end
|
72
|
-
|
73
|
-
# Rails config changes
|
74
|
-
watch(rails.spec_helper) { rspec.spec_dir }
|
75
|
-
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
76
|
-
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
77
|
-
|
78
|
-
# Capybara features specs
|
79
|
-
watch(rails.view_dirs) { |m| rspec.spec.("features/#{m[1]}") }
|
80
|
-
watch(rails.layouts) { |m| rspec.spec.("features/#{m[1]}") }
|
81
|
-
|
82
|
-
# Turnip features and steps
|
83
|
-
watch(%r{^spec/acceptance/(.+)\.feature$})
|
84
|
-
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
85
|
-
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
86
|
-
end
|
87
|
-
end
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "semantic_range"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/semantic_range.gemspec
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'semantic_range/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "semantic_range"
|
8
|
-
spec.version = SemanticRange::VERSION
|
9
|
-
spec.authors = ["Andrew Nesbitt"]
|
10
|
-
spec.email = ["andrewnez@gmail.com"]
|
11
|
-
|
12
|
-
spec.summary = %q{node-semver rewritten in ruby, for comparison and inclusion of semantic versions and ranges}
|
13
|
-
spec.homepage = "https://libraries.io/github/librariesio/semantic_range"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
-
spec.bindir = "exe"
|
18
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
-
spec.require_paths = ["lib"]
|
20
|
-
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.11"
|
22
|
-
spec.add_development_dependency "rake", "~> 12.0"
|
23
|
-
spec.add_development_dependency "rspec", "~> 3.4"
|
24
|
-
end
|