git 1.9.0 → 1.9.1

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: b2e3c138e7f4eb164585e6d90808a0ed85e016f96a016ff52d09a7346ec3618f
4
- data.tar.gz: 7b82caa3fb731d28ca57101b8327e76a7a22ce36436dd88e3f71f5e87152d0c5
3
+ metadata.gz: 1c98b8817ceb2d65efcf09cd2461023a5fb514fb738524332dbd98daae2b8cf0
4
+ data.tar.gz: 7fa575c50ed9f3c85bbd9aadd6e1d0a74d4421f9b3d612d43f761a1d77f7b1e2
5
5
  SHA512:
6
- metadata.gz: a467e84e7528a0f0cd373e07bf6725faf0c9df95e20f4c6b420e2c38d9b9a5af2919e3691af593ba3c30994bc97691c4fb7fb15fe9941d78172ade843c8bdea3
7
- data.tar.gz: 444c1eaa95b8b3c15cbf3ac30856475468c2b1dd59521d59cd481ef936b0cd7665295218129bf5c6c949f5122689b20dc2132aadd3e81811ee82bc029fffd0d5
6
+ metadata.gz: ecec9d8d598576983f48b9193ebadb4dc0a53745df0b0c27466ee075947945ea793dbb112107d4e5eaf70cca2cb93c3b0f83489af12d4b42d6336051261124ee
7
+ data.tar.gz: c164e57a0f9006672826c993719c85a8997e08b2272da7e48e17e945bffb9917d74cb3957ce09c9cb3b8cb4cec03f236b88f0334c5322a948e1f12021ffad5b7
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@
5
5
 
6
6
  # Change Log
7
7
 
8
+ ## 1.9.1
9
+
10
+ See https://github.com/ruby-git/ruby-git/releases/tag/v1.9.1
11
+
8
12
  ## 1.9.0
9
13
 
10
14
  See https://github.com/ruby-git/ruby-git/releases/tag/v1.9.0
data/README.md CHANGED
@@ -226,6 +226,14 @@ g.remove('file.txt', :cached => true) # git rm -f --cached -- "file.txt"
226
226
  g.commit('message')
227
227
  g.commit_all('message')
228
228
 
229
+ # Sign a commit using the gpg key configured in the user.signingkey config setting
230
+ g.config('user.signingkey', '0A46826A')
231
+ g.commit('message', gpg_sign: true)
232
+
233
+ # Sign a commit using a specified gpg key
234
+ key_id = '0A46826A'
235
+ g.commit('message', gpg_sign: key_id)
236
+
229
237
  g = Git.clone(repo, 'myrepo')
230
238
  g.chdir do
231
239
  new_file('test-file', 'blahblahblah')
data/lib/git/lib.rb CHANGED
@@ -660,7 +660,14 @@ module Git
660
660
  arr_opts << "--date=#{opts[:date]}" if opts[:date].is_a? String
661
661
  arr_opts << '--no-verify' if opts[:no_verify]
662
662
  arr_opts << '--allow-empty-message' if opts[:allow_empty_message]
663
- arr_opts << '--gpg-sign' if opts[:gpg_sign] == true || "--gpg-sign=#{opts[:gpg_sign]}" if opts[:gpg_sign]
663
+ if opts[:gpg_sign]
664
+ arr_opts <<
665
+ if opts[:gpg_sign] == true
666
+ '--gpg-sign'
667
+ else
668
+ "--gpg-sign=#{opts[:gpg_sign]}"
669
+ end
670
+ end
664
671
 
665
672
  command('commit', arr_opts)
666
673
  end
data/lib/git/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  # The current gem version
3
3
  # @return [String] the current gem version.
4
- VERSION='1.9.0'
4
+ VERSION='1.9.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon and others
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-06 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rchardet