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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5305707b46eaa8d0613db3f9793bea5b814a0d7d0a917c2533053d06bd6b09b
4
- data.tar.gz: 6e0def130d403dd1995016d83f0f2b7427009aaead54e62443bb8c2605b02dec
3
+ metadata.gz: 683c37a3388ad0e42e4fdb860fe3cc7d705831fa912bee34f415fb5dbda634bc
4
+ data.tar.gz: d8c5c1f552dc84cb7ade0c76cdcd20ff0b6f438048c1c714c5211f17e5336917
5
5
  SHA512:
6
- metadata.gz: cab190b44328045d617efcb29e7509c9873347f966968d9d047ae1eaa56501cf3a0d69a7fcaf967e149b39c7de90db03e0b9cde2b6378dcc7e64ba879ae3c70a
7
- data.tar.gz: f0a06ceba4b12ff04c5af09d8251d0bdf0462ecd1e077bd21061dd27292c8722ee27d38b4ad21ce1c2e2db0d2664a5e668e617a5df54641bcf9c65c84e390bf4
6
+ metadata.gz: a602970427fef7d236d40914d948f5aafc9a4404d52c514b0859c1aa4ad3647408814eaa8c80d215ed46cc07b57ef9f406be9f543b2a9615886bb09ed76ae101
7
+ data.tar.gz: 7e1ac49b8bd8d8549a9ce45857ff9252b3249d2d367d0d1dad3e632ccebbde77b80857da76ddfdb333752cd8c7c72b73b09b0dab03511d454c182ad2e193dbe6
@@ -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 = "*" }
@@ -1,3 +1,3 @@
1
1
  module DeployGate
2
- VERSION = '0.6.6'
2
+ VERSION = '0.6.7'
3
3
  end
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.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-08-22 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json