From b276f7e867d08664acdbf92d2c94c145ff7d7013 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20H=C3=B8jberg?=
Date: Sat, 31 Mar 2012 17:57:15 +0200
Subject: [PATCH] added rack and updated readme and license
---
Gemfile | 3 +++
Gemfile.lock | 10 +++++++++
LICENSE | 21 ++++++++++++++++++
README.md | 6 +++++
config.ru | 13 +++++++++++
{css => public/css}/app.css | 0
{img => public/img}/blueprintbg.png | Bin
{img => public/img}/noisebg.png | Bin
index.html => public/index.html | 2 +-
{js => public/js}/lib/app.js | 0
{js => public/js}/lib/models/arrow.js | 0
.../js}/lib/views/arrow_configuration_view.js | 0
{js => public/js}/lib/views/arrow_css_view.js | 0
.../js}/lib/views/arrow_preview_view.js | 0
{js => public/js}/spec/app_spec.js | 0
{js => public/js}/spec/models/arrow_spec.js | 0
.../views/arrow_configuration_view_spec.js | 0
.../js}/spec/views/arrow_css_view_spec.js | 0
.../js}/spec/views/arrow_preview_view_spec.js | 0
{js => public/js}/spec_runner.html | 0
.../js}/vendor/jasmine/jasmine-html.js | 0
{js => public/js}/vendor/jasmine/jasmine.css | 0
{js => public/js}/vendor/jasmine/jasmine.js | 0
23 files changed, 54 insertions(+), 1 deletion(-)
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
create mode 100644 LICENSE
create mode 100644 config.ru
rename {css => public/css}/app.css (100%)
rename {img => public/img}/blueprintbg.png (100%)
rename {img => public/img}/noisebg.png (100%)
rename index.html => public/index.html (97%)
rename {js => public/js}/lib/app.js (100%)
rename {js => public/js}/lib/models/arrow.js (100%)
rename {js => public/js}/lib/views/arrow_configuration_view.js (100%)
rename {js => public/js}/lib/views/arrow_css_view.js (100%)
rename {js => public/js}/lib/views/arrow_preview_view.js (100%)
rename {js => public/js}/spec/app_spec.js (100%)
rename {js => public/js}/spec/models/arrow_spec.js (100%)
rename {js => public/js}/spec/views/arrow_configuration_view_spec.js (100%)
rename {js => public/js}/spec/views/arrow_css_view_spec.js (100%)
rename {js => public/js}/spec/views/arrow_preview_view_spec.js (100%)
rename {js => public/js}/spec_runner.html (100%)
rename {js => public/js}/vendor/jasmine/jasmine-html.js (100%)
rename {js => public/js}/vendor/jasmine/jasmine.css (100%)
rename {js => public/js}/vendor/jasmine/jasmine.js (100%)
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..4a104b3
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,3 @@
+source :rubygems
+
+gem 'rack'
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..b6a1e21
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,10 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ rack (1.4.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rack
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..881a7a5
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2012 Simon Højberg.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/README.md b/README.md
index e69de29..5c1b24d 100644
--- a/README.md
+++ b/README.md
@@ -0,0 +1,6 @@
+# CSS Arrow Please
+Generate the CSS for a tooltip arrow.
+Check it out at http://cssarrowplease.com
+
+## License
+CSSArrowPlease is Copyright © 2012 Simon Højberg. CSSArrowPlease is free software, and may be redistributed under the terms specified in the LICENSE file.
diff --git a/config.ru b/config.ru
new file mode 100644
index 0000000..75d690f
--- /dev/null
+++ b/config.ru
@@ -0,0 +1,13 @@
+use Rack::Static,
+ :urls => ["/css", "/img", '/js'],
+ :root => "public"
+
+run lambda { |env|
+ [
+ 200,
+ {
+ 'Content-Type' => 'text/html',
+ },
+ File.open('public/index.html', File::RDONLY)
+ ]
+}
diff --git a/css/app.css b/public/css/app.css
similarity index 100%
rename from css/app.css
rename to public/css/app.css
diff --git a/img/blueprintbg.png b/public/img/blueprintbg.png
similarity index 100%
rename from img/blueprintbg.png
rename to public/img/blueprintbg.png
diff --git a/img/noisebg.png b/public/img/noisebg.png
similarity index 100%
rename from img/noisebg.png
rename to public/img/noisebg.png
diff --git a/index.html b/public/index.html
similarity index 97%
rename from index.html
rename to public/index.html
index 7fa22f6..ae18f5f 100644
--- a/index.html
+++ b/public/index.html
@@ -53,7 +53,7 @@ Arrow configuration