vae 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/full_stack.rb +25 -22
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b95fc5024589647fe8a5ce90b61558bbc8c65e1
4
- data.tar.gz: 6f978752af76b5550d52b20dcc914e6786e0feaf
3
+ metadata.gz: 4ec82dc23a41fff2a7a89e04338dc1ff5c0fed51
4
+ data.tar.gz: c0aeff2aca03ef853afd0f133824f6b233c7e3e9
5
5
  SHA512:
6
- metadata.gz: ce47bba6853b2295f51bed8c083e9db6ba6871fb3a254fe20fe41e03f117033f3dff80ccea9b1bdfd4dd1e6a936d3a8e1246c11830a583e824fee6c1c5637d12
7
- data.tar.gz: 46ffb5c49910fbf7591b13b029c77e7e4a182fb5691d4e1865c720b95938e63a4457b395cd58f92cf709f9766e835105f67fd1e6a6729b54a2945412188397df
6
+ metadata.gz: ef87b54104a5a9639418c7f3c750bf5a4974cda227f515ddf8e25f57639e54ce8d2cd56042595ad8d4fc4212b610a66f205f60a632595230fee313faa4e84291
7
+ data.tar.gz: 7a730539aa6e18731ae6dae35c2ddb4ce3e2fdb872791d2323560a05523a4f4d936c6329f8669782daa3742474f601ec7e626d7f0d90032d50b290c38528d297
data/lib/full_stack.rb CHANGED
@@ -59,16 +59,16 @@ class FullStack
59
59
  end
60
60
 
61
61
  def launch_daemons
62
- puts "Using Vae daemons at #{vae_thrift_path}"
63
- if VaeLocal.port_open?(9090)
62
+ if VaeLocal.port_open?(9092)
63
+ puts "Starting Vae Frontend Compiler Service using Installation at #{vae_fcs_path}"
64
64
  @pids << fork {
65
- Dir.chdir("#{vae_thrift_path}/rb/")
65
+ Dir.chdir(vae_fcs_path)
66
66
  STDOUT.reopen("/dev/null", "w")
67
67
  STDERR.reopen("/dev/null", "w")
68
- exec "bundle exec ./vaerubyd.rb"
68
+ exec "bundle exec ./vaefcs.rb"
69
69
  }
70
70
  end
71
- port = 9091
71
+ port = 9100
72
72
  serve_root = @site.root
73
73
  loop {
74
74
  break if VaeLocal.port_open?(port)
@@ -81,9 +81,10 @@ class FullStack
81
81
  exec "bundle exec jekyll build --watch --source #{Shellwords.shellescape(@site.root)} --destination #{Shellwords.shellescape(serve_root)}"
82
82
  }
83
83
  end
84
+ ENV['VAE_LOCAL_VAEDB_PORT'] = port.to_s
84
85
  @pids << fork {
85
- Dir.chdir("#{vae_thrift_path}/cpp/")
86
- ENV['VAE_LOCAL_VAEDB_PORT'] = port.to_s
86
+ Dir.chdir(vaedb_path)
87
+ puts "Starting Vaedb on Port #{port} using Installation at #{vaedb_path}"
87
88
  exec "./vaedb --port #{port} --busaddress 'tcp://*:#{port-4000}' --test --log_level #{options[:log_level]}"
88
89
  }
89
90
  @pids << fork {
@@ -100,29 +101,31 @@ class FullStack
100
101
  }
101
102
  end
102
103
 
104
+ def vaedb_path
105
+ @vaedb_path ||= find_dependency_project("vaedb", "vaedb", "Vaedb")
106
+ end
107
+
108
+ def vae_fcs_path
109
+ @vae_fcs_path ||= find_dependency_project("vae-frontend-compiler-service", "vaefcs.rb", "Vae Frontend Compiler Service")
110
+ end
111
+
103
112
  def vae_remote_path
104
- return @vae_remote_path if @vae_remote_path
105
- thisdir = File.dirname(__FILE__)
106
- [ "#{thisdir}/../../vae_remote", "#{thisdir}/../../../vae_remote", "/usr/local/vae_remote", "/usr/local/opt/vae-remote", "/usr/local/Cellar/vae_remote/1.0.0", "~/vae_remote" ].each { |path|
107
- if File.exists?(path) and File.exists?(path + "/lib/general.php")
108
- return @vae_remote_path = path
109
- end
110
- }
111
- raise VaeError, "Could not find Vae Remote on your system.#{brew_message}"
113
+ @vae_remote_path ||= find_dependency_project("vae_remote", "lib/general.php", "Vae Remote")
112
114
  end
113
115
 
114
- def vae_thrift_path
115
- return @vae_thrift_path if @vae_thrift_path
116
+ def find_dependency_project(folder, main_file, name)
116
117
  thisdir = File.dirname(__FILE__)
117
- [ "#{thisdir}/../../vae_thrift", "#{thisdir}/../../../vae_thrift", "/usr/local/vae_thrift", "/usr/local/opt/vae-thrift", "/usr/local/Cellar/vae_thrift/1.0.0", "~/vae_thrift", "#{vae_remote_path}/tests/dependencies/vae_thrift" ].each { |path|
118
- if File.exists?(path) and File.exists?(path + "/cpp/vaedb")
119
- return @vae_thrift_path = path
118
+ paths = [ "#{thisdir}/../../#{folder}", "#{thisdir}/../../../#{folder}", "/usr/local/#{folder}", "/usr/local/opt/#{folder}", "/usr/local/Cellar/#{folder}/1.0.0", "~/#{folder}" ]
119
+ paths << "#{vae_remote_path}/tests/dependencies/#{folder}" if folder != "vae_remote"
120
+ paths.each { |path|
121
+ if File.exists?(path) and File.exists?("#{path}/#{main_file}")
122
+ return path
120
123
  end
121
124
  }
122
- raise VaeError, "Could not find Vae Thrift on your system.#{brew_message}"
125
+ raise VaeError, "Could not find #{name} on your system.#{brew_message}"
123
126
  end
124
127
 
125
128
  def brew_message
126
- "\n\nTo install Vae Local Full Stack dependencies on macOS via Homebrew, run the following commands:\n brew tap actionverb/tap\n brew install vae-remote vae-thrift vaeql\n\nMake sure you resolve any errors from Homebrew before proceeding."
129
+ "\n\nTo install Vae Local Full Stack dependencies on macOS via Homebrew, run the following commands:\n brew tap actionverb/tap\n brew install vae-frontend-compiler-service vae-remote vaedb vaeql\n\nMake sure you resolve any errors from Homebrew before proceeding."
127
130
  end
128
131
  end
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- VER = "0.7.3"
1
+ VER = "0.8.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Action Verb, LLC
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-13 00:00:00.000000000 Z
12
+ date: 2018-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chunky_png