rake_git_crypt 0.1.0.pre.6 → 0.1.0.pre.7

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: 21646ae3a4b84a88a127a9330d98a60859bef7dd63f7530379a91891c19941c1
4
- data.tar.gz: 72f4e093a66eeaf51fd99b86b1053a8d0f58d23c07d389ebeee818267b8fb22b
3
+ metadata.gz: 9ce17ef4adf03c23d3f0317d98a8e50559f192d1e77be3736cead101cacc0357
4
+ data.tar.gz: '0596975061976467ab3f9fbabe20d34c33951e91dceb31cd9f412269636db243'
5
5
  SHA512:
6
- metadata.gz: add9d5c347374136880e7488523da77baf2a3df14aeffaf424463157a4f9917a09f66c1fae58284fe1ba245ac13e92565f45ef59433362c70571b6c0c152c32f
7
- data.tar.gz: '0549fd57e7b9e9d7dfa1e83b86ee855b42cb814941dc667fce1c7b3ef355633bf51279faa3748e72f7b8cda7930f503e0b98a395f2f972cbf70a8b224d0053b3'
6
+ metadata.gz: ebba33cb2adf1f65c2085cf25d71c21d9b173a8720a2ef4e610b188f7b6f30cd27463f9f7fffd925f58c875843eebaa17a1c3be28f17b11a60a48d06543e82ad
7
+ data.tar.gz: 81147c3981f97daebdcb560a2297a2811619e1dcce030260a3c605dc1e29ea55bde13db3c452f33ba21b6b5c7d25ae0bf58e88a5368a9c90ae848b795103a4fd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_git_crypt (0.1.0.pre.6)
4
+ rake_git_crypt (0.1.0.pre.7)
5
5
  colored2 (~> 3.1)
6
6
  rake_factory (~> 0.23)
7
7
  ruby_git_crypt (= 0.1.0.pre.2)
@@ -37,7 +37,8 @@ module RakeGitCrypt
37
37
  with_gpg_home_directory do |home_directory|
38
38
  result = import_key(home_directory)
39
39
  key_fingerprint = lookup_key_fingerprint(result)
40
- add_gpg_user(home_directory, key_fingerprint)
40
+ add_gpg_user(home_directory, key_fingerprint,
41
+ auto_trust: gpg_home_directory.nil?)
41
42
  end
42
43
  log_done
43
44
  end
@@ -74,13 +75,13 @@ module RakeGitCrypt
74
75
  .first_line.key_fingerprint
75
76
  end
76
77
 
77
- def add_gpg_user(gpg_home_directory, gpg_user_id)
78
+ def add_gpg_user(gpg_home_directory, gpg_user_id, auto_trust: false)
78
79
  RubyGitCrypt.add_gpg_user(
79
80
  {
80
81
  gpg_user_id: gpg_user_id,
81
82
  key_name: key_name,
82
83
  no_commit: !commit,
83
- trusted: trusted
84
+ trusted: auto_trust || trusted
84
85
  },
85
86
  { environment: git_crypt_environment(gpg_home_directory) }
86
87
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeGitCrypt
4
- VERSION = '0.1.0.pre.6'
4
+ VERSION = '0.1.0.pre.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_git_crypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.6
4
+ version: 0.1.0.pre.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers