faastruby 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e947223f9a44c7019dab288b430f625aa030004c574f77be0a1702e29d7582e
4
- data.tar.gz: ab438317e8aca46fd893cf29160d1537dd9421085b6c457cb50b9cb2eb2a1c20
3
+ metadata.gz: fd042adae115937128465948d8e87b3dccab76e713e84ed09ea1c1549eef95ac
4
+ data.tar.gz: 725f8058b9e50fb416949c7824baca17897fda472352a4e59a28335119ae0189
5
5
  SHA512:
6
- metadata.gz: 6830c604ae0693f66f5583ced3695d5c7fc49cb117dab05dc9770dfaecc21fbfc97d0c5080cffb35bf700c84c7ea122be56e1480cd7d5362bcf15f663ccdb11d
7
- data.tar.gz: 80183f91c9e2c2f07f50e86f853f1c01a8f917739591e4c8b0323a70d80f0ddbc5eeec056f91e7f22c529733a338cb4371a09c0c8093f354d8fb9394d68422aa
6
+ metadata.gz: 353e84e8e2bf16b95f3ffd736a1e15ba5396ac255a2710c69ea426f4cf1dac7891269dac5dfb06f3a2c8bdc7646c7e18343e876a65b8c35b09becd79e98cbdbf
7
+ data.tar.gz: ddbc8b9049afd4d24a9211ba731e3ddeb94f87fbd6fff4763a8f15a598da9694ff73faaae1d52dbb94734cb03888b82a657647a0ab3447c37f991ee42a8fb227
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.2 - Mar 8 2019
4
+ - Fix bug with migrating accounts
5
+
6
+ ## 0.5.1 - Mar 8 2019
7
+ - Enforce one special character on account passwords.
8
+
3
9
  ## 0.5.0 - Mar 8 2019
4
10
  - Introduces FaaStRuby Local
5
11
  - Introduce user accounts and a migration tool to move the legacy workspace credentials into your account.
data/Gemfile.lock CHANGED
@@ -1,10 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faastruby (0.5.0)
4
+ faastruby (0.5.1)
5
5
  colorize (~> 0.8)
6
6
  faastruby-rpc (~> 0.2)
7
- filewatcher (~> 1.1)
8
7
  listen (~> 3.1)
9
8
  oj (~> 3.6)
10
9
  puma (~> 3.12)
@@ -31,11 +30,9 @@ GEM
31
30
  unf (>= 0.0.5, < 1.0.0)
32
31
  equatable (0.5.0)
33
32
  erubis (2.7.0)
34
- faastruby-rpc (0.2.1)
33
+ faastruby-rpc (0.2.2)
35
34
  oj (~> 3.6)
36
35
  ffi (1.10.0)
37
- filewatcher (1.1.1)
38
- optimist (~> 3.0)
39
36
  hashdiff (0.3.7)
40
37
  http-cookie (1.0.3)
41
38
  domain_name (~> 0.5)
@@ -51,7 +48,6 @@ GEM
51
48
  necromancer (0.4.0)
52
49
  netrc (0.11.0)
53
50
  oj (3.7.9)
54
- optimist (3.0.0)
55
51
  pastel (0.7.2)
56
52
  equatable (~> 0.5.0)
57
53
  tty-color (~> 0.4.0)
@@ -109,7 +105,7 @@ GEM
109
105
  thor (~> 0.19, >= 0.15.0)
110
106
  xdg (~> 2.2, >= 2.2.3)
111
107
  tty-color (0.4.3)
112
- tty-cursor (0.6.0)
108
+ tty-cursor (0.6.1)
113
109
  tty-screen (0.6.5)
114
110
  tty-spinner (0.9.0)
115
111
  tty-cursor (~> 0.6.0)
@@ -1,7 +1,7 @@
1
1
  module FaaStRuby
2
2
  module Command
3
3
  module Account
4
- PASSWORD_REGEX = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,20}$/
4
+ PASSWORD_REGEX = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,20}$/
5
5
  EMAIL_REGEX = /\A([\w+\-].?)+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+\z/i
6
6
  require 'faastruby/cli/commands/account/base_command'
7
7
  require 'io/console'
@@ -21,11 +21,11 @@ module FaaStRuby
21
21
  print "Email: "
22
22
  email = STDIN.gets.chomp
23
23
  end
24
- puts "\nNow type in a password. It must contain 8 to 20 characters and have at least one uppercase letter, one lowercase letter, one number."
24
+ puts "\nNow type in a password. It must contain 8 to 20 characters and have at least one uppercase letter, one lowercase letter, one number and one special character @ $ ! % * ? &"
25
25
  print "Password: "
26
26
  password = STDIN.noecho(&:gets).chomp
27
27
  until password_is_valid?(password) do
28
- puts "\nYour password must contain 8 to 20 characters and have at least one uppercase letter, one lowercase letter, one number. Please try again:".red
28
+ puts "\nYour password must contain 8 to 20 characters and have at least one uppercase letter, one lowercase letter, one number and one special character @ $ ! % * ? &\nPlease try again:".red
29
29
  print "Password: "
30
30
  password = STDIN.noecho(&:gets).chomp
31
31
  end
@@ -6,6 +6,7 @@ module FaaStRuby
6
6
  require 'faastruby/cli/new_credentials'
7
7
  require 'oj'
8
8
  require 'fileutils'
9
+ require 'json'
9
10
  class Migrate < BaseCommand
10
11
  def initialize(args)
11
12
  @args = args
@@ -1,3 +1,3 @@
1
1
  module FaaStRuby
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faastruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda