faastruby 0.5.11 → 0.5.12

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: 64a1bd1e0a5b2de38c38520d68fcfd3fa1a86bf2c317ccf6e45b4744786c98b3
4
- data.tar.gz: 6d119134ec76fc38f4dcc50ce1ab3348bb33e66011d4cb96ad276a61e1f5caaa
3
+ metadata.gz: b9ece53c09286e9112f6cbf104e2da719f6bfa1af81c0f143e57a8648b172492
4
+ data.tar.gz: cbcc0483287fae2b62cc9e8eac2089df5af57d9643199a92fbc944a5e67fe034
5
5
  SHA512:
6
- metadata.gz: 5b24ceb77ba06c4139e6a6b1f18ac3288f8dc955a35de7d07863b4590247ab8af406486e9914ab8c4305c0ea3fb7d7d34ab8028e35da6329c67ca7ce48d13b9b
7
- data.tar.gz: 8e15aa8aa0abe2ef27364ad2d604caa047364e8d51128fc9444d2263ea32770c14041b3cdef6a3b89e16cf5403bae563850b744eea05b2b35be3889d5d52bda3
6
+ metadata.gz: 5e29abfaa6e7f5bbca266a6ce034c6594a4d606aecbdae73a0fc2bdc1fc6b3643dde1909de6b74c441cc3e050caaac80c2055e8efd2825bb30756d863e7ddffb
7
+ data.tar.gz: f2496500afd5ce5213bdc59899fe77e4ef42cd6e0a221708eb025d244f173fc76c571a6d2acd81526c8212ef9447e78f3d5690faa621269db505d8ed7940d514
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.12 - Mar 16 2019
4
+ - Add new branding to Local web templates.
5
+ - Fix secrets.yml example in comments.
6
+ - Cleanup logger module.
7
+ - Local generated deploy-to command was not escaping JSON before bassing to `--context`.
8
+ - Bump faastruby-rpc to 0.2.5
9
+
10
+
3
11
  ## 0.5.11 - Mar 14 2019
4
12
  - Bump faastruby-rpc to 0.2.4
5
13
 
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faastruby (0.5.10)
4
+ faastruby (0.5.12)
5
5
  colorize (~> 0.8)
6
- faastruby-rpc (~> 0.2.3)
6
+ faastruby-rpc (~> 0.2.5)
7
7
  listen (~> 3.1)
8
8
  oj (~> 3.6)
9
9
  puma (~> 3.12)
@@ -30,7 +30,7 @@ GEM
30
30
  unf (>= 0.0.5, < 1.0.0)
31
31
  equatable (0.5.0)
32
32
  erubis (2.7.0)
33
- faastruby-rpc (0.2.3)
33
+ faastruby-rpc (0.2.5)
34
34
  oj (~> 3.6)
35
35
  ffi (1.10.0)
36
36
  hashdiff (0.3.7)
@@ -47,7 +47,7 @@ GEM
47
47
  mustermann (1.0.3)
48
48
  necromancer (0.4.0)
49
49
  netrc (0.11.0)
50
- oj (3.7.9)
50
+ oj (3.7.10)
51
51
  pastel (0.7.2)
52
52
  equatable (~> 0.5.0)
53
53
  tty-color (~> 0.4.0)
data/faastruby.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.add_runtime_dependency 'sinatra', '~> 2.0'
21
21
  spec.add_runtime_dependency 'sinatra-contrib', '~> 2.0'
22
22
  spec.add_runtime_dependency 'puma', '~> 3.12'
23
- spec.add_runtime_dependency 'faastruby-rpc', '~> 0.2.4'
23
+ spec.add_runtime_dependency 'faastruby-rpc', '~> 0.2.5'
24
24
  spec.add_runtime_dependency 'tmuxinator', '~> 0.15'
25
25
  spec.add_runtime_dependency 'rouge', '~> 3.3'
26
26
  spec.add_runtime_dependency 'listen', '~> 3.1'
@@ -126,12 +126,14 @@ module FaaStRuby
126
126
  " # Add secrets here and they will be available inside the function as \"event.context\"",
127
127
  " # Example:",
128
128
  " # prod:",
129
- " # pages/root:",
129
+ " # root:",
130
130
  " # a_secret: bfe76f4557ffc2de901cb24e0f87436f",
131
131
  " # another/function:",
132
132
  " # another_secret: 4d1c281e.619a2489c.8b5d.dd945616d324",
133
+ "",
134
+ " # 'stage' is the default environment when you start Local",
133
135
  " # stage:",
134
- " # pages/root:",
136
+ " # root:",
135
137
  " # a_secret: bfe76f4557ffc2de901cb24e0f87436f",
136
138
  " # another/function:",
137
139
  " # another_secret: 4d1c281e.619a2489c.8b5d.dd945616d324"
@@ -94,7 +94,7 @@ module FaaStRuby
94
94
  secrets_json = Oj.dump(Local.secrets_for_function(@name)) rescue nil
95
95
  deploy_cmd_print = deploy_cmd
96
96
  if secrets_json
97
- deploy_cmd += ["--context", secrets_json]
97
+ deploy_cmd += ["--context", "'#{secrets_json}'"]
98
98
  deploy_cmd_print += ["--context", '*REDACTED*']
99
99
  end
100
100
  [deploy_cmd, deploy_cmd_print]
@@ -26,12 +26,6 @@ module FaaStRuby
26
26
  end
27
27
  end
28
28
 
29
- def print(msg)
30
- STDOUT_MUTEX.synchronize do
31
- STDOUT.print "#{Time.now} | #{msg}".yellow
32
- end
33
- end
34
-
35
29
  end
36
30
  end
37
31
  end
@@ -1,3 +1,3 @@
1
1
  module FaaStRuby
2
- VERSION = '0.5.11'
2
+ VERSION = '0.5.12'
3
3
  end
@@ -6,7 +6,8 @@
6
6
  html {
7
7
  height: 100%;
8
8
  margin: 0px;
9
- background-image: linear-gradient(to right bottom, #ba473d, #933933, #6e2d28, #4a201d, #291412);
9
+ /* background-image: linear-gradient(to right bottom, #691003, #7a1309, #8b150e, #9d1712, #af1817); */
10
+ background: #DADADA;
10
11
  }
11
12
 
12
13
  body {
@@ -14,55 +15,41 @@ body {
14
15
  padding-left: 30px;
15
16
  padding-right: 30px;
16
17
  font-family: 'Open Sans';
17
- color: #ffffff;
18
+ color: #313131;
18
19
  height: 100%;
19
20
  }
20
21
 
21
22
  h1,h2,h3,h4,h5,h6 {
22
- font-family: 'Source Code Pro';
23
+ font-family: 'Overpass';
24
+ font-weight: 800;
23
25
  letter-spacing: -1px;
24
26
  }
25
27
 
26
- .paragraph {
27
- font-family: 'Open Sans';
28
- letter-spacing: 0px;
29
- }
30
-
31
28
  .text-center {
32
29
  text-align: center;
33
30
  }
34
31
 
35
32
  .header {
36
- height: 60px;
33
+ padding-top: 40px;
34
+ padding-bottom: 0px;
35
+ height: 64px;
37
36
  width: 100%;
38
- display:table;
39
- padding: 0px;
40
37
  }
41
38
 
42
39
  .logo-image-div {
43
40
  vertical-align:middle;
44
41
  display:table-cell;
45
- width: 60px;
42
+ height: 64px;
46
43
  padding: 0px;
47
44
  }
48
45
 
49
46
  .logo-image {
50
- width: 60px;
47
+ height: 64px;
51
48
  padding: 0px;
52
49
  }
53
50
 
54
- .logo-name-div {
55
- vertical-align:middle;
56
- display:table-cell;
57
- padding-left: 5px;
58
- padding-bottom: 6px;
59
- }
60
-
61
- .logo-name {
62
- font-size: 45px;
63
- }
64
-
65
51
  .content {
66
52
  width: 100%;
67
53
  margin: 0px;
54
+ margin-top: 100px;
68
55
  }
@@ -1,4 +1,3 @@
1
-
2
1
  <!DOCTYPE html>
3
2
  <html lang="en">
4
3
 
@@ -9,26 +8,28 @@
9
8
  <meta name="description" content="">
10
9
  <meta name="author" content="">
11
10
 
12
- <title>Page Not Found - FaaStRuby Local</title>
11
+ <title>Page Not Found - faastRuby Local</title>
13
12
 
14
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:400,700" rel="stylesheet">
13
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans|Overpass:400,800" rel="stylesheet">
15
14
  <link href="/assets/stylesheets/main.css" rel="stylesheet">
15
+ <link rel="icon" href="/assets/images/favicon-150x150.png" sizes="32x32" />
16
+ <link rel="icon" href="/assets/images/favicon.png" sizes="192x192" />
17
+ <link rel="apple-touch-icon-precomposed" href="/assets/images/favicon.png" />
18
+ <meta name="msapplication-TileImage" content="/assets/images/favicon.png" />
16
19
 
17
20
  </head>
18
21
 
19
22
  <body>
20
23
  <header class="header">
21
24
  <div class="logo-image-div">
22
- <img src="/assets/images/ruby.png" class="logo-image">
23
- </div>
24
- <div class="logo-name-div">
25
- <h1 class="logo-name">FaaStRuby</h1>
25
+ <img src="/assets/images/logo-positive.png" class="logo-image">
26
26
  </div>
27
27
  </header>
28
28
  <div class="content">
29
29
  <h1 class="text-center">Page Not Found</h1>
30
- <p class="text-center">To customize this page, edit the function 'catch-all'.</p>
30
+ <p class="text-center">To customize this page, edit the function 'catch-all'.</p>
31
31
  </div>
32
+
32
33
  <!-- JavaScript -->
33
34
  <script src="/assets/javascripts/main.js"></script>
34
35
  </body>
@@ -9,20 +9,21 @@
9
9
  <meta name="description" content="">
10
10
  <meta name="author" content="">
11
11
 
12
- <title>Welcome! - FaaStRuby Local</title>
12
+ <title>Welcome! - faastRuby Local</title>
13
13
 
14
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:400,700" rel="stylesheet">
14
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans|Overpass:400,800" rel="stylesheet">
15
15
  <link href="/assets/stylesheets/main.css" rel="stylesheet">
16
+ <link rel="icon" href="/assets/images/favicon-150x150.png" sizes="32x32" />
17
+ <link rel="icon" href="/assets/images/favicon.png" sizes="192x192" />
18
+ <link rel="apple-touch-icon-precomposed" href="/assets/images/favicon.png" />
19
+ <meta name="msapplication-TileImage" content="/assets/images/favicon.png" />
16
20
 
17
21
  </head>
18
22
 
19
23
  <body>
20
24
  <header class="header">
21
25
  <div class="logo-image-div">
22
- <img src="/assets/images/ruby.png" class="logo-image">
23
- </div>
24
- <div class="logo-name-div">
25
- <h1 class="logo-name">FaaStRuby</h1>
26
+ <img src="/assets/images/logo-positive.png" class="logo-image">
26
27
  </div>
27
28
  </header>
28
29
  <div class="content">
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.5.11
4
+ version: 0.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-15 00:00:00.000000000 Z
11
+ date: 2019-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.2.4
145
+ version: 0.2.5
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.2.4
152
+ version: 0.2.5
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: tmuxinator
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -350,10 +350,11 @@ files:
350
350
  - templates/crystal/example/spec/handler_spec.cr
351
351
  - templates/crystal/example/spec/spec_helper.cr
352
352
  - templates/crystal/example/src/handler.cr
353
- - templates/public-web/assets/images/ruby.png
353
+ - templates/public-web/assets/images/favicon-150x150.png
354
+ - templates/public-web/assets/images/favicon.png
355
+ - templates/public-web/assets/images/logo-positive.png
354
356
  - templates/public-web/assets/javascripts/main.js
355
357
  - templates/public-web/assets/stylesheets/main.css
356
- - templates/public-web/favicon.ico
357
358
  - templates/ruby/api-404/handler.rb
358
359
  - templates/ruby/api-root/handler.rb
359
360
  - templates/ruby/example-blank/handler.rb
Binary file