git_helper 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/lib/git_helper/clean_git.rb +1 -1
- data/lib/git_helper/version.rb +1 -1
- data/spec/spec_helper.rb +52 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa43ec8474f02e1d7b042c0706870e9b2e148f4c17749615808c7111ffd1657a
|
4
|
+
data.tar.gz: 4b3a1b77bf3c4c8086077a768e9cdcba41683ea5daf3bcfe39b330ac9a9d142e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7282a13816db9c1eb5653ca77b9d18c251332a9c19dc30e546d2cf074796c0e4b14e6954b1994c54de30d7f6931413d164e3f6666164e8ca5a6a3db2cfe97b46
|
7
|
+
data.tar.gz: be5d4519977cc3205aed2776809e0a062b554102b41eb0db92dc4082aaec6a404e5d3317c0482e05c448c199c6e6a28bf1745f8c9f63faec963d833b4ea8f59f
|
data/Gemfile.lock
CHANGED
@@ -61,7 +61,7 @@ GEM
|
|
61
61
|
coderay (~> 1.1)
|
62
62
|
method_source (~> 1.0)
|
63
63
|
public_suffix (4.0.6)
|
64
|
-
rake (
|
64
|
+
rake (12.3.3)
|
65
65
|
rb-fsevent (0.10.4)
|
66
66
|
rb-inotify (0.10.1)
|
67
67
|
ffi (~> 1.0)
|
@@ -90,7 +90,7 @@ DEPENDENCIES
|
|
90
90
|
git_helper!
|
91
91
|
guard (~> 2.6)
|
92
92
|
guard-rspec (~> 4.3)
|
93
|
-
rake (~>
|
93
|
+
rake (~> 12.3.3)
|
94
94
|
rspec (~> 2.99)
|
95
95
|
|
96
96
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# git_helper [![Maintainability](https://api.codeclimate.com/v1/badges/
|
1
|
+
# git_helper [![Maintainability](https://api.codeclimate.com/v1/badges/d53da11f17c38cc81b5b/maintainability)](https://codeclimate.com/github/emmasax4/git_helper/maintainability) ![Develop](https://github.com/emmasax4/git_helper/workflows/Develop/badge.svg)
|
2
2
|
|
3
3
|
## Usage
|
4
4
|
|
data/lib/git_helper/clean_git.rb
CHANGED
@@ -4,7 +4,7 @@ module GitHelper
|
|
4
4
|
system("git checkout $(git symbolic-ref refs/remotes/origin/HEAD | sed \"s@^refs/remotes/origin/@@\")")
|
5
5
|
system("git pull")
|
6
6
|
system("git fetch -p")
|
7
|
-
system("git branch -vv | grep \"origin/.*: gone]\" | awk
|
7
|
+
system("git branch -vv | grep \"origin/.*: gone]\" | awk '{print \$1}' | grep -v \"*\" | xargs git branch -D")
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/lib/git_helper/version.rb
CHANGED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
SimpleCov.start do
|
4
|
+
add_filter '/spec/'
|
5
|
+
end
|
6
|
+
|
7
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
8
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
9
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
10
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
11
|
+
# files.
|
12
|
+
#
|
13
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
14
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
15
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
16
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
17
|
+
# a separate helper file that requires the additional dependencies and performs
|
18
|
+
# the additional setup, and require it from the spec files that actually need
|
19
|
+
# it.
|
20
|
+
#
|
21
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
22
|
+
# users commonly want.
|
23
|
+
#
|
24
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
25
|
+
RSpec.configure do |config|
|
26
|
+
# rspec-expectations config goes here. You can use an alternate
|
27
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
28
|
+
# assertions if you prefer.
|
29
|
+
config.expect_with :rspec do |expectations|
|
30
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
31
|
+
# and `failure_message` of custom matchers include text for helper methods
|
32
|
+
# defined using `chain`, e.g.:
|
33
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
34
|
+
# # => "be bigger than 2 and smaller than 4"
|
35
|
+
# ...rather than:
|
36
|
+
# # => "be bigger than 2"
|
37
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
38
|
+
end
|
39
|
+
|
40
|
+
config.use_transactional_fixtures = true
|
41
|
+
config.filter_run :focus => true
|
42
|
+
config.run_all_when_everything_filtered = true
|
43
|
+
|
44
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
45
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
46
|
+
config.mock_with :rspec do |mocks|
|
47
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
48
|
+
# a real object. This is generally recommended, and will default to
|
49
|
+
# `true` in RSpec 4.
|
50
|
+
mocks.verify_partial_doubles = true
|
51
|
+
end
|
52
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emma Sax
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 12.3.3
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 12.3.3
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,6 +164,7 @@ files:
|
|
164
164
|
- lib/git_helper/octokit_client.rb
|
165
165
|
- lib/git_helper/pull_request.rb
|
166
166
|
- lib/git_helper/version.rb
|
167
|
+
- spec/spec_helper.rb
|
167
168
|
homepage: https://github.com/emmasax4/git_helper
|
168
169
|
licenses:
|
169
170
|
- MIT
|
@@ -188,4 +189,5 @@ signing_key:
|
|
188
189
|
specification_version: 4
|
189
190
|
summary: A set of GitHub and GitLab workflow scripts to provide a smoother development
|
190
191
|
process for your git projects.
|
191
|
-
test_files:
|
192
|
+
test_files:
|
193
|
+
- spec/spec_helper.rb
|