lib/plezi/builders/app_builder.rb in plezi-0.12.17 vs lib/plezi/builders/app_builder.rb in plezi-0.12.18
- old
+ new
@@ -26,10 +26,11 @@
app_tree["templates"]["404.html.erb"] ||= IO.read(File.join(@root, "resources" ,"404.erb"))
app_tree["templates"]["500.html.erb"] ||= IO.read(File.join(@root, "resources" ,"500.erb"))
app_tree["templates"]["welcome.html.erb"] ||= IO.read(File.join(@root, "resources" ,"mini_welcome_page.html")).gsub('appname', app_name)
app_tree["assets"] ||= {}
app_tree["assets"]["websocket.js"] ||= IO.read(File.join(@root, "resources" ,"websockets.js")).gsub('appname', app_name)
+ app_tree["assets"]["plezi_client.js"] ||= IO.read(File.join(@root,"resources" ,"plezi_client.js")).gsub('appname', app_name)
finalize app_name
end
def build app_name = ARGV[1]
require 'plezi/version'
@@ -56,9 +57,10 @@
# set up the assets folder
app_tree["assets"] ||= {}
app_tree["assets"]["stylesheets"] ||= {}
app_tree["assets"]["javascripts"] ||= {}
app_tree["assets"]["javascripts"]["websocket.js"] ||= IO.read(File.join(@root,"resources" ,"websockets.js")).gsub('appname', app_name)
+ app_tree["assets"]["javascripts"]["plezi_client.js"] ||= IO.read(File.join(@root,"resources" ,"plezi_client.js")).gsub('appname', app_name)
app_tree["assets"]["welcome.html"] ||= IO.read(File.join(@root,"resources" ,"welcome_page.html")).gsub('appname', app_name)
# app core files.
app_tree["initialize.rb"] ||= IO.read File.join(@root,"resources" ,"initialize.rb").gsub('appname', app_name)
app_tree["routes.rb"] ||= IO.read File.join(@root,"resources" ,"routes.rb")