flok 0.0.26 → 0.0.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/lib/flok/version.rb +1 -1
- data/spec/etc/cli_spec.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60b7f3c4cb70e4020addfd78e25d38af94a44071
|
4
|
+
data.tar.gz: 7197d3b84a90e8ee847832e8e23a6d6548d2d2f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3ef95cdaa67a974d0f816ee3e3a5965b7ef115ba0cb93644528a681958911558f269febc4e07134b5a85ea6a5ad20db08620aa220cf76eb2901e1038d05e095
|
7
|
+
data.tar.gz: aa2c105f8416a6f88759aaf3da96610b4d26299d7bedddc8b9b04fa9a4d9bae93c4937ca6edd4b40c998a90134b75aab466487683010e42161f22378fbdf91d8
|
data/lib/flok/version.rb
CHANGED
data/spec/etc/cli_spec.rb
CHANGED
@@ -68,6 +68,7 @@ it "Can create a new project with correct directories" do
|
|
68
68
|
|
69
69
|
it "Can build a project with every type of platform" do
|
70
70
|
Flok.platforms.each do |platform|
|
71
|
+
ENV['PLATFORM'] = platform
|
71
72
|
flok_new do
|
72
73
|
#Build a new project
|
73
74
|
flok "build #{platform}"
|
@@ -122,11 +123,10 @@ it "Can create a new project with correct directories" do
|
|
122
123
|
end
|
123
124
|
|
124
125
|
Flok.platforms.each do |platform|
|
126
|
+
ENV['PLATFORM'] = platform
|
125
127
|
@platform = platform
|
126
128
|
controller_rb = File.read('./spec/etc/user_compiler/controller0.rb')
|
127
129
|
|
128
|
-
|
129
|
-
|
130
130
|
#The file with content should be longer when compiled into the flat application_user.js
|
131
131
|
len_with_content = compile_with_file "./spec/etc/user_compiler/controller0.rb"
|
132
132
|
len_no_content = compile_with_file
|
@@ -138,6 +138,7 @@ it "Can create a new project with correct directories" do
|
|
138
138
|
include SpecHelpers
|
139
139
|
it "server does build project when first run" do
|
140
140
|
Flok.platforms.each do |platform|
|
141
|
+
ENV['PLATFORM'] = platform
|
141
142
|
flok_new do
|
142
143
|
#Start the server
|
143
144
|
#Get path to the flok binary relative to this file
|
@@ -145,7 +146,7 @@ it "Can create a new project with correct directories" do
|
|
145
146
|
lib_path = File.join(File.dirname(__FILE__), "../../lib")
|
146
147
|
|
147
148
|
#Now execute the command with a set of arguments
|
148
|
-
sh2("bundle exec flok server
|
149
|
+
sh2("bundle exec flok server", /BUILD RAN/) do |inp, out|
|
149
150
|
#The server should always trigger a build on it's first run
|
150
151
|
expect(dirs).to include "products"
|
151
152
|
Dir.chdir "products" do
|