ruby_git 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.rubocop.yml +19 -0
- data/.travis.yml +13 -0
- data/.yardopts +4 -0
- data/CHANGELOG.md +9 -0
- data/CONTRIBUTING.md +95 -0
- data/Gemfile +6 -0
- data/ISSUE_TEMPLATE.md +29 -0
- data/LICENSE.md +21 -0
- data/PULL_REQUEST_TEMPLATE.md +9 -0
- data/README.md +70 -0
- data/RELEASING.md +56 -0
- data/Rakefile +68 -0
- data/bin/console +15 -0
- data/bin/setup +6 -0
- data/lib/ruby_git.rb +7 -0
- data/lib/ruby_git/version.rb +5 -0
- data/pre-commit +26 -0
- data/ruby_git.gemspec +47 -0
- metadata +197 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7087b8dd63c3607ba8feab849f53758dab7bd5e9f651d2abde5c0883a0d9540e
|
4
|
+
data.tar.gz: 7955f33dea5ed42578726c5089d3246322618eeee85a6713c1121fe92f0ef2b5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a52889cbf50620fd7edf6b47ad903554e2ae075d6f822d659640c91db33943110a4795e28f1bc40e57474fad71817adc0a78e3081d718df740d03702cabcd29c
|
7
|
+
data.tar.gz: db553459c9cea1e038088eb7d9298ee4bd873d6c5e315f937adbdc487981b27a18cf6445aa5228d6bada9d5e70785fc682725ca8697d44335004a5feaf524285
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
# Output extra information for each offense to make it easier to diagnose:
|
4
|
+
DisplayCopNames: true
|
5
|
+
DisplayStyleGuide: true
|
6
|
+
ExtraDetails: true
|
7
|
+
# RuboCop enforces rules depending on the oldest version of Ruby which
|
8
|
+
# your project supports:
|
9
|
+
TargetRubyVersion: 2.6
|
10
|
+
|
11
|
+
# The default max line length is 80 characters
|
12
|
+
Layout/LineLength:
|
13
|
+
Max: 120
|
14
|
+
|
15
|
+
# The DSL for RSpec and the gemspec file make it very hard to limit block length:
|
16
|
+
Metrics/BlockLength:
|
17
|
+
Exclude:
|
18
|
+
- "spec/**/*_spec.rb"
|
19
|
+
- "*.gemspec"
|
data/.travis.yml
ADDED
data/.yardopts
ADDED
data/CHANGELOG.md
ADDED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
# Contributing to ruby_git
|
2
|
+
|
3
|
+
Thank you for your interest in contributing to the ruby_git project!
|
4
|
+
|
5
|
+
This document gives the guidelines for contributing to this project.
|
6
|
+
These guidelines may not fit every situation. When contributing use your best
|
7
|
+
judgement.
|
8
|
+
|
9
|
+
Propose changes to these guidelines with a pull request.
|
10
|
+
|
11
|
+
## How to contribute to ruby_git
|
12
|
+
|
13
|
+
You can contribute in two ways:
|
14
|
+
|
15
|
+
1. [Report an issue or make a feature request](#how-to-report-an-issue-or-make-a-feature-request)
|
16
|
+
2. [Submit a code or documentation change](#how-to-submit-a-code-or-documentation-change)
|
17
|
+
|
18
|
+
## How to report an issue or make a feature request
|
19
|
+
|
20
|
+
ruby_git utilizes [GitHub Issues](https://help.github.com/en/github/managing-your-work-on-github/about-issues)
|
21
|
+
for issue tracking and feature requests.
|
22
|
+
|
23
|
+
Report an issue or feature request by [creating a ruby_git Github issue](https://github.com/jcouball/ruby_git/issues/new).
|
24
|
+
Fill in the template to describe the issue or feature request the best you can.
|
25
|
+
|
26
|
+
## How to submit a code or documentation change
|
27
|
+
|
28
|
+
There is three step process for code or documentation changes:
|
29
|
+
|
30
|
+
1. [Commit your changes to a fork of ruby_git](#commit-changes-to-a-fork-of-ruby_git)
|
31
|
+
2. [Create a pull request](#create-a-pull-request)
|
32
|
+
3. [Get your pull request reviewed](#get-your-pull-request-reviewed)
|
33
|
+
|
34
|
+
### Commit changes to a fork of ruby_git
|
35
|
+
|
36
|
+
Make your changes in a fork of the ruby_git repository.
|
37
|
+
|
38
|
+
### Create a pull request
|
39
|
+
|
40
|
+
See [this article](https://help.github.com/articles/about-pull-requests/) if you
|
41
|
+
are not familiar with GitHub Pull Requests.
|
42
|
+
|
43
|
+
Follow the instructions in the pull request template.
|
44
|
+
|
45
|
+
### Get your pull request reviewed
|
46
|
+
|
47
|
+
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).
|
48
|
+
|
49
|
+
Once your pull request is ready for review, request a review from at least one
|
50
|
+
[maintainer](MAINTAINERS.md) and any number of other contributors.
|
51
|
+
|
52
|
+
During the review process, you may need to make additional commits which would
|
53
|
+
need to be squashed. It may also be necessary to rebase to main again if other
|
54
|
+
changes are merged before your PR.
|
55
|
+
|
56
|
+
At least one approval is required from a project maintainer before your pull
|
57
|
+
request can be merged. The maintainer is responsible for ensuring that the pull
|
58
|
+
request meets [the project's coding standards](#coding-standards).
|
59
|
+
|
60
|
+
## Coding standards
|
61
|
+
|
62
|
+
In order to ensure high quality, all pull requests must meet these requirements:
|
63
|
+
|
64
|
+
### 1 PR = 1 Commit
|
65
|
+
* All commits for a PR must be squashed into one commit
|
66
|
+
* 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)
|
67
|
+
* The easiest way to ensure a fast forward merge is to rebase your local branch
|
68
|
+
to the ruby_git main branch
|
69
|
+
|
70
|
+
### Unit tests
|
71
|
+
* All changes must be accompanied by new or modified RSpec unit tests
|
72
|
+
* The entire test suite must pass when `bundle exec rake spec` is run from the
|
73
|
+
project's local working copy
|
74
|
+
* The unit test suite must maintain 100% code coverage to pass
|
75
|
+
|
76
|
+
### Documentation
|
77
|
+
* New and updated public methods must have [YARD](https://yardoc.org/)
|
78
|
+
documentation added to them
|
79
|
+
* New and updated public facing features should be documented in the project's
|
80
|
+
[README.md](README.md)
|
81
|
+
* All documentation must pass `yardstick` documentation analysis.
|
82
|
+
* The documentation suite must maintain 100% documentation to pass
|
83
|
+
|
84
|
+
### Continuous Integration
|
85
|
+
* All tests must pass in the project's [Travis CI](https://travis-ci.org/jcouball/ruby_git)
|
86
|
+
build before the pull request will be merged
|
87
|
+
|
88
|
+
## Licensing
|
89
|
+
|
90
|
+
ruby_git uses [the MIT license](https://choosealicense.com/licenses/mit/) as
|
91
|
+
declared in the [LICENSE](LICENSE) file.
|
92
|
+
|
93
|
+
Licensing is very important to open source projects. It helps ensure the
|
94
|
+
software continues to be available under the terms that the author desired.
|
95
|
+
|
data/Gemfile
ADDED
data/ISSUE_TEMPLATE.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
## Feature Request
|
2
|
+
Delete this section if you are reporting a bug
|
3
|
+
|
4
|
+
### Description of the new feature
|
5
|
+
Describe your feature here
|
6
|
+
|
7
|
+
## Bug Report
|
8
|
+
Delete this section if you are requesting a feature
|
9
|
+
|
10
|
+
### Description of bug
|
11
|
+
Describe your bug here
|
12
|
+
|
13
|
+
### Your environment
|
14
|
+
* **Version of ruby_git**:
|
15
|
+
* **Version of git**:
|
16
|
+
* **Version of ruby**:
|
17
|
+
* **Platform & Version (MacOS 10.15.6, Linux, Windows 10, etc.)**:
|
18
|
+
|
19
|
+
### Steps to reproduce the bug
|
20
|
+
1.
|
21
|
+
2.
|
22
|
+
3.
|
23
|
+
4.
|
24
|
+
|
25
|
+
### Expected behaviour
|
26
|
+
What did you expect to happen?
|
27
|
+
|
28
|
+
### Actual behaviour
|
29
|
+
What actually happened?
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2020 James Couball and contributors
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
### Description
|
2
|
+
Describe the purpose of this pull request
|
3
|
+
|
4
|
+
### What is changed?
|
5
|
+
List what had to change in order to implement the purpose of this pull request
|
6
|
+
|
7
|
+
### What else was changed and why?
|
8
|
+
Where there changes made that do not relate the the main purpose of this PR? Examples include:
|
9
|
+
a bug opportunistly fixed, new Rubocop offenses that need to be fixed, etc.
|
data/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# Ruby Git
|
2
|
+
|
3
|
+
**THIS PROJECT IS A WORK IN PROGRESS AND IS NOT USEFUL IN ITS CURRENT STATE**
|
4
|
+
|
5
|
+
[](https://travis-ci.org/jcouball/ruby_git)
|
6
|
+
[](https://codeclimate.com/github/jcouball/ruby_git/maintainability)
|
7
|
+
|
8
|
+
Ruby Git is an object-oriented wrapper for the `git` command line tool for working with Worktrees
|
9
|
+
and Repositories. It tries to make more sense out of the Git command line.
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'ruby_git'
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle install
|
22
|
+
|
23
|
+
Or install it directly from the command line:
|
24
|
+
|
25
|
+
$ gem install ruby_git
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
To work with an existing Worktree:
|
30
|
+
|
31
|
+
```Ruby
|
32
|
+
worktree = RubyGit.open(worktree_path)
|
33
|
+
worktree.append_to_file('README.md', 'New line in README.md')
|
34
|
+
worktree.add('README.md')
|
35
|
+
worktree.commit('Add a line to the README.md')
|
36
|
+
worktree.push
|
37
|
+
```
|
38
|
+
|
39
|
+
To create a new Worktree:
|
40
|
+
|
41
|
+
```Ruby
|
42
|
+
worktree = RubyGit.init(worktree_path)
|
43
|
+
worktree.write_to_file('README.md', '# My New Project')
|
44
|
+
worktree.add('README.md')
|
45
|
+
worktree.repository.add_remote(remote_name: 'origin', url: 'https://github.com/jcouball/test', default_branch: 'main')
|
46
|
+
worktree.push(remote_name: 'origin')
|
47
|
+
```
|
48
|
+
|
49
|
+
To tell what version of Git is being used:
|
50
|
+
|
51
|
+
```Ruby
|
52
|
+
puts RubyGit.git_version
|
53
|
+
```
|
54
|
+
|
55
|
+
The full API is documented in [the RubyGit YARD documentation](https://github.com/pages/jcouball/ruby_git).
|
56
|
+
|
57
|
+
## Development
|
58
|
+
|
59
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec`
|
60
|
+
to run the tests. You can also run `bin/console` for an interactive prompt that will allow
|
61
|
+
you to experiment.
|
62
|
+
|
63
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a
|
64
|
+
new version, update the version number in `version.rb`, and then run
|
65
|
+
`bundle exec rake release`, which will create a git tag for the version, push git commits
|
66
|
+
and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
67
|
+
|
68
|
+
## Contributing
|
69
|
+
|
70
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jcouball/ruby_git.
|
data/RELEASING.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# How to release a new ruby_git gem
|
2
|
+
|
3
|
+
Releasing a new version of the `ruby_git` gem requires these steps:
|
4
|
+
* [Prepare the release](#prepare-the-release)
|
5
|
+
* [Create a GitHub release](#create-a-github-release)
|
6
|
+
* [Build and release the gem](#build-and-release-the-gem)
|
7
|
+
|
8
|
+
These instructions use an example where the current release version is `1.0.0`
|
9
|
+
and the new release version to be created is `1.1.0.pre1`.
|
10
|
+
|
11
|
+
## Prepare the release
|
12
|
+
|
13
|
+
From a fork of ruby_git, create a PR containing changes to (1) bump the
|
14
|
+
version number, (2) update the CHANGELOG.md, and (3) tag the release.
|
15
|
+
|
16
|
+
* Bump the version number in lib/ruby_git/version.rb following [Semantic Versioning](https://semver.org)
|
17
|
+
guidelines
|
18
|
+
* Add a link in CHANGELOG.md to the release tag which will be created later
|
19
|
+
in this guide
|
20
|
+
* Create a new tag using [git-extras](https://github.com/tj/git-extras/blob/main/Commands.md#git-release)
|
21
|
+
`git release` command
|
22
|
+
* For example: `git release v1.1.0.pre1`
|
23
|
+
* These should be the only changes in the PR
|
24
|
+
* Get the PR reviewed, approved and merged to main.
|
25
|
+
|
26
|
+
## Create a GitHub release
|
27
|
+
|
28
|
+
On [the ruby_git releases page](https://github.com/jcouball/ruby_git/releases),
|
29
|
+
select `Draft a new release`
|
30
|
+
|
31
|
+
* Select the tag corresponding to the version being released `v1.1.0.pre1`
|
32
|
+
* The Target should be `main`
|
33
|
+
* For the release description, use the output of [changelog-rs](https://github.com/perlun/changelog-rs)
|
34
|
+
* Since the release has not been created yet, you will need to supply
|
35
|
+
`changeling-rs` with the current release tag and the tag the new release
|
36
|
+
is being created from
|
37
|
+
* For example: `changelog-rs . v1.0.0 v1.1.0.pre1`
|
38
|
+
* Copy the output, omitting the tag header `## v1.1.0.pre1` and paste into
|
39
|
+
the release description
|
40
|
+
* The release description can be edited later if needed
|
41
|
+
* Select the appropriate value for `This is a pre-release`
|
42
|
+
* Since `v1.1.0.pre1` is a pre-release, check `This is a pre-release`
|
43
|
+
|
44
|
+
## Build and release the gem
|
45
|
+
|
46
|
+
Clone [jcouball/ruby_git](https://github.com/jcouball/ruby_git) directly (not a
|
47
|
+
fork) and ensure your local working copy is on the main branch
|
48
|
+
|
49
|
+
* Verify that you are not on a fork with the command `git remote -v`
|
50
|
+
* Verify that the version number is correct by running `rake -T` and inspecting
|
51
|
+
the output for the `release[remote]` task
|
52
|
+
|
53
|
+
Build the git gem and push it to rubygems.org with the command `rake release`
|
54
|
+
|
55
|
+
* Ensure that your `gem sources list` includes `https://rubygems.org` (in my
|
56
|
+
case, I usually have my work’s internal gem repository listed)
|
data/Rakefile
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
task default: %i[spec bundle:audit rubocop yardstick verify_measurements yard build]
|
4
|
+
|
5
|
+
# Bundler Audit
|
6
|
+
|
7
|
+
require 'bundler/audit/task'
|
8
|
+
Bundler::Audit::Task.new
|
9
|
+
|
10
|
+
# Bundler Gem Build
|
11
|
+
|
12
|
+
require 'bundler'
|
13
|
+
require 'bundler/gem_tasks'
|
14
|
+
|
15
|
+
# Bump
|
16
|
+
|
17
|
+
require 'bump/tasks'
|
18
|
+
|
19
|
+
# RSpec
|
20
|
+
|
21
|
+
require 'rspec/core/rake_task'
|
22
|
+
|
23
|
+
RSpec::Core::RakeTask.new do |t|
|
24
|
+
t.rspec_opts = %w[
|
25
|
+
--require spec_helper.rb
|
26
|
+
--color
|
27
|
+
--format documentation
|
28
|
+
]
|
29
|
+
end
|
30
|
+
|
31
|
+
CLEAN << 'coverage'
|
32
|
+
CLEAN << '.rspec_status'
|
33
|
+
CLEAN << 'rspec-report.xml'
|
34
|
+
|
35
|
+
# Rubocop
|
36
|
+
|
37
|
+
require 'rubocop/rake_task'
|
38
|
+
|
39
|
+
RuboCop::RakeTask.new do |t|
|
40
|
+
t.options = %w[
|
41
|
+
--format progress
|
42
|
+
--format json --out rubocop-report.json
|
43
|
+
]
|
44
|
+
end
|
45
|
+
|
46
|
+
CLEAN << 'rubocop-report.json'
|
47
|
+
|
48
|
+
# YARD
|
49
|
+
|
50
|
+
require 'yard'
|
51
|
+
YARD::Rake::YardocTask.new do |t|
|
52
|
+
t.files = %w[lib/**/*.rb examples/**/*]
|
53
|
+
end
|
54
|
+
|
55
|
+
CLEAN << '.yardoc'
|
56
|
+
CLEAN << 'doc'
|
57
|
+
|
58
|
+
# yardstick
|
59
|
+
|
60
|
+
require 'yardstick/rake/verify'
|
61
|
+
Yardstick::Rake::Verify.new do |verify|
|
62
|
+
verify.threshold = 100
|
63
|
+
end
|
64
|
+
|
65
|
+
desc 'Run yardstick to check yard docs'
|
66
|
+
task :yardstick do
|
67
|
+
sh "yardstick 'lib/**/*.rb'"
|
68
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'ruby_git'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require 'irb'
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/ruby_git.rb
ADDED
data/pre-commit
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
##
|
4
|
+
# Run this before doing a commit. To ensure this happens, after cloning this
|
5
|
+
# repository, run bin/setup from the projects root directory
|
6
|
+
|
7
|
+
echo 'Performing pre-commit checks'
|
8
|
+
|
9
|
+
# Make sure we are testing with the latest version of gems
|
10
|
+
# since this is what will get installed in the CI build
|
11
|
+
#
|
12
|
+
echo "Running 'bundle update'..."
|
13
|
+
if ! bundle update > /dev/null; then
|
14
|
+
echo 'FAIL: bundle update failed'
|
15
|
+
exit 1
|
16
|
+
fi
|
17
|
+
|
18
|
+
# Run all the tests, code/doc analysis, gem build, etc.
|
19
|
+
#
|
20
|
+
echo "Running 'bundle exec rake default'..."
|
21
|
+
if ! bundle exec rake default > /dev/null 2>&1; then
|
22
|
+
echo 'FAIL: Rake default task failed'
|
23
|
+
exit 1
|
24
|
+
fi
|
25
|
+
|
26
|
+
echo 'SUCCESS'
|
data/ruby_git.gemspec
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/ruby_git/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'ruby_git'
|
7
|
+
spec.version = RubyGit::VERSION
|
8
|
+
spec.authors = ['James Couball']
|
9
|
+
spec.email = ['jcouball@yahoo.com']
|
10
|
+
spec.license = 'MIT'
|
11
|
+
|
12
|
+
spec.summary = 'A Ruby library to work with Git Worktrees and Respositories'
|
13
|
+
spec.description = <<~DESCRIPTION
|
14
|
+
THIS PROJECT IS A WORK IN PROGRESS AND IS NOT USEFUL IN ITS CURRENT STATE
|
15
|
+
|
16
|
+
An object-oriented interface to working with Git Worktrees and Repositories that
|
17
|
+
tries to make sense out of the Git command line.
|
18
|
+
DESCRIPTION
|
19
|
+
spec.homepage = 'https://github.com/pages/jcouball/ruby_git/'
|
20
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
|
21
|
+
spec.requirements = ['git 2.18.0 or later']
|
22
|
+
|
23
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
24
|
+
|
25
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
26
|
+
spec.metadata['source_code_uri'] = 'https://github.com/jcouball/ruby_git/'
|
27
|
+
spec.metadata['changelog_uri'] = 'https://github.com/jcouball/ruby_git/blob/main/CHANGELOG.md'
|
28
|
+
|
29
|
+
# Specify which files should be added to the gem when it is released.
|
30
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
31
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
32
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
|
+
end
|
34
|
+
spec.bindir = 'exe'
|
35
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
|
+
spec.require_paths = ['lib']
|
37
|
+
|
38
|
+
spec.add_development_dependency 'bump', '~> 0.9'
|
39
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.7'
|
40
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
41
|
+
spec.add_development_dependency 'redcarpet', '~> 3.5'
|
42
|
+
spec.add_development_dependency 'rspec', '~> 3.9'
|
43
|
+
spec.add_development_dependency 'rubocop', '~> 0.91'
|
44
|
+
spec.add_development_dependency 'simplecov', '0.17.1'
|
45
|
+
spec.add_development_dependency 'yard', '~> 0.9'
|
46
|
+
spec.add_development_dependency 'yardstick', '~> 0.9'
|
47
|
+
end
|
metadata
ADDED
@@ -0,0 +1,197 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby_git
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Couball
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bump
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler-audit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.7'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '13.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '13.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: redcarpet
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.5'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.5'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.9'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.9'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.91'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.91'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.17.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.17.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: yard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.9'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.9'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: yardstick
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.9'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.9'
|
139
|
+
description: |
|
140
|
+
THIS PROJECT IS A WORK IN PROGRESS AND IS NOT USEFUL IN ITS CURRENT STATE
|
141
|
+
|
142
|
+
An object-oriented interface to working with Git Worktrees and Repositories that
|
143
|
+
tries to make sense out of the Git command line.
|
144
|
+
email:
|
145
|
+
- jcouball@yahoo.com
|
146
|
+
executables: []
|
147
|
+
extensions: []
|
148
|
+
extra_rdoc_files: []
|
149
|
+
files:
|
150
|
+
- ".gitignore"
|
151
|
+
- ".rubocop.yml"
|
152
|
+
- ".travis.yml"
|
153
|
+
- ".yardopts"
|
154
|
+
- CHANGELOG.md
|
155
|
+
- CONTRIBUTING.md
|
156
|
+
- Gemfile
|
157
|
+
- ISSUE_TEMPLATE.md
|
158
|
+
- LICENSE.md
|
159
|
+
- PULL_REQUEST_TEMPLATE.md
|
160
|
+
- README.md
|
161
|
+
- RELEASING.md
|
162
|
+
- Rakefile
|
163
|
+
- bin/console
|
164
|
+
- bin/setup
|
165
|
+
- lib/ruby_git.rb
|
166
|
+
- lib/ruby_git/version.rb
|
167
|
+
- pre-commit
|
168
|
+
- ruby_git.gemspec
|
169
|
+
homepage: https://github.com/pages/jcouball/ruby_git/
|
170
|
+
licenses:
|
171
|
+
- MIT
|
172
|
+
metadata:
|
173
|
+
allowed_push_host: https://rubygems.org
|
174
|
+
homepage_uri: https://github.com/pages/jcouball/ruby_git/
|
175
|
+
source_code_uri: https://github.com/jcouball/ruby_git/
|
176
|
+
changelog_uri: https://github.com/jcouball/ruby_git/blob/main/CHANGELOG.md
|
177
|
+
post_install_message:
|
178
|
+
rdoc_options: []
|
179
|
+
require_paths:
|
180
|
+
- lib
|
181
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: 2.6.0
|
186
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '0'
|
191
|
+
requirements:
|
192
|
+
- git 2.18.0 or later
|
193
|
+
rubygems_version: 3.1.2
|
194
|
+
signing_key:
|
195
|
+
specification_version: 4
|
196
|
+
summary: A Ruby library to work with Git Worktrees and Respositories
|
197
|
+
test_files: []
|