faastruby 0.5.26 → 0.5.27
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 +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +2 -10
- data/faastruby.gemspec +0 -1
- data/lib/faastruby/cli.rb +0 -9
- data/lib/faastruby/cli/commands/project/new.rb +0 -30
- data/lib/faastruby/local/functions/ruby.rb +1 -6
- data/lib/faastruby/spec_helper.rb +2 -1
- data/lib/faastruby/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f0f9dbc0598da103f758c699a7e5b9048331beae943923d5f23940549f177bb
|
4
|
+
data.tar.gz: 98622e6d11cde9d7ae34923ac5215dd2f09c3d7f48a735215b6a401cb7ac95c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55f3fc6b69bc7311e541128031d80941b43bafb0e52c4c0fdebf5b663045faf26eeab34f7ac717e352405ac3fa45113d5f42bb3b6638f072abe8811d3c0124fc
|
7
|
+
data.tar.gz: 1514b7641fa20819f0f390e81a0d171c916e56b03c833f4f2695c7096fc9daaf7650af1c54203acbcc4a0dda271c541eb0f3eed5a64e15350193e3dd66af6156
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.5.27 - May 21 2019
|
4
|
+
- Remove tmuxinator dependency
|
5
|
+
- Fixed: Tests for functions that use `render_template` fail
|
6
|
+
|
3
7
|
## 0.5.26 - May 16 2019
|
4
8
|
- Fix bug preventing login in certain cases
|
5
9
|
- Fix bug while detecting Crystal executable
|
6
|
-
- Fix bug with parsing form data
|
10
|
+
- Fix bug with parsing form data (thanks to @sergiosouzalima)
|
7
11
|
|
8
12
|
## 0.5.25 - Apr 25 2019
|
9
13
|
- Refactor API call and post-response processing in Workspace class
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
faastruby (0.5.
|
4
|
+
faastruby (0.5.27)
|
5
5
|
colorize (~> 0.8)
|
6
6
|
faastruby-rpc (~> 0.2.7)
|
7
7
|
listen (~> 3.1)
|
@@ -14,7 +14,6 @@ PATH
|
|
14
14
|
rubyzip (~> 1.2)
|
15
15
|
sinatra (~> 2.0)
|
16
16
|
sinatra-contrib (~> 2.0)
|
17
|
-
tmuxinator (~> 0.15)
|
18
17
|
tty-spinner (~> 0.8)
|
19
18
|
tty-table (~> 0.10)
|
20
19
|
|
@@ -32,10 +31,9 @@ GEM
|
|
32
31
|
domain_name (0.5.20180417)
|
33
32
|
unf (>= 0.0.5, < 1.0.0)
|
34
33
|
equatable (0.5.0)
|
35
|
-
erubis (2.7.0)
|
36
34
|
faastruby-rpc (0.2.7)
|
37
35
|
oj (~> 3.6)
|
38
|
-
ffi (1.
|
36
|
+
ffi (1.11.1)
|
39
37
|
hashdiff (0.3.7)
|
40
38
|
hike (1.2.3)
|
41
39
|
http-cookie (1.0.3)
|
@@ -112,12 +110,7 @@ GEM
|
|
112
110
|
unicode-display_width (~> 1.5)
|
113
111
|
unicode_utils (~> 1.4)
|
114
112
|
strings-ansi (0.1.0)
|
115
|
-
thor (0.20.3)
|
116
113
|
tilt (2.0.9)
|
117
|
-
tmuxinator (0.16.0)
|
118
|
-
erubis (~> 2.6)
|
119
|
-
thor (~> 0.19, >= 0.15.0)
|
120
|
-
xdg (~> 2.2, >= 2.2.3)
|
121
114
|
tty-color (0.4.3)
|
122
115
|
tty-cursor (0.6.1)
|
123
116
|
tty-screen (0.6.5)
|
@@ -138,7 +131,6 @@ GEM
|
|
138
131
|
addressable (>= 2.3.6)
|
139
132
|
crack (>= 0.3.2)
|
140
133
|
hashdiff
|
141
|
-
xdg (2.2.3)
|
142
134
|
|
143
135
|
PLATFORMS
|
144
136
|
ruby
|
data/faastruby.gemspec
CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_runtime_dependency 'sinatra-contrib', '~> 2.0'
|
22
22
|
spec.add_runtime_dependency 'puma', '~> 3.12'
|
23
23
|
spec.add_runtime_dependency 'faastruby-rpc', '~> 0.2.7'
|
24
|
-
spec.add_runtime_dependency 'tmuxinator', '~> 0.15'
|
25
24
|
spec.add_runtime_dependency 'rouge', '~> 3.3'
|
26
25
|
spec.add_runtime_dependency 'listen', '~> 3.1'
|
27
26
|
spec.add_runtime_dependency 'opal', '~> 0.11.4'
|
data/lib/faastruby/cli.rb
CHANGED
@@ -22,7 +22,6 @@ module FaaStRuby
|
|
22
22
|
end
|
23
23
|
check_ruby_version
|
24
24
|
start_server(args) if command == 'local'
|
25
|
-
start_tmuxinator if command == 'mux'
|
26
25
|
# check_version
|
27
26
|
check_region
|
28
27
|
require 'faastruby/cli/commands'
|
@@ -81,13 +80,5 @@ module FaaStRuby
|
|
81
80
|
puma_config = "#{server_dir}/puma.rb"
|
82
81
|
exec "#{parsed.join(' ')} puma -C #{puma_config} -p #{server_port} #{args.join(' ')} #{config_ru}"
|
83
82
|
end
|
84
|
-
def self.start_tmuxinator
|
85
|
-
if system("tmux -V > /dev/null")
|
86
|
-
project_name = YAML.load(File.read("project.yml"))['name']
|
87
|
-
exec("tmuxinator start #{project_name} -p tmuxinator.yml")
|
88
|
-
else
|
89
|
-
error("To use 'faastruby mux' you need to have 'tmux' installed.", color: nil)
|
90
|
-
end
|
91
|
-
end
|
92
83
|
end
|
93
84
|
end
|
@@ -104,10 +104,6 @@ module FaaStRuby
|
|
104
104
|
def create_config
|
105
105
|
File.write("#{@base_dir}/#{PROJECT_YAML_FILE}", default_project_file)
|
106
106
|
puts "+ f #{@base_dir}/#{PROJECT_YAML_FILE}".green
|
107
|
-
if @options['tmux']
|
108
|
-
File.write("#{@base_dir}/tmuxinator.yml", tmuxinator_config)
|
109
|
-
puts "+ f #{@base_dir}/tmuxinator.yml".green
|
110
|
-
end
|
111
107
|
File.write("#{@base_dir}/#{PROJECT_SECRETS_FILE}", default_secrets_file)
|
112
108
|
puts "+ f #{@base_dir}/#{PROJECT_SECRETS_FILE}".green
|
113
109
|
end
|
@@ -181,32 +177,6 @@ module FaaStRuby
|
|
181
177
|
)
|
182
178
|
end
|
183
179
|
|
184
|
-
def tmuxinator_config
|
185
|
-
{
|
186
|
-
"name" => @project_name,
|
187
|
-
"root" => ".",
|
188
|
-
"startup_window" => "server",
|
189
|
-
"windows" => [{
|
190
|
-
"server" => {
|
191
|
-
"layout" => "main-horizontal",
|
192
|
-
"panes" => [
|
193
|
-
[
|
194
|
-
"tmux set -g mouse on",
|
195
|
-
"tmux set -g history-limit 30000",
|
196
|
-
"clear",
|
197
|
-
"faastruby server"
|
198
|
-
],
|
199
|
-
[
|
200
|
-
"tmux select-pane -t 0.1",
|
201
|
-
"clear"
|
202
|
-
]
|
203
|
-
]
|
204
|
-
}
|
205
|
-
}
|
206
|
-
]
|
207
|
-
}.to_yaml
|
208
|
-
end
|
209
|
-
|
210
180
|
def dir_exists?
|
211
181
|
return false unless File.directory?(@base_dir)
|
212
182
|
FaaStRuby::CLI.error("Error: Directory '#{@project_name}' already exists. Aborting.")
|
@@ -5,12 +5,7 @@ module FaaStRuby
|
|
5
5
|
|
6
6
|
def self.default_gemfile
|
7
7
|
faastruby_rpc_version = Gem::DependencyList.from_specs.select{|d| d.name == 'faastruby-rpc'}[0]&.version || '0.2.3'
|
8
|
-
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
gem 'rspec'
|
12
|
-
end
|
13
|
-
)
|
8
|
+
"source 'https://rubygems.org'\n"
|
14
9
|
end
|
15
10
|
|
16
11
|
def yaml_hash
|
@@ -5,6 +5,7 @@ module FaaStRuby
|
|
5
5
|
require 'faastruby/server/function_object'
|
6
6
|
require 'faastruby/server/event'
|
7
7
|
require 'faastruby/server/response'
|
8
|
+
require 'faastruby/server/template'
|
8
9
|
##########
|
9
10
|
# Add call method to the Response class
|
10
11
|
# for backwards compatibility.
|
@@ -33,4 +34,4 @@ module FaaStRuby
|
|
33
34
|
true
|
34
35
|
end
|
35
36
|
end
|
36
|
-
end
|
37
|
+
end
|
data/lib/faastruby/version.rb
CHANGED
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.
|
4
|
+
version: 0.5.27
|
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-05-
|
11
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -150,20 +150,6 @@ dependencies:
|
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 0.2.7
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: tmuxinator
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0.15'
|
160
|
-
type: :runtime
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0.15'
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: rouge
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|