gurney_client 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/gurney/cli.rb +3 -2
- data/lib/gurney/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce89572fd28ab8810c0c4783e211e984ec8675d52e5e99f7ec3c0fca0af1404d
|
4
|
+
data.tar.gz: '009d1d819bdf23e70fd0004bdf421b25f9c73f93dba47aca28f7cf6070e33e83'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcdd4b685a61d3f3179d1803343f21b8554694a9f2e3af52a1629d3d22c8323eb2b4cbd3f7e0d96d860690eb67b6c158e2268e8fabd5f171663a1d550de3ca41
|
7
|
+
data.tar.gz: 2f73d012863be290165d7944fdaaecdc2d3c28de70b7ce08c2c97ca27feb933c1d514c92f9a4e1c04c44c2b7a18765658e3b3f6bc59fe1c9337ca73ecb7ba852
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Gurney changelog
|
2
2
|
|
3
|
-
## 0.
|
3
|
+
## 0.3.0 (2024-11-14)
|
4
|
+
* Added: Compatibility with Ruby 3
|
5
|
+
* Fixed: Support UTF-8 chars in branch names
|
4
6
|
|
7
|
+
## 0.2.3 (2023-05-24)
|
5
8
|
* Added: Suppress Bundler's "the Bundler version is older than the one in the lockfile" warning.
|
data/lib/gurney/cli.rb
CHANGED
@@ -18,7 +18,7 @@ module Gurney
|
|
18
18
|
if options.hook
|
19
19
|
g = Git.bare(ENV['GIT_DIR'] || Dir.pwd)
|
20
20
|
else
|
21
|
-
unless Dir.
|
21
|
+
unless Dir.exist? './.git'
|
22
22
|
raise Gurney::Error.new('Must be run within a git repository')
|
23
23
|
end
|
24
24
|
g = Git.open('.')
|
@@ -49,6 +49,7 @@ module Gurney
|
|
49
49
|
# we get passed changed branches and refs via stdin
|
50
50
|
$stdin.each_line do |line|
|
51
51
|
regex = options.client_hook ? CLIENT_HOOK_STDIN_REGEX : HOOK_STDIN_REGEX
|
52
|
+
line.force_encoding(Encoding::UTF_8)
|
52
53
|
matches = line.match(regex)
|
53
54
|
if matches && matches[:new] != '0' * 40
|
54
55
|
if options.branches.include? matches[:ref]
|
@@ -109,7 +110,7 @@ module Gurney
|
|
109
110
|
# happens if branch does not exist
|
110
111
|
end
|
111
112
|
else
|
112
|
-
if File.
|
113
|
+
if File.exist? filename
|
113
114
|
return File.read filename
|
114
115
|
end
|
115
116
|
end
|
data/lib/gurney/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gurney_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Schaflitzl
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|