git-trim 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92db4c11447a62f7967f2beb14992824322cdc245c6cc9caba0289c5c7e19874
4
- data.tar.gz: 5a87497a2f3dd09195ae8991336eec680d78e06c26af9fd5bc3ea0ff32a949d1
3
+ metadata.gz: 4c941e5077e893642ba38fbd33d94f9c8fbef9c8590b8b9107457d7027da16ea
4
+ data.tar.gz: 50297be5101150a1898acef6b2a09da3d82b03878765cf09d36fa0fc6fe769ae
5
5
  SHA512:
6
- metadata.gz: f6059a21f04dad9126aef59197ae5ad37f9b2574df92028272aa982b36255295eea1ab82e819a63a64fba09df14c4ef2531e7c7e57a90cc748ec099a9d30b006
7
- data.tar.gz: eb23ae147a5d2c5ce5eb5648d7c7cfd71050b5227d1732bb7ee53d0fce5b38f551c8254d374930d5fda429fc00b912530079a194ac758059193b8db4b8dc56e2
6
+ metadata.gz: e2befed7aefe3649a8fa13b0fd7afbebf630c29f2a788370b0211f3291740ce230cf46f9bd14c42df862d73f32b5d951134c29211da85e1a6b86e57b72f078d4
7
+ data.tar.gz: 56e28769e4b6554df8c6058d728678600b03082415d8c2043075a4abea758a36df0bb0f02c6d4d676c6ce71c7ea4e4a0ee2c621e6dd2f4bd76db0e58e781fb94
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ .ruby-version
@@ -1,3 +1,3 @@
1
1
  class GitTrim
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/git-trim.rb CHANGED
@@ -4,7 +4,7 @@ class GitTrim
4
4
  def run(argv=nil)
5
5
  %x{git fetch -ap}
6
6
 
7
- if File.exists?(".git-protected-branches")
7
+ if File.exist?(".git-protected-branches")
8
8
  protected_branches = File.read(".git-protected-branches").split("\n")
9
9
  end
10
10
  protected_branches ||= []
@@ -20,7 +20,7 @@ class GitTrim
20
20
 
21
21
  def find_file(filename, directory=Dir.pwd)
22
22
  local_filename = File.expand_path(filename, directory)
23
- if File.exists?(local_filename)
23
+ if File.exist?(local_filename)
24
24
  return local_filename
25
25
  elsif directory == "/"
26
26
  return nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-trim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Petersen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-09 00:00:00.000000000 Z
11
+ date: 2023-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,7 +78,7 @@ homepage: https://github.com/assaydepot/git-trim
78
78
  licenses:
79
79
  - MIT
80
80
  metadata: {}
81
- post_install_message:
81
+ post_install_message:
82
82
  rdoc_options: []
83
83
  require_paths:
84
84
  - lib
@@ -94,9 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubyforge_project:
98
- rubygems_version: 2.7.6.2
99
- signing_key:
97
+ rubygems_version: 3.4.10
98
+ signing_key:
100
99
  specification_version: 4
101
100
  summary: A script to remove all merged branches that aren't protected.
102
101
  test_files: []