Permalink
Browse files

initial checkin

  • Loading branch information...
tobi committed Jun 5, 2008
0 parents commit cf989a683deaab0142930459bec327c14d420238
Showing 528 changed files with 39,396 additions and 0 deletions.
@@ -0,0 +1,36 @@
+# No log or backup files should be recorded
+*.log
+rails_monitor.*
+*.orig
+
+# We ignore all subversion directories underneath test and vendor
+.svn
+vendor/*/.svn
+test/*/.svn
+
+
+# ignore generated docs
+doc/api*
+
+# ignore osx dsstore files
+.DS_Store
+
+# no compressed js/css files
+public/*/admin.*
+
+# no love for tmp files
+tmp/*
+
+# no local theme / product images either
+public/files
+private/files
+
+*.orig
+
+.dotest
+
+# ignore schema.rb -- update and restore from schema.versioned.rb when appropriate
+db/schema.rb
+
+# ignore backups
+db/backup
@@ -0,0 +1,91 @@
+require 'rake/gempackagetask'
+require 'rake/contrib/rubyforgepublisher'
+require 'fileutils'
+require 'server/config/version'
+
+
+NAME = 'vision'
+FILE_ZIP = "#{NAME}-#{Vision.version}.zip"
+FILE_TGZ = "#{NAME}-#{Vision.version}.tgz"
+
+spec = Gem::Specification.new do |s|
+ s.name = NAME
+ s.version = Vision.version
+ s.has_rdoc = false
+ s.files = Dir.glob('**/*', File::FNM_DOTMATCH).reject do |f|
+ [ /\.$/, /^public/, /^exports/, /^misc/, /Rakefile$/, /\.log$/, /^pkg/, /\.svn/, /\~$/, /\/\._/, /\.DS/].any? {|regex| f =~ regex }
+ end
+ s.require_path = '.'
+ s.summary = 'Shopify Design Server'
+ s.author = "Tobias Luetke"
+ s.email = "tobi@jadedpixel.com"
+end
+
+Rake::GemPackageTask.new(spec) do |p|
+ p.gem_spec = spec
+ p.need_tar = false
+ p.need_zip = true
+end
+
+
+desc "Publish web page and all that jazz to shopify.com"
+task :publish => [:create_page, :copy_files] do
+ system("rsync --delete --progress -arz pkg/html/ vision.shopify.com:/u/apps/vision/current/public/")
+end
+
+desc "Release web page and all that jazz to shopify.com"
+task :release => [:publish]
+task :deploy => [:publish]
+
+desc "Create page"
+task :create_page do
+ require 'erb'
+ puts "Releasing version #{Vision.version}"
+ html = File.dirname(__FILE__) + '/pkg/html'
+ public = File.dirname(__FILE__) + '/public'
+
+ FileUtils.mkdir_p(html)
+ FileUtils.mkdir_p(html + '/stylesheets')
+ FileUtils.mkdir_p(html + '/images/corners')
+ FileUtils.mkdir_p(html + '/media')
+ FileUtils.mkdir_p(html + '/misc')
+
+ @version = Vision.version
+ @file_zip = FILE_ZIP
+ #@file_tgz = FILE_TGZ
+
+ file_list = Dir.glob('public/**/*')
+
+ file_list.reject! do |f|
+ [ /\.$/, /\.svn/, /\.DS/].any? {|regex| f =~ regex }
+ end
+
+ file_list.each do |f|
+ next if File.directory?(f)
+
+ f['public/'] = ''
+
+ if ['.xml', '.html'].include?(File.extname(f))
+ tmpl = ERB.new(File.read("#{public}/#{f}"))
+ File.open( "#{html}/#{f}", 'w+') do |fp|
+ fp << tmpl.result(binding)
+ end
+ else
+
+ FileUtils.cp("#{public}/#{f}", "#{html}/#{f}")
+
+ end
+
+
+ end
+
+
+end
+
+task :copy_files => [:package] do
+ html = 'pkg/html/files'
+ FileUtils.mkdir_p(html)
+
+ FileUtils.cp("pkg/#{FILE_ZIP}", "pkg/html/files")
+ #FileUtils.cp("pkg/#{FILE_TGZ}", "pkg/html/files")
+end
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDisplayName</key>
+ <string>Vision</string>
+ <key>CFBundleExecutable</key>
+ <string>Vision</string>
+ <key>CFBundleGetInfoString</key>
+ <string>Vision 1.0 Copyright 2006 Tobias Luetke</string>
+ <key>CFBundleIconFile</key>
+ <string>appIcon.icns</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.tobi.Vision</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>Vision</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSEnvironment</key>
+ <dict>
+ <key>APP_BUNDLER</key>
+ <string>Platypus-3.2</string>
+ </dict>
+ <key>LSHasLocalizedDisplayName</key>
+ <false/>
+ <key>LSUIElement</key>
+ <false/>
+ <key>NSAppleScriptEnabled</key>
+ <false/>
+ <key>NSHumanReadableCopyright</key>
+ <string>Vision 1.0 Copyright 2006 Tobias Luetke</string>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
Binary file not shown.
@@ -0,0 +1 @@
+APPL????
No changes.
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Creator</key>
+ <string>Platypus-3.2</string>
+ <key>EncryptAndChecksum</key>
+ <false/>
+ <key>IsDroppable</key>
+ <false/>
+ <key>OutputType</key>
+ <string>TextWindow</string>
+ <key>RemainRunningAfterCompletion</key>
+ <true/>
+ <key>RequiresAdminPrivileges</key>
+ <false/>
+ <key>ScriptInterpreter</key>
+ <string>/bin/bash</string>
+</dict>
+</plist>
Binary file not shown.
@@ -0,0 +1,4 @@
+CFBundleName = "Vision";
+CFBundleShortVersionString = "1.0";
+CFBundleGetInfoString = "Vision version 1.0 Copyright 2006 Tobias Luetke";
+NSHumanReadableCopyright = "Copyright 2006 Tobias Luetke.";

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+
+DIR="`dirname "$0"`"
+cd "$DIR/../../../"
+
+source ~/.profile &> /dev/null
+source ~/.bashrc &> /dev/null
+
+export PATH="/usr/local/bin:/opt/local/bin:/sw/local/bin:$PATH"
+RUBY="`which ruby`"
+
+if [[ -f "vision.rb" ]]; then
+ echo "Vision coming up..."
+ echo "=> `uname -sr` on `machine`"
+ echo "=> using $RUBY"
+ echo "=> `$RUBY -v`"
+else
+ echo "=> Could not find vision.rb in same directory as Vision.app"
+ echo "=> Please only use Vision.app when its in the original directory"
+ exit 1
+fi
+
+exec $RUBY vision.rb
+
+if [ 0 -ne $? ]; then
+ echo "*** Please visit http://help.shopify.com/design/show/VisionTroubleshooting for further assistence"
+fi
+
+exit 0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,10 @@
+#!/usr/bin/ruby
+
+vision = File.dirname(__FILE__) + '/../../../vision.rb'
+
+if File.exists?(vision)
+ require vision
+else
+ puts " => Could not find vision.rb"
+ puts " => Please copy Vision.app in the same directory as the vision.rb and the themes directory."
+end
@@ -0,0 +1,13 @@
+#!/bin/bash
+DIR=`dirname $0`
+cd "$DIR/../../../"
+
+if [[ -f "vision.rb" ]]; then
+ RUBY=`/usr/bin/env which ruby`
+ echo "Vision coming up..."
+ echo "=> using $RUBY"
+$RUBY vision.rb
+else
+ echo "=> Could not find vision.rb in same directory as Vision.app"
+ echo "=> Please only use Vision.app when its in the original directory"
+fi
@@ -0,0 +1,5 @@
+puts 'Trying to start browser...'
+
+system('start http://localhost:3000')
+
+getc
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
@@ -0,0 +1,28 @@
+<resource>
+<ProjectParams
+ Signature="/*@@ Generated by Wedit @@ */"
+ WedVersion="11"
+ DialogCount="0"
+ ProjectName="vision"
+ RcFile="C:\\Code\\C\\Vision\\vision.rc"
+ IncludeFile="C:\\Code\\C\\Vision\\vision.h"
+ CurrentDirectory="C:\\Code\\C\\Vision"
+ CallbackFile="C:\\Code\\C\\Vision\\vision_cbk.c"
+ GeneratedCFile="C:\\Code\\C\\Vision\\vision_gen.c"
+ GlobalControlStyles="43476"
+ NumberOfFonts="1"
+Font0="MS Sans Serif"
+/>
+<SYMBOLS>
+ <SYMBOL
+ Type="Container"
+ ID_Define="IDICON100"
+ ID-Value="100"
+ />
+</SYMBOLS>
+<ICON
+ ID_Define="IDICON100"
+ ID-Value="100"
+ Filename="c:\code\c\vision\vision.ico"
+/>
+</resource>
@@ -0,0 +1,14 @@
+/* --- The following code comes from C:\Code\lcc\lib\wizard\textmode.tpl. */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <windows.h>
+
+#define PROGNAME = 'Vision'
+
+int main(int argc,char *argv[])
+{
+ printf("Vision coming up...\n");
+ system("server\\bin\\ruby.exe vision.rb");
+ return 0;
+}
@@ -0,0 +1,13 @@
+/* Weditres generated include file. Do NOT edit */
+#include <windows.h>
+#include <lfc.h>
+#define IDICON100 100
+/*@ Prototypes @*/
+#ifndef WEDIT_PROTOTYPES
+#define WEDIT_PROTOTYPES
+#endif
+void SetDlgBkColor(HWND,COLORREF);
+BOOL APIENTRY HandleCtlColor(UINT,DWORD);
+extern void *GetDialogArguments(HWND);
+extern char *GetDico(int,long);
+/*@@ End Prototypes @@*/
Oops, something went wrong.

0 comments on commit cf989a6

Please sign in to comment.