faastruby 0.3.3 → 0.3.4

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: 335fa3ccc2c149a7f7c8f1551bf9e19d20d6195a81020557d252d580e157785c
4
- data.tar.gz: ec71694b2713127f156d6424c71594559da5a44f80b434a5a2dc9b87cfbaa8b1
3
+ metadata.gz: abd8ddb4b620333f14fb292497392cc22f9cbe5fb9ffbb92d031ef5e1b691e0f
4
+ data.tar.gz: b948cd14e4afbbfe56a467290c3d65035545563572c28797c5866b902024bff2
5
5
  SHA512:
6
- metadata.gz: 1d28851b29694062dcb7a4a04b35e290629a6f759dda9c244cdc44bef0eea177a37bc2f946042855f9fdd3bd1faa072e3c51d0b6bf9f391ad409fa6392b6dbc6
7
- data.tar.gz: 758524d34c9a46aaf105ff92dd0618de98574e44fd0fad5543764b1e4a74b773659aafe8f601d45dd1400c51472556aa67a642f13bb353ade244746e68496e6e
6
+ metadata.gz: 3b1468ddfe7826b6e7df51f98164a9c5ab22a772da84f9d51ed12ee5df81d06f5ab5acd31a2a840dd2542ac312d886be75b405b1911e81fd36e9124ce51acec1
7
+ data.tar.gz: d1b06518dff07bb1495b43619b98b123fa5cfe36f80636b773f5a2639b134a748e9cebed077fb5f4539ebe8393c7da136297dcb50c94b5ce2bf076f2d4a3f5f5
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.4 - Dec 27 2018
4
+ - Use `JSON.pretty_generate` when writing to credentials file, so it is more human readable.
5
+ - Fix bug: when creating a workspace from `deploy-to` command, if the workspace existed it would not error, but the deploy would fail and a null entry would go in the credentials file.
6
+
3
7
  ## 0.3.3 - Dec 21 2018
4
8
  - `deploy-to` will try to create the workspace if it doesn't exist.
5
9
  - Changed template to add a carriage return.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faastruby (0.3.2)
4
+ faastruby (0.3.4)
5
5
  colorize (~> 0.8)
6
6
  faastruby-rpc (~> 0.1.3)
7
7
  oj (~> 3.6)
@@ -16,16 +16,10 @@ PATH
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- activesupport (5.2.2)
20
- concurrent-ruby (~> 1.0, >= 1.0.2)
21
- i18n (>= 0.7, < 2)
22
- minitest (~> 5.1)
23
- tzinfo (~> 1.1)
24
19
  addressable (2.5.2)
25
20
  public_suffix (>= 2.0.2, < 4.0)
26
21
  backports (3.11.4)
27
22
  colorize (0.8.1)
28
- concurrent-ruby (1.1.3)
29
23
  crack (0.4.3)
30
24
  safe_yaml (~> 1.0.0)
31
25
  diff-lcs (1.3)
@@ -37,12 +31,9 @@ GEM
37
31
  hashdiff (0.3.7)
38
32
  http-cookie (1.0.3)
39
33
  domain_name (~> 0.5)
40
- i18n (1.2.0)
41
- concurrent-ruby (~> 1.0)
42
34
  mime-types (3.2.2)
43
35
  mime-types-data (~> 3.2015)
44
36
  mime-types-data (3.2018.0812)
45
- minitest (5.11.3)
46
37
  multi_json (1.13.1)
47
38
  mustermann (1.0.3)
48
39
  necromancer (0.4.0)
@@ -54,7 +45,7 @@ GEM
54
45
  public_suffix (3.0.3)
55
46
  puma (3.12.0)
56
47
  rack (2.0.6)
57
- rack-protection (2.0.4)
48
+ rack-protection (2.0.5)
58
49
  rack
59
50
  rake (10.5.0)
60
51
  rest-client (2.0.2)
@@ -76,25 +67,23 @@ GEM
76
67
  rspec-support (3.8.0)
77
68
  rubyzip (1.2.2)
78
69
  safe_yaml (1.0.4)
79
- sinatra (2.0.4)
70
+ sinatra (2.0.5)
80
71
  mustermann (~> 1.0)
81
72
  rack (~> 2.0)
82
- rack-protection (= 2.0.4)
73
+ rack-protection (= 2.0.5)
83
74
  tilt (~> 2.0)
84
- sinatra-contrib (2.0.4)
85
- activesupport (>= 4.0.0)
75
+ sinatra-contrib (2.0.5)
86
76
  backports (>= 2.8.2)
87
77
  multi_json
88
78
  mustermann (~> 1.0)
89
- rack-protection (= 2.0.4)
90
- sinatra (= 2.0.4)
79
+ rack-protection (= 2.0.5)
80
+ sinatra (= 2.0.5)
91
81
  tilt (>= 1.3, < 3)
92
82
  strings (0.1.4)
93
83
  strings-ansi (~> 0.1.0)
94
84
  unicode-display_width (~> 1.4.0)
95
85
  unicode_utils (~> 1.4.0)
96
86
  strings-ansi (0.1.0)
97
- thread_safe (0.3.6)
98
87
  tilt (2.0.9)
99
88
  tty-color (0.4.3)
100
89
  tty-cursor (0.6.0)
@@ -107,12 +96,10 @@ GEM
107
96
  pastel (~> 0.7.2)
108
97
  strings (~> 0.1.0)
109
98
  tty-screen (~> 0.6.4)
110
- tzinfo (1.2.5)
111
- thread_safe (~> 0.1)
112
99
  unf (0.1.4)
113
100
  unf_ext
114
101
  unf_ext (0.0.7.5)
115
- unicode-display_width (1.4.0)
102
+ unicode-display_width (1.4.1)
116
103
  unicode_utils (1.4.0)
117
104
  webmock (3.4.2)
118
105
  addressable (>= 2.3.6)
@@ -49,7 +49,7 @@ module FaaStRuby
49
49
  unless @has_credentials
50
50
  puts "Attemping to create workspace '#{@workspace_name}'"
51
51
  cmd = FaaStRuby::Command::Workspace::Create.new([@workspace_name])
52
- cmd.run(create_directory: false, exit_on_error: false)
52
+ cmd.run(create_directory: false, exit_on_error: true)
53
53
  load_credentials(exit_on_error: true)
54
54
  # Give a little bit of time after creating the workspace
55
55
  # for consistency. This is temporary until the API gets patched.
@@ -1,3 +1,4 @@
1
+ require 'json'
1
2
  module FaaStRuby
2
3
  class Credentials # TODO: change it to YAML?
3
4
  def self.load_credentials_file(credentials_file = FaaStRuby.credentials_file)
@@ -30,7 +31,7 @@ module FaaStRuby
30
31
  color = :green
31
32
  symbol = '+'
32
33
  end
33
- File.open(credentials_file, 'w') {|f| f.write Oj.dump(credentials)}
34
+ File.open(credentials_file, 'w') {|f| f.write JSON.pretty_generate(credentials)}
34
35
  puts "#{symbol} f #{credentials_file}".colorize(color)
35
36
  end
36
37
 
@@ -1,3 +1,3 @@
1
1
  module FaaStRuby
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faastruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-22 00:00:00.000000000 Z
11
+ date: 2018-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client