deploygate 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/en.yml +6 -0
- data/lib/deploygate/commands/login.rb +14 -0
- data/lib/deploygate/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: 683c37a3388ad0e42e4fdb860fe3cc7d705831fa912bee34f415fb5dbda634bc
|
4
|
+
data.tar.gz: d8c5c1f552dc84cb7ade0c76cdcd20ff0b6f438048c1c714c5211f17e5336917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a602970427fef7d236d40914d948f5aafc9a4404d52c514b0859c1aa4ad3647408814eaa8c80d215ed46cc07b57ef9f406be9f543b2a9615886bb09ed76ae101
|
7
|
+
data.tar.gz: 7e1ac49b8bd8d8549a9ce45857ff9252b3249d2d367d0d1dad3e632ccebbde77b80857da76ddfdb333752cd8c7c72b73b09b0dab03511d454c182ad2e193dbe6
|
data/config/locales/en.yml
CHANGED
@@ -124,6 +124,12 @@ en:
|
|
124
124
|
input_password: 'Password: '
|
125
125
|
input_same_password: 'Type the same password: '
|
126
126
|
error: "Passwords didn't match. Please type again."
|
127
|
+
check_terms:
|
128
|
+
terms_url: 'Terms of Service: https://deploygate.com/terms'
|
129
|
+
privacy_url: 'Privacy Policy: https://deploygate.com/terms/privacy'
|
130
|
+
note: "DeployGate properly manages your account information under GDPR, Japan's Personal Information Protection Act and our Privacy Policy."
|
131
|
+
text: 'I agree to the Terms of Service and Privacy Policy (y/n) '
|
132
|
+
error: 'You must agree to the Terms of Service and Privacy Policy.'
|
127
133
|
logout:
|
128
134
|
success: |
|
129
135
|
Logout success!
|
@@ -68,6 +68,11 @@ module DeployGate
|
|
68
68
|
password = input_new_account_password()
|
69
69
|
puts ''
|
70
70
|
|
71
|
+
unless check_terms
|
72
|
+
puts HighLine.color(I18n.t('commands.login.check_terms.error'), HighLine::RED)
|
73
|
+
exit 1
|
74
|
+
end
|
75
|
+
|
71
76
|
print I18n.t('commands.login.create_account.creating')
|
72
77
|
if DeployGate::User.create(name, email, password).nil?
|
73
78
|
puts HighLine.color(I18n.t('commands.login.create_account.error'), HighLine::RED)
|
@@ -105,6 +110,15 @@ module DeployGate
|
|
105
110
|
end
|
106
111
|
end
|
107
112
|
|
113
|
+
# @return [boolean]
|
114
|
+
def check_terms
|
115
|
+
puts I18n.t('commands.login.check_terms.terms_url')
|
116
|
+
puts I18n.t('commands.login.check_terms.privacy_url')
|
117
|
+
puts I18n.t('commands.login.check_terms.note')
|
118
|
+
puts ''
|
119
|
+
HighLine.agree(I18n.t('commands.login.check_terms.text')) {|q| q.default = "n"}
|
120
|
+
end
|
121
|
+
|
108
122
|
# @return [String]
|
109
123
|
def input_password(message)
|
110
124
|
ask(message) { |q| q.echo = "*" }
|
data/lib/deploygate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploygate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- deploygate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|