p-mongo-git 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ac10e8c403b0765e105cd889b2b74d8001067439e09108d92856501ce6dc0453
4
+ data.tar.gz: 41f289207c76f26208fb72d9a39e958e32d086c65560ef81f7536d841c221943
5
+ SHA512:
6
+ metadata.gz: 4476ee5c0f716c96f591554933097f7aada9b1ed074b7a26d36c064fec2ae09e436bf3d76366e5fc2c3428349c45c1ac9d42ece1288b5fb8a3756b60a2aca626
7
+ data.tar.gz: 2958b59196610800b7c575bfde6fded147ff55eea08f6064bb6d581f782b6db7732f3cce66e8ca2fde74d708a4db19232610f53f717a4849a00238251acb54d6
data/.github/stale.yml ADDED
@@ -0,0 +1,25 @@
1
+ # Probot: Stale
2
+ # https://github.com/probot/stale
3
+
4
+ # Number of days of inactivity before an issue becomes stale
5
+ daysUntilStale: 60
6
+
7
+ # Number of days of inactivity before a stale issue is closed
8
+ # Set to false to disable. If disabled, issues still need to be closed
9
+ # manually, but will remain marked as stale.
10
+ daysUntilClose: false
11
+
12
+ # Issues with these labels will never be considered stale
13
+ exemptLabels:
14
+ - pinned
15
+ - security
16
+
17
+ # Label to use when marking an issue as stale
18
+ staleLabel: stale
19
+
20
+ # Comment to post when marking an issue as stale. Set to `false` to disable
21
+ markComment: >
22
+ A friendly reminder that this issue had no activity for 60 days.
23
+
24
+ # Comment to post when closing a stale issue. Set to `false` to disable
25
+ closeComment: false
@@ -0,0 +1,45 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+
9
+ jobs:
10
+ continuous_integration_build:
11
+ continue-on-error: true
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ ruby: [2.3, 2.7]
16
+ operating-system: [ubuntu-latest]
17
+ include:
18
+ - ruby: head
19
+ operating-system: ubuntu-latest
20
+ - ruby: truffleruby-head
21
+ operating-system: ubuntu-latest
22
+ - ruby: 2.7
23
+ operating-system: windows-latest
24
+ - ruby: jruby-head
25
+ operating-system: windows-latest
26
+
27
+ name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}
28
+
29
+ runs-on: ${{ matrix.operating-system }}
30
+
31
+ steps:
32
+ - name: Checkout Code
33
+ uses: actions/checkout@v2
34
+
35
+ - name: Setup Ruby
36
+ uses: ruby/setup-ruby@v1
37
+ with:
38
+ ruby-version: ${{ matrix.ruby }}
39
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
40
+
41
+ - name: Run Build
42
+ run: bundle exec rake default
43
+
44
+ - name: Test Gem
45
+ run: bundle exec rake test:gem
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ *.gem
2
+ *.kpf
3
+ *.sw?
4
+ .DS_Store
5
+ coverage
6
+ doc
7
+ .yardoc
8
+ pkg
9
+ rdoc
10
+ Gemfile.lock
data/.yardopts ADDED
@@ -0,0 +1,11 @@
1
+ --default-return=''
2
+ --hide-void-return
3
+ --markup-provider=redcarpet
4
+ --markup=markdown
5
+ --fail-on-warning
6
+ -
7
+ README.md
8
+ CHANGELOG.md
9
+ CONTRIBUTING.md
10
+ RELEASING.md
11
+ MAINTAINERS.md
data/CHANGELOG.md ADDED
@@ -0,0 +1,119 @@
1
+ <!--
2
+ # @markup markdown
3
+ # @title Change Log
4
+ -->
5
+
6
+ # Change Log
7
+
8
+ ## 1.8.1
9
+
10
+ See https://github.com/ruby-git/ruby-git/releases/tag/v1.8.1
11
+
12
+ ## 1.8.0
13
+
14
+ See https://github.com/ruby-git/ruby-git/releases/tag/v1.8.0
15
+
16
+ ## 1.7.0
17
+
18
+ See https://github.com/ruby-git/ruby-git/releases/tag/v1.7.0
19
+
20
+ ## 1.6.0
21
+
22
+ See https://github.com/ruby-git/ruby-git/releases/tag/v1.6.0
23
+
24
+ ## 1.6.0.pre1
25
+
26
+ See https://github.com/ruby-git/ruby-git/releases/tag/v1.6.0.pre1
27
+
28
+ ## 1.5.0
29
+
30
+ See https://github.com/ruby-git/ruby-git/releases/tag/v1.5.0
31
+
32
+ ## 1.4.0
33
+
34
+ See https://github.com/ruby-git/ruby-git/releases/tag/v1.4.0
35
+
36
+ ## 1.3.0
37
+
38
+ * Dropping Ruby 1.8.x support
39
+
40
+ ## 1.2.10
41
+
42
+ * Adding Git::Diff.name_status
43
+ * Checking and fixing encoding on commands output to prevent encoding errors afterwards
44
+
45
+ ## 1.2.9
46
+
47
+ * Adding Git.configure (to configure the git env)
48
+ * Adding Git.ls_remote [Git.ls_remote(repo_path_or_url='.')]
49
+ * Adding Git.describe [repo.describe(objectish, opts)]
50
+ * Adding Git.show [repo.show(objectish=nil, path=nil)]
51
+ * Fixing Git::Diff to support default references (implicit references)
52
+ * Fixing Git::Diff to support diff over git .patch files
53
+ * Fixing Git.checkout when using :new_branch opt
54
+ * Fixing Git::Object::Commit to preserve its sha after fetching metadata
55
+ * Fixing Git.is_remote_branch? to actually check against remote branches
56
+ * Improvements over how ENV variables are modified
57
+ * Improving thrade safety (using --git-dir and --work-tree git opts)
58
+ * Improving Git::Object::Tag. Adding annotated?, tagger and message
59
+ * Supporting a submodule path as a valid repo
60
+ * Git.checkout - supporting -f and -b
61
+ * Git.clone - supporting --branch
62
+ * Git.fetch - supporting --prune
63
+ * Git.tag - supporting
64
+
65
+ ## 1.2.8
66
+
67
+ * Keeping the old escape format for windows users
68
+ * revparse: Supporting ref names containing SHA like substrings (40-hex strings)
69
+ * Fix warnings on Ruby 2.1.2
70
+
71
+ ## 1.2.7
72
+
73
+ * Fixing mesages encoding
74
+ * Fixing -f flag in git push
75
+ * Fixing log parser for multiline messages
76
+ * Supporting object references on Git.add_tag
77
+ * Including dotfiles on Git.status
78
+ * Git.fetch - supporting --tags
79
+ * Git.clean - supporting -x
80
+ * Git.add_tag options - supporting -a, -m and -s
81
+ * Added Git.delete_tag
82
+
83
+ ## 1.2.6
84
+
85
+ * Ruby 1.9.X/2.0 fully supported
86
+ * JRuby 1.8/1.9 support
87
+ * Rubinius support
88
+ * Git.clone - supporting --recursive and --config
89
+ * Git.log - supporting last and [] over the results
90
+ * Git.add_remote - supporting -f and -t
91
+ * Git.add - supporting --fore
92
+ * Git.init - supporting --bare
93
+ * Git.commit - supporting --all and --amend
94
+ * Added Git.remote_remote, Git.revert and Git.clean
95
+ * Added Bundler to the formula
96
+ * Travis configuration
97
+ * Licence included with the gem
98
+
99
+ ## 1.0.4
100
+
101
+ * added camping/gitweb.rb frontend
102
+ * added a number of speed-ups
103
+
104
+ ## 1.0.3
105
+
106
+ * Sped up most of the operations
107
+ * Added some predicate functions (commit?, tree?, etc)
108
+ * Added a number of lower level operations (read-tree, write-tree, checkout-index, etc)
109
+ * Fixed a bug with using bare repositories
110
+ * Updated a good amount of the documentation
111
+
112
+ ## 1.0.2
113
+
114
+ * Added methods to the git objects that might be helpful
115
+
116
+ ## 1.0.1
117
+
118
+ * Initial version
119
+
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,151 @@
1
+ <!--
2
+ # @markup markdown
3
+ # @title How To Contribute
4
+ -->
5
+
6
+ # Contributing to ruby-git
7
+
8
+ Thank you for your interest in contributing to the ruby-git project.
9
+
10
+ This document gives the guidelines for contributing to the ruby-git project.
11
+ These guidelines may not fit every situation. When contributing use your best
12
+ judgement.
13
+
14
+ Propose changes to these guidelines with a pull request.
15
+
16
+ ## How to contribute
17
+
18
+ You can contribute in two ways:
19
+
20
+ 1. [Report an issue or make a feature request](#how-to-report-an-issue-or-make-a-feature-request)
21
+ 2. [Submit a code or documentation change](#how-to-submit-a-code-or-documentation-change)
22
+
23
+ ## How to report an issue or make a feature request
24
+
25
+ ruby-git utilizes [GitHub Issues](https://help.github.com/en/github/managing-your-work-on-github/about-issues)
26
+ for issue tracking and feature requests.
27
+
28
+ Report an issue or feature request by [creating a ruby-git Github issue](https://github.com/ruby-git/ruby-git/issues/new).
29
+ Fill in the template to describe the issue or feature request the best you can.
30
+
31
+ ## How to submit a code or documentation change
32
+
33
+ There is three step process for code or documentation changes:
34
+
35
+ 1. [Commit your changes to a fork of ruby-git](#commit-changes-to-a-fork-of-ruby-git)
36
+ 2. [Create a pull request](#create-a-pull-request)
37
+ 3. [Get your pull request reviewed](#get-your-pull-request-reviewed)
38
+
39
+ ### Commit changes to a fork of ruby-git
40
+
41
+ Make your changes in a fork of the ruby-git repository.
42
+
43
+ Each commit must include a [DCO sign-off](#developer-certificate-of-origin-dco)
44
+ by adding the line `Signed-off-by: Name <email>` to the end of the commit
45
+ message.
46
+
47
+ ### Create a pull request
48
+
49
+ See [this article](https://help.github.com/articles/about-pull-requests/) if you
50
+ are not familiar with GitHub Pull Requests.
51
+
52
+ Follow the instructions in the pull request template.
53
+
54
+ ### Get your pull request reviewed
55
+
56
+ Code review takes place in a GitHub pull request using the [the Github pull request review feature](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-request-reviews).
57
+
58
+ Once your pull request is ready for review, request a review from at least one
59
+ [maintainer](MAINTAINERS.md) and any number of other contributors.
60
+
61
+ During the review process, you may need to make additional commits which would
62
+ need to be squashed. It may also be necessary to rebase to master again if other
63
+ changes are merged before your PR.
64
+
65
+ At least one approval is required from a project maintainer before your pull
66
+ request can be merged. The maintainer is responsible for ensuring that the pull
67
+ request meets [the project's coding standards](#coding-standards).
68
+
69
+ ## Coding standards
70
+
71
+ In order to ensure high quality, all pull requests must meet these requirements:
72
+
73
+ ### 1 PR = 1 Commit
74
+ * All commits for a PR must be squashed into one commit
75
+ * To avoid an extra merge commit, the PR must be able to be merged as [a fast forward merge](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging)
76
+ * The easiest way to ensure a fast forward merge is to rebase your local branch
77
+ to the ruby-git master branch
78
+
79
+ ### Unit tests
80
+ * All changes must be accompanied by new or modified unit tests
81
+ * The entire test suite must pass when `bundle exec rake default` is run from the
82
+ project's local working copy.
83
+
84
+ ### Continuous integration
85
+ * All tests must pass in the project's [GitHub Continuous Integration build](https://github.com/ruby-git/ruby-git/actions?query=workflow%3ACI)
86
+ before the pull request will be merged.
87
+ * The [Continuous Integration workflow](https://github.com/ruby-git/ruby-git/blob/master/.github/workflows/continuous_integration.yml)
88
+ runs both `bundle exec rake default` and `bundle exec rake test:gem` from the project's [Rakefile](https://github.com/ruby-git/ruby-git/blob/master/Rakefile).
89
+
90
+ ### Documentation
91
+ * New and updated public methods must have [YARD](https://yardoc.org/)
92
+ documentation added to them
93
+ * New and updated public facing features should be documented in the project's
94
+ [README.md](README.md)
95
+
96
+ ### Licensing sign-off
97
+ * Each commit must contain [the DCO sign-off](#developer-certificate-of-origin-dco)
98
+ in the form: `Signed-off-by: Name <email>`
99
+
100
+ ## Licensing
101
+
102
+ ruby-git uses [the MIT license](https://choosealicense.com/licenses/mit/) as
103
+ declared in the [LICENSE](LICENSE) file.
104
+
105
+ Licensing is very important to open source projects. It helps ensure the
106
+ software continues to be available under the terms that the author desired.
107
+
108
+ ### Developer Certificate of Origin (DCO)
109
+
110
+ This project requires that authors have permission to submit their contributions
111
+ under the MIT license. To make a good faith effort to ensure this, ruby-git
112
+ requires the [Developer Certificate of Origin (DCO)](https://elinux.org/Developer_Certificate_Of_Origin)
113
+ process be followed.
114
+
115
+ This process requires that each commit include a `Signed-off-by` line that
116
+ indicates the author accepts the DCO. Here is an example DCO sign-off line:
117
+
118
+ ```
119
+ Signed-off-by: John Doe <john.doe@hisdomain.com>
120
+ ```
121
+
122
+ The full text of the DCO version 1.1 is below or at <http://developercertificate.org/>.
123
+
124
+ ```
125
+ Developer's Certificate of Origin 1.1
126
+
127
+ By making a contribution to this project, I certify that:
128
+
129
+ (a) The contribution was created in whole or in part by me and I
130
+ have the right to submit it under the open source license
131
+ indicated in the file; or
132
+
133
+ (b) The contribution is based upon previous work that, to the
134
+ best of my knowledge, is covered under an appropriate open
135
+ source license and I have the right under that license to
136
+ submit that work with modifications, whether created in whole
137
+ or in part by me, under the same open source license (unless
138
+ I am permitted to submit under a different license), as
139
+ Indicated in the file; or
140
+
141
+ (c) The contribution was provided directly to me by some other
142
+ person who certified (a), (b) or (c) and I have not modified
143
+ it.
144
+
145
+ (d) I understand and agree that this project and the contribution
146
+ are public and that a record of the contribution (including
147
+ all personal information I submit with it, including my
148
+ sign-off) is maintained indefinitely and may be redistributed
149
+ consistent with this project or the open source license(s)
150
+ involved.
151
+ ```
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec :name => 'git'
4
+
data/ISSUE_TEMPLATE.md ADDED
@@ -0,0 +1,15 @@
1
+ ### Subject of the issue
2
+ Describe your issue here.
3
+
4
+ ### Your environment
5
+ * version of git and ruby-git
6
+ * version of ruby
7
+
8
+ ### Steps to reproduce
9
+ Tell us how to reproduce this issue.
10
+
11
+ ### Expected behaviour
12
+ What did you expect to happen?
13
+
14
+ ### Actual behaviour
15
+ What actually happened?
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2008 Scott Chacon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/MAINTAINERS.md ADDED
@@ -0,0 +1,14 @@
1
+ <!--
2
+ # @markup markdown
3
+ # @title Maintainers
4
+ -->
5
+
6
+ # Maintainers
7
+
8
+ When making changes in this repository, one of the maintainers below must review and approve your pull request.
9
+
10
+ ### Maintainers
11
+
12
+ * [Per Lundberg](https://github.com/perlun)
13
+ * [Vern Burton](https://github.com/tarcinil)
14
+ * [James Couball](https://github.com/jcouball)
@@ -0,0 +1,9 @@
1
+ ### Your checklist for this pull request
2
+ 🚨Please review the [guidelines for contributing](https://github.com/ruby-git/ruby-git/blob/master/CONTRIBUTING.md) to this repository.
3
+
4
+ - [ ] Ensure all commits include DCO sign-off.
5
+ - [ ] Ensure that your contributions pass unit testing.
6
+ - [ ] Ensure that your contributions contain documentation if applicable.
7
+
8
+ ### Description
9
+ Please describe your pull request.