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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_git_crypt/tasks/add_user.rb +4 -3
- data/lib/rake_git_crypt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ce17ef4adf03c23d3f0317d98a8e50559f192d1e77be3736cead101cacc0357
|
4
|
+
data.tar.gz: '0596975061976467ab3f9fbabe20d34c33951e91dceb31cd9f412269636db243'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebba33cb2adf1f65c2085cf25d71c21d9b173a8720a2ef4e610b188f7b6f30cd27463f9f7fffd925f58c875843eebaa17a1c3be28f17b11a60a48d06543e82ad
|
7
|
+
data.tar.gz: 81147c3981f97daebdcb560a2297a2811619e1dcce030260a3c605dc1e29ea55bde13db3c452f33ba21b6b5c7d25ae0bf58e88a5368a9c90ae848b795103a4fd
|
data/Gemfile.lock
CHANGED
@@ -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
|
)
|