vae 0.7.2 → 0.7.3

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
  SHA1:
3
- metadata.gz: 7b11fdcfa1bea4ede251a9e873e0f7a26949e41e
4
- data.tar.gz: 056e35277b00eb7efed32b3f26cd05d86742a4d6
3
+ metadata.gz: 9b95fc5024589647fe8a5ce90b61558bbc8c65e1
4
+ data.tar.gz: 6f978752af76b5550d52b20dcc914e6786e0feaf
5
5
  SHA512:
6
- metadata.gz: 33dd3ca9637e7a9858ac82436d5be96b98505e28a4f4991aefd29f46310c6e490e830eb5b30b5de020c17f2289d3d7600371a41ffe3d077cd3c7cdd30bf243de
7
- data.tar.gz: fcdac100f40415eb3c421332337c46461a89094020a87a75ca999de62fa3cfdfdd4b014934fa8efc2ee8465b0f6960196f832c039c83ec39cce847b4387c226c
6
+ metadata.gz: ce47bba6853b2295f51bed8c083e9db6ba6871fb3a254fe20fe41e03f117033f3dff80ccea9b1bdfd4dd1e6a936d3a8e1246c11830a583e824fee6c1c5637d12
7
+ data.tar.gz: 46ffb5c49910fbf7591b13b029c77e7e4a182fb5691d4e1865c720b95938e63a4457b395cd58f92cf709f9766e835105f67fd1e6a6729b54a2945412188397df
data/lib/full_stack.rb CHANGED
@@ -91,7 +91,12 @@ class FullStack
91
91
  ENV['VAE_LOCAL_BACKSTAGE'] = @site.subdomain + ".vaeplatform." + (ENV['VAEPLATFORM_LOCAL'] ? "dev" : "com")
92
92
  ENV['VAE_LOCAL_SECRET_KEY'] = @site.secret_key
93
93
  ENV['VAE_LOCAL_DATA_PATH'] = @site.data_path
94
- exec "php -c #{vae_remote_path}/tests/dependencies/php.ini -S 0.0.0.0:#{options[:port]} #{vae_remote_path}/lib/index.php"
94
+ if options[:php_runtime] == "hhvm"
95
+ ENV['VAE_LOCAL_HHVM'] = "1"
96
+ exec "hhvm -c #{vae_remote_path}/tests/dependencies/php.ini -m server -d hhvm.pid_file=/tmp/vae_local.hhvm.pid -d auto_prepend_file=#{vae_remote_path}/lib/index.php -d hhvm.server.default_document=#{vae_remote_path}/lib/index.php -d hhvm.server.error_document404=#{vae_remote_path}/lib/index.php -d hhvm.server.port=#{options[:port]} -d hhvm.server.source_root=#{Shellwords.shellescape(@site.root)}"
97
+ else
98
+ exec "php -c #{vae_remote_path}/tests/dependencies/php.ini -S 0.0.0.0:#{options[:port]} #{vae_remote_path}/lib/index.php"
99
+ end
95
100
  }
96
101
  end
97
102
 
data/lib/vae_local.rb CHANGED
@@ -63,7 +63,7 @@ class VaeLocal
63
63
  opts.on("-p","--port <port number>","Start server on this port") { |o| options[:port] = o.to_i; raise VaeError "Port #{o.to_i} is already in use." unless VaeLocal.port_open?(o.to_i) }
64
64
  opts.on("-r","--root <path to site root>","Path to the root of the local copy of your Vae site.") { |o| options[:site_root] = o }
65
65
  opts.on("-s","--site <subdomain>","Vae subdomain for this site") { |o| options[:site] = o }
66
- opts.on("-f","--full-stack","Run in Full Stack Mode (experimental)") { options[:server] = FullStack }
66
+ opts.on("-f","--full-stack [php|hhvm]","Run in Full Stack Mode. Optionally provide 'php' or 'hhvm' to specify your preferred PHP runtime") { |o| options[:server] = FullStack; options[:php_runtime] = o }
67
67
  opts.on("-b","--branch","If running stage or stagerelease, override the branch to deploy here") { |o| options[:branch] = o }
68
68
  opts.on("-d","--data-path <path>","Where to Store Content and Image Data When In Full Stack Mode") { |o| options[:data_path] = o }
69
69
  opts.on("-l","--log-level <level>","Vaedb Log Level (for Full Stack Mode)") { |o| options[:log_level] = o }
@@ -142,7 +142,7 @@ class VaeLocal
142
142
  return
143
143
  end
144
144
  req = Net::HTTP::Post.new("/api/local/v1/#{action}")
145
- req.body = "username=#{CGI.escape(username)}&password=#{CGI.escape(password)}&branch=#{CGI.escape(branch)}&vae_local=1"
145
+ req.body = "username=#{CGI.escape(username)}&password=#{CGI.escape(password)}&branch=#{CGI.escape(branch || "")}&vae_local=1"
146
146
  res = VaeLocal.fetch_from_vaeplatform(site, req)
147
147
  if res.is_a?(Net::HTTPFound)
148
148
  raise VaeError, "Invalid username/password or insufficient permissions."
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- VER = "0.7.2"
1
+ VER = "0.7.3"
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.2
4
+ version: 0.7.3
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-04-14 00:00:00.000000000 Z
12
+ date: 2017-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chunky_png