mercury 0.5.5 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Mercury.gemspec +7 -4
- data/README.rdoc +37 -1
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/mercury.rb +11 -1
- data/lib/public/javascripts/{jquery-ui-1.8rc2.custom.min.js → jquery-ui-1.8rc3.custom.min.js} +48 -48
- data/lib/public/stylesheets/app.css +1 -23
- data/lib/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/lib/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/lib/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/lib/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/public/stylesheets/smoothness/{jquery-ui-1.8rc2.custom.css → jquery-ui-1.8rc3.custom.css} +0 -0
- data/lib/views/index.haml +30 -5
- data/lib/views/layout.haml +11 -17
- metadata +14 -4
data/Mercury.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mercury}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.6.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tom Wilson"]
|
12
|
-
s.date = %q{2010-03-
|
12
|
+
s.date = %q{2010-03-04}
|
13
13
|
s.default_executable = %q{mercury}
|
14
14
|
s.description = %q{Mercury allows you to create directory and start writting haml, html, css, etc to build wireframes for your user design.}
|
15
15
|
s.email = %q{thing2@jackhq.com}
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
|
|
30
30
|
"lib/mercury.rb",
|
31
31
|
"lib/public/favicon.ico",
|
32
32
|
"lib/public/javascripts/jquery-1.4.2.min.js",
|
33
|
-
"lib/public/javascripts/jquery-ui-1.
|
33
|
+
"lib/public/javascripts/jquery-ui-1.8rc3.custom.min.js",
|
34
34
|
"lib/public/stylesheets/960.css",
|
35
35
|
"lib/public/stylesheets/app.css",
|
36
36
|
"lib/public/stylesheets/reset.css",
|
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
"lib/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png",
|
48
48
|
"lib/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png",
|
49
49
|
"lib/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png",
|
50
|
-
"lib/public/stylesheets/smoothness/jquery-ui-1.
|
50
|
+
"lib/public/stylesheets/smoothness/jquery-ui-1.8rc3.custom.css",
|
51
51
|
"lib/public/stylesheets/text.css",
|
52
52
|
"lib/views/index.haml",
|
53
53
|
"lib/views/layout.haml",
|
@@ -72,13 +72,16 @@ Gem::Specification.new do |s|
|
|
72
72
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
73
73
|
s.add_runtime_dependency(%q<sinatra>, [">= 0.9.4"])
|
74
74
|
s.add_runtime_dependency(%q<haml>, [">= 2.2.20"])
|
75
|
+
s.add_runtime_dependency(%q<faker>, [">= 0"])
|
75
76
|
else
|
76
77
|
s.add_dependency(%q<sinatra>, [">= 0.9.4"])
|
77
78
|
s.add_dependency(%q<haml>, [">= 2.2.20"])
|
79
|
+
s.add_dependency(%q<faker>, [">= 0"])
|
78
80
|
end
|
79
81
|
else
|
80
82
|
s.add_dependency(%q<sinatra>, [">= 0.9.4"])
|
81
83
|
s.add_dependency(%q<haml>, [">= 2.2.20"])
|
84
|
+
s.add_dependency(%q<faker>, [">= 0"])
|
82
85
|
end
|
83
86
|
end
|
84
87
|
|
data/README.rdoc
CHANGED
@@ -4,12 +4,17 @@ Mercury is a command line application that makes it dirt simple to create
|
|
4
4
|
html forms(wireframes) using the following technology:
|
5
5
|
|
6
6
|
* haml
|
7
|
+
* sass
|
7
8
|
* jquery
|
8
9
|
* jquery-ui
|
9
10
|
|
10
11
|
== Why
|
11
12
|
|
12
|
-
Using textmate, haml, and jquery to create slick ui designs is a great and fluid process
|
13
|
+
Using textmate, haml, sass, and jquery to create slick ui designs is a great and fluid process.
|
14
|
+
|
15
|
+
Mercury makes it easy to use these technologies with out have to create a web framework server, it removes that from the picture.
|
16
|
+
|
17
|
+
So with mercury you use the haml, jquery, jquery-ui, with just a simple command. You don't have to know ruby, all you have to do is to run "mercury [myproject]", open the views folder and start creating .haml files.
|
13
18
|
|
14
19
|
== Install
|
15
20
|
|
@@ -68,6 +73,37 @@ Using textmate, haml, and jquery to create slick ui designs is a great and fluid
|
|
68
73
|
And you should see you index page with a link to your test.haml form
|
69
74
|
|
70
75
|
You can create more haml documents, and you can create subfolders and organize your wireframes however you want, and you never have to write a line of code, other than haml.
|
76
|
+
|
77
|
+
===Using Sass
|
78
|
+
|
79
|
+
# Create your sass file
|
80
|
+
|
81
|
+
!x = blue
|
82
|
+
.profile
|
83
|
+
color = !x
|
84
|
+
|
85
|
+
# save test.sass
|
86
|
+
|
87
|
+
# now in your haml file simply
|
88
|
+
|
89
|
+
= sass '/test.sass'
|
90
|
+
|
91
|
+
===Using Javascript
|
92
|
+
|
93
|
+
# Create you js file
|
94
|
+
|
95
|
+
$(function() {
|
96
|
+
alert('this rocks!');
|
97
|
+
})
|
98
|
+
|
99
|
+
# save test.js
|
100
|
+
|
101
|
+
# now in your haml file simply
|
102
|
+
|
103
|
+
= javascript '/test.js'
|
104
|
+
|
105
|
+
|
106
|
+
|
71
107
|
|
72
108
|
== Note on Patches/Pull Requests
|
73
109
|
|
data/Rakefile
CHANGED
@@ -12,6 +12,7 @@ begin
|
|
12
12
|
gem.authors = ["Tom Wilson"]
|
13
13
|
gem.add_dependency "sinatra", ">= 0.9.4"
|
14
14
|
gem.add_dependency "haml", ">= 2.2.20"
|
15
|
+
gem.add_dependency "faker", ">= 0"
|
15
16
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
17
|
end
|
17
18
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.6.0
|
data/lib/mercury.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
require 'sinatra'
|
2
2
|
require 'haml'
|
3
|
+
require 'sass'
|
3
4
|
require 'fileutils'
|
5
|
+
require 'faker'
|
4
6
|
|
5
7
|
class Mercury < Sinatra::Application
|
6
8
|
set :root, FileUtils.pwd.gsub("\n",'')
|
7
9
|
set :public, File.dirname(__FILE__) + '/public'
|
8
10
|
|
9
|
-
|
10
11
|
get '/*' do
|
11
12
|
unless params["splat"][0].empty?
|
12
13
|
haml params["splat"][0].to_sym, :layout => open(File.dirname(__FILE__) + '/views/layout.haml','r').read
|
@@ -15,4 +16,13 @@ class Mercury < Sinatra::Application
|
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
19
|
+
def sass(sassfile)
|
20
|
+
"<style type='text/css'>\n" + Sass::Engine.new(open(options.views + sassfile, 'r').read).render + "\n</style>\n"
|
21
|
+
end
|
22
|
+
|
23
|
+
def javascript(jsfile)
|
24
|
+
"<script type='text/javascript'>\n" + open(options.views + jsfile, 'r').read + "\n</script>\n"
|
25
|
+
end
|
26
|
+
|
27
|
+
|
18
28
|
end
|
data/lib/public/javascripts/{jquery-ui-1.8rc2.custom.min.js → jquery-ui-1.8rc3.custom.min.js}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI 1.
|
2
|
+
* jQuery UI 1.8rc3
|
3
3
|
*
|
4
4
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
5
5
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -7,7 +7,7 @@
|
|
7
7
|
*
|
8
8
|
* http://docs.jquery.com/UI
|
9
9
|
*/
|
10
|
-
* jQuery UI 1.
|
10
|
+
* jQuery UI 1.8rc3
|
11
11
|
*
|
12
12
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
13
13
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -15,8 +15,8 @@
|
|
15
15
|
*
|
16
16
|
* http://docs.jquery.com/UI
|
17
17
|
*/
|
18
|
-
jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<1.9);b.ui={version:"1.
|
19
|
-
* jQuery UI Widget 1.
|
18
|
+
jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<1.9);b.ui={version:"1.8rc3",plugin:{add:function(d,e,g){var f=b.ui[d].prototype;for(var c in g){f.plugins[c]=f.plugins[c]||[];f.plugins[c].push([e,g[c]])}},call:function(c,e,d){var g=c.plugins[e];if(!g||!c.element[0].parentNode){return}for(var f=0;f<g.length;f++){if(c.options[g[f][0]]){g[f][1].apply(c.element,d)}}}},contains:function(d,c){return document.compareDocumentPosition?d.compareDocumentPosition(c)&16:d!==c&&d.contains(c)},hasScroll:function(f,d){if(b(f).css("overflow")=="hidden"){return false}var c=(d&&d=="left")?"scrollLeft":"scrollTop",e=false;if(f[c]>0){return true}f[c]=1;e=(f[c]>0);f[c]=0;return e},isOverAxis:function(d,c,e){return(d>c)&&(d<(c+e))},isOver:function(h,d,g,f,c,e){return b.ui.isOverAxis(h,g,c)&&b.ui.isOverAxis(d,f,e)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};b.fn.extend({_focus:b.fn.focus,focus:function(c,d){return typeof c==="number"?this.each(function(){var e=this;setTimeout(function(){b(e).focus();(d&&d.call(e))},c)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var c;if((b.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){c=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(b.curCSS(this,"position",1))&&(/(auto|scroll)/).test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0)}else{c=this.parents().filter(function(){return(/(auto|scroll)/).test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!c.length?b(document):c},zIndex:function(f){if(f!==undefined){return this.css("zIndex",f)}if(this.length){var d=b(this[0]),c,e;while(d.length&&d[0]!==document){c=d.css("position");if(c=="absolute"||c=="relative"||c=="fixed"){e=parseInt(d.css("zIndex"));if(!isNaN(e)&&e!=0){return e}}d=d.parent()}}return 0}});b.extend(b.expr[":"],{data:function(e,d,c){return !!b.data(e,c[3])},focusable:function(d){var e=d.nodeName.toLowerCase(),c=b.attr(d,"tabindex");return(/input|select|textarea|button|object/.test(e)?!d.disabled:"a"==e||"area"==e?d.href||!isNaN(c):!isNaN(c))&&!b(d)["area"==e?"parents":"closest"](":hidden").length},tabbable:function(d){var c=b.attr(d,"tabindex");return(isNaN(c)||c>=0)&&b(d).is(":focusable")}})})(jQuery);;/*!
|
19
|
+
* jQuery UI Widget 1.8rc3
|
20
20
|
*
|
21
21
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
22
22
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -24,7 +24,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
24
24
|
*
|
25
25
|
* http://docs.jquery.com/UI/Widget
|
26
26
|
*/
|
27
|
-
* jQuery UI Widget 1.
|
27
|
+
* jQuery UI Widget 1.8rc3
|
28
28
|
*
|
29
29
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
30
30
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -33,7 +33,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
33
33
|
* http://docs.jquery.com/UI/Widget
|
34
34
|
*/
|
35
35
|
(function(b){var a=b.fn.remove;b.fn.remove=function(c,d){return this.each(function(){if(!d){if(!c||b.filter(c,[this]).length){b("*",this).add(this).each(function(){b(this).triggerHandler("remove")})}}return a.call(b(this),c,d)})};b.widget=function(d,f,c){var e=d.split(".")[0],h;d=d.split(".")[1];h=e+"-"+d;if(!c){c=f;f=b.Widget}b.expr[":"][h]=function(i){return !!b.data(i,d)};b[e]=b[e]||{};b[e][d]=function(i,j){if(arguments.length){this._createWidget(i,j)}};var g=new f();g.options=b.extend({},g.options);b[e][d].prototype=b.extend(true,g,{namespace:e,widgetName:d,widgetEventPrefix:b[e][d].prototype.widgetEventPrefix||d,widgetBaseClass:h},c);b.widget.bridge(d,b[e][d])};b.widget.bridge=function(d,c){b.fn[d]=function(g){var e=typeof g==="string",f=Array.prototype.slice.call(arguments,1),h=this;g=!e&&f.length?b.extend.apply(null,[true,g].concat(f)):g;if(e&&g.substring(0,1)==="_"){return h}if(e){this.each(function(){var i=b.data(this,d),j=i&&b.isFunction(i[g])?i[g].apply(i,f):i;if(j!==i&&j!==undefined){h=j;return false}})}else{this.each(function(){var i=b.data(this,d);if(i){if(g){i.option(g)}i._init()}else{b.data(this,d,new c(g,this))}})}return h}};b.Widget=function(c,d){if(arguments.length){this._createWidget(c,d)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(d,e){this.element=b(e).data(this.widgetName,this);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(e)[this.widgetName],d);var c=this;this.element.bind("remove."+this.widgetName,function(){c.destroy()});this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled")},widget:function(){return this.element},option:function(e,f){var d=e,c=this;if(arguments.length===0){return b.extend({},c.options)}if(typeof e==="string"){if(f===undefined){return this.options[e]}d={};d[e]=f}b.each(d,function(g,h){c._setOption(g,h)});return c},_setOption:function(c,d){this.options[c]=d;if(c==="disabled"){this.widget()[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",d)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,e,f){var h=this.options[d];e=b.Event(e);e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();f=f||{};if(e.originalEvent){for(var c=b.event.props.length,g;c;){g=b.event.props[--c];e[g]=e.originalEvent[g]}}this.element.trigger(e,f);return !(b.isFunction(h)&&h.call(this.element[0],e,f)===false||e.isDefaultPrevented())}}})(jQuery);;/*!
|
36
|
-
* jQuery UI Mouse 1.
|
36
|
+
* jQuery UI Mouse 1.8rc3
|
37
37
|
*
|
38
38
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
39
39
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -44,7 +44,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
44
44
|
* Depends:
|
45
45
|
* jquery.ui.widget.js
|
46
46
|
*/
|
47
|
-
* jQuery UI Mouse 1.
|
47
|
+
* jQuery UI Mouse 1.8rc3
|
48
48
|
*
|
49
49
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
50
50
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -56,7 +56,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
56
56
|
* jquery.ui.widget.js
|
57
57
|
*/
|
58
58
|
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(c){return b._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(b._preventClickEvent){b._preventClickEvent=false;c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};if(d.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(d));this._mouseDownEvent=d;var c=this,e=(d.which==1),b=(typeof this.options.cancel=="string"?a(d.target).parents().add(d.target).filter(this.options.cancel).length:false);if(!e||b||!this._mouseCapture(d)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(d)!==false);if(!this._mouseStarted){d.preventDefault();return true}}this._mouseMoveDelegate=function(f){return c._mouseMove(f)};this._mouseUpDelegate=function(f){return c._mouseUp(f)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(a.browser.safari||d.preventDefault());d.originalEvent.mouseHandled=true;return true},_mouseMove:function(b){if(a.browser.msie&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,b)!==false);(this._mouseStarted?this._mouseDrag(b):this._mouseUp(b))}return !this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(b.target==this._mouseDownEvent.target);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return(Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance)},_mouseDelayMet:function(b){return this.mouseDelayMet},_mouseStart:function(b){},_mouseDrag:function(b){},_mouseStop:function(b){},_mouseCapture:function(b){return true}})})(jQuery);;/*
|
59
|
-
* jQuery UI Position 1.
|
59
|
+
* jQuery UI Position 1.8rc3
|
60
60
|
*
|
61
61
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
62
62
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -64,7 +64,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
64
64
|
*
|
65
65
|
* http://docs.jquery.com/UI/Position
|
66
66
|
*/
|
67
|
-
* jQuery UI Draggable 1.
|
67
|
+
* jQuery UI Draggable 1.8rc3
|
68
68
|
*
|
69
69
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
70
70
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -76,8 +76,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
76
76
|
* jquery.ui.core.js
|
77
77
|
* jquery.ui.mouse.js
|
78
78
|
* jquery.ui.widget.js
|
79
|
-
*/
|
80
|
-
* jQuery UI Droppable 1.
|
79
|
+
*/
|
80
|
+
* jQuery UI Droppable 1.8rc3
|
81
81
|
*
|
82
82
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
83
83
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -90,8 +90,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
90
90
|
* jquery.ui.widget.js
|
91
91
|
* jquery.ui.mouse.js
|
92
92
|
* jquery.ui.draggable.js
|
93
|
-
*/
|
94
|
-
* jQuery UI Resizable 1.
|
93
|
+
*/
|
94
|
+
* jQuery UI Resizable 1.8rc3
|
95
95
|
*
|
96
96
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
97
97
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -103,8 +103,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
103
103
|
* jquery.ui.core.js
|
104
104
|
* jquery.ui.mouse.js
|
105
105
|
* jquery.ui.widget.js
|
106
|
-
*/
|
107
|
-
* jQuery UI Selectable 1.
|
106
|
+
*/
|
107
|
+
* jQuery UI Selectable 1.8rc3
|
108
108
|
*
|
109
109
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
110
110
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -116,8 +116,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
116
116
|
* jquery.ui.core.js
|
117
117
|
* jquery.ui.mouse.js
|
118
118
|
* jquery.ui.widget.js
|
119
|
-
*/
|
120
|
-
* jQuery UI Sortable 1.
|
119
|
+
*/
|
120
|
+
* jQuery UI Sortable 1.8rc3
|
121
121
|
*
|
122
122
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
123
123
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -129,8 +129,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
129
129
|
* jquery.ui.core.js
|
130
130
|
* jquery.ui.mouse.js
|
131
131
|
* jquery.ui.widget.js
|
132
|
-
*/
|
133
|
-
* jQuery UI Accordion 1.
|
132
|
+
*/
|
133
|
+
* jQuery UI Accordion 1.8rc3
|
134
134
|
*
|
135
135
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
136
136
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -141,8 +141,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
141
141
|
* Depends:
|
142
142
|
* jquery.ui.core.js
|
143
143
|
* jquery.ui.widget.js
|
144
|
-
*/
|
145
|
-
* jQuery UI Autocomplete 1.
|
144
|
+
*/
|
145
|
+
* jQuery UI Autocomplete 1.8rc3
|
146
146
|
*
|
147
147
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
148
148
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -154,8 +154,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
154
154
|
* jquery.ui.core.js
|
155
155
|
* jquery.ui.widget.js
|
156
156
|
* jquery.ui.position.js
|
157
|
-
*/
|
158
|
-
* jQuery UI Button 1.
|
157
|
+
*/
|
158
|
+
* jQuery UI Button 1.8rc3
|
159
159
|
*
|
160
160
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
161
161
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -166,8 +166,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
166
166
|
* Depends:
|
167
167
|
* jquery.ui.core.js
|
168
168
|
* jquery.ui.widget.js
|
169
|
-
*/
|
170
|
-
* jQuery UI Dialog 1.
|
169
|
+
*/
|
170
|
+
* jQuery UI Dialog 1.8rc3
|
171
171
|
*
|
172
172
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
173
173
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -183,8 +183,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
183
183
|
* jquery.ui.mouse.js
|
184
184
|
* jquery.ui.position.js
|
185
185
|
* jquery.ui.resizable.js
|
186
|
-
*/
|
187
|
-
* jQuery UI Slider 1.
|
186
|
+
*/
|
187
|
+
* jQuery UI Slider 1.8rc3
|
188
188
|
*
|
189
189
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
190
190
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -196,8 +196,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
196
196
|
* jquery.ui.core.js
|
197
197
|
* jquery.ui.mouse.js
|
198
198
|
* jquery.ui.widget.js
|
199
|
-
*/
|
200
|
-
* jQuery UI Tabs 1.
|
199
|
+
*/
|
200
|
+
* jQuery UI Tabs 1.8rc3
|
201
201
|
*
|
202
202
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
203
203
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -208,8 +208,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
208
208
|
* Depends:
|
209
209
|
* jquery.ui.core.js
|
210
210
|
* jquery.ui.widget.js
|
211
|
-
*/
|
212
|
-
* jQuery UI Datepicker 1.
|
211
|
+
*/
|
212
|
+
* jQuery UI Datepicker 1.8rc3
|
213
213
|
*
|
214
214
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
215
215
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -219,8 +219,8 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
219
219
|
*
|
220
220
|
* Depends:
|
221
221
|
* jquery.ui.core.js
|
222
|
-
*/
|
223
|
-
* jQuery UI Progressbar 1.
|
222
|
+
*/
|
223
|
+
* jQuery UI Progressbar 1.8rc3
|
224
224
|
*
|
225
225
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
226
226
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -231,16 +231,16 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
231
231
|
* Depends:
|
232
232
|
* jquery.ui.core.js
|
233
233
|
* jquery.ui.widget.js
|
234
|
-
*/
|
235
|
-
* jQuery UI Effects 1.
|
234
|
+
*/
|
235
|
+
* jQuery UI Effects 1.8rc3
|
236
236
|
*
|
237
237
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
238
238
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
239
239
|
* and GPL (GPL-LICENSE.txt) licenses.
|
240
240
|
*
|
241
241
|
* http://docs.jquery.com/UI/Effects/
|
242
|
-
*/
|
243
|
-
* jQuery UI Effects Blind 1.
|
242
|
+
*/
|
243
|
+
* jQuery UI Effects Blind 1.8rc3
|
244
244
|
*
|
245
245
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
246
246
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -251,7 +251,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
251
251
|
* Depends:
|
252
252
|
* jquery.effects.core.js
|
253
253
|
*/
|
254
|
-
* jQuery UI Effects Bounce 1.
|
254
|
+
* jQuery UI Effects Bounce 1.8rc3
|
255
255
|
*
|
256
256
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
257
257
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -262,7 +262,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
262
262
|
* Depends:
|
263
263
|
* jquery.effects.core.js
|
264
264
|
*/
|
265
|
-
* jQuery UI Effects Clip 1.
|
265
|
+
* jQuery UI Effects Clip 1.8rc3
|
266
266
|
*
|
267
267
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
268
268
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -273,7 +273,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
273
273
|
* Depends:
|
274
274
|
* jquery.effects.core.js
|
275
275
|
*/
|
276
|
-
* jQuery UI Effects Drop 1.
|
276
|
+
* jQuery UI Effects Drop 1.8rc3
|
277
277
|
*
|
278
278
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
279
279
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -284,7 +284,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
284
284
|
* Depends:
|
285
285
|
* jquery.effects.core.js
|
286
286
|
*/
|
287
|
-
* jQuery UI Effects Explode 1.
|
287
|
+
* jQuery UI Effects Explode 1.8rc3
|
288
288
|
*
|
289
289
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
290
290
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -295,7 +295,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
295
295
|
* Depends:
|
296
296
|
* jquery.effects.core.js
|
297
297
|
*/
|
298
|
-
* jQuery UI Effects Fold 1.
|
298
|
+
* jQuery UI Effects Fold 1.8rc3
|
299
299
|
*
|
300
300
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
301
301
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -306,7 +306,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
306
306
|
* Depends:
|
307
307
|
* jquery.effects.core.js
|
308
308
|
*/
|
309
|
-
* jQuery UI Effects Highlight 1.
|
309
|
+
* jQuery UI Effects Highlight 1.8rc3
|
310
310
|
*
|
311
311
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
312
312
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -317,7 +317,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
317
317
|
* Depends:
|
318
318
|
* jquery.effects.core.js
|
319
319
|
*/
|
320
|
-
* jQuery UI Effects Pulsate 1.
|
320
|
+
* jQuery UI Effects Pulsate 1.8rc3
|
321
321
|
*
|
322
322
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
323
323
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -328,7 +328,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
328
328
|
* Depends:
|
329
329
|
* jquery.effects.core.js
|
330
330
|
*/
|
331
|
-
* jQuery UI Effects Scale 1.
|
331
|
+
* jQuery UI Effects Scale 1.8rc3
|
332
332
|
*
|
333
333
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
334
334
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -339,7 +339,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
339
339
|
* Depends:
|
340
340
|
* jquery.effects.core.js
|
341
341
|
*/
|
342
|
-
* jQuery UI Effects Shake 1.
|
342
|
+
* jQuery UI Effects Shake 1.8rc3
|
343
343
|
*
|
344
344
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
345
345
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -350,7 +350,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
350
350
|
* Depends:
|
351
351
|
* jquery.effects.core.js
|
352
352
|
*/
|
353
|
-
* jQuery UI Effects Slide 1.
|
353
|
+
* jQuery UI Effects Slide 1.8rc3
|
354
354
|
*
|
355
355
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
356
356
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -361,7 +361,7 @@ jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<
|
|
361
361
|
* Depends:
|
362
362
|
* jquery.effects.core.js
|
363
363
|
*/
|
364
|
-
* jQuery UI Effects Transfer 1.
|
364
|
+
* jQuery UI Effects Transfer 1.8rc3
|
365
365
|
*
|
366
366
|
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
367
367
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
@@ -1,14 +1,5 @@
|
|
1
|
-
#
|
2
|
-
background: #4C4C4C;
|
3
|
-
color:#E6E6E6;
|
4
|
-
}
|
5
|
-
|
6
|
-
#wrap{
|
7
|
-
margin-bottom:20px;
|
8
|
-
}
|
9
|
-
#footer{
|
1
|
+
#tool-footer{
|
10
2
|
margin-top:20px;
|
11
|
-
|
12
3
|
color:#4C4C4C;
|
13
4
|
}
|
14
5
|
|
@@ -33,16 +24,3 @@ table.show {
|
|
33
24
|
border:2px solid #d5d0d2;
|
34
25
|
|
35
26
|
}
|
36
|
-
|
37
|
-
#wrap a {
|
38
|
-
color:#150029;
|
39
|
-
font-size:1.2em;
|
40
|
-
text-decoration:none;
|
41
|
-
padding:5px;
|
42
|
-
background-color:#E6E6E6;
|
43
|
-
}
|
44
|
-
|
45
|
-
#wrap a:hover {
|
46
|
-
background-color:#150029;
|
47
|
-
color:#fff;
|
48
|
-
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/public/stylesheets/smoothness/{jquery-ui-1.8rc2.custom.css → jquery-ui-1.8rc3.custom.css}
RENAMED
File without changes
|
data/lib/views/index.haml
CHANGED
@@ -1,10 +1,35 @@
|
|
1
|
+
:erb
|
2
|
+
<style type="text/css">
|
3
|
+
:sass
|
4
|
+
ul#pages
|
5
|
+
list-style: none
|
6
|
+
li
|
7
|
+
border: 2px solid gray
|
8
|
+
padding: 10px
|
9
|
+
font-size: 1.25em
|
10
|
+
|
11
|
+
:erb
|
12
|
+
</style>
|
13
|
+
|
14
|
+
:javascript
|
15
|
+
$(function() {
|
16
|
+
$('#pages').children().mouseover(function(){
|
17
|
+
$(this).css('background-color','yellow');
|
18
|
+
});
|
19
|
+
$('#pages').children().mouseout(function(){
|
20
|
+
$(this).css('background-color','transparent');
|
21
|
+
});
|
22
|
+
$('#pages').children().click(function(){
|
23
|
+
window.location = $(this).attr('data-href');
|
24
|
+
});
|
25
|
+
|
26
|
+
})
|
1
27
|
#wrap.grid_16
|
2
28
|
%h2 Wireframe Mockups
|
3
|
-
%
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
%a{:href => f.gsub(/views/,'').match(/(.*).haml$/)[1]}= f.match(/\/(.*).haml$/)[1]
|
29
|
+
%ul#pages
|
30
|
+
- Dir.glob('views/**/*.haml').each do |f|
|
31
|
+
- unless f =~ /index/ or f =~ /layout/
|
32
|
+
%li{:'data-href' => f.gsub(/views/,'').match(/(.*).haml$/)[1]}= f.match(/\/(.*).haml$/)[1]
|
8
33
|
|
9
34
|
|
10
35
|
|
data/lib/views/layout.haml
CHANGED
@@ -2,24 +2,18 @@
|
|
2
2
|
%html{ :xmlns => "http://www.w3.org/1999/xhtml", :lang => "en", 'xml:lang' => "en" }
|
3
3
|
%head
|
4
4
|
%title Mercury
|
5
|
-
- ['reset','text','960','smoothness/jquery-ui-1.
|
5
|
+
- ['reset','text','960','smoothness/jquery-ui-1.8rc3.custom', 'app'].each do |css|
|
6
6
|
%link{ :href => "/stylesheets/#{css}.css", :rel => "stylesheet", :type => "text/css", :media => "screen", :charset => "utf-8" }
|
7
7
|
%body
|
8
|
-
- ['jquery-1.4.2.min', 'jquery-ui-1.
|
8
|
+
- ['jquery-1.4.2.min', 'jquery-ui-1.8rc3.custom.min'].each do |js|
|
9
9
|
%script{:src => "/javascripts/#{js}.js", :type => 'text/javascript'}
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
.clear
|
21
|
-
#footer
|
22
|
-
.container_12
|
23
|
-
.grid_4.prefix_8
|
24
|
-
%p Jack Russell Software Company, LLC
|
25
|
-
|
11
|
+
.container_16
|
12
|
+
= yield
|
13
|
+
#tool-footer.container_12
|
14
|
+
.grid_8
|
15
|
+
%p
|
16
|
+
Mercury
|
17
|
+
.grid_4
|
18
|
+
%p Jack Russell Software Company, LLC
|
19
|
+
.clear
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercury
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Wilson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-03-
|
12
|
+
date: 2010-03-04 00:00:00 -05:00
|
13
13
|
default_executable: mercury
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -32,6 +32,16 @@ dependencies:
|
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.2.20
|
34
34
|
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: faker
|
37
|
+
type: :runtime
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: "0"
|
44
|
+
version:
|
35
45
|
description: Mercury allows you to create directory and start writting haml, html, css, etc to build wireframes for your user design.
|
36
46
|
email: thing2@jackhq.com
|
37
47
|
executables:
|
@@ -53,7 +63,7 @@ files:
|
|
53
63
|
- lib/mercury.rb
|
54
64
|
- lib/public/favicon.ico
|
55
65
|
- lib/public/javascripts/jquery-1.4.2.min.js
|
56
|
-
- lib/public/javascripts/jquery-ui-1.
|
66
|
+
- lib/public/javascripts/jquery-ui-1.8rc3.custom.min.js
|
57
67
|
- lib/public/stylesheets/960.css
|
58
68
|
- lib/public/stylesheets/app.css
|
59
69
|
- lib/public/stylesheets/reset.css
|
@@ -70,7 +80,7 @@ files:
|
|
70
80
|
- lib/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png
|
71
81
|
- lib/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png
|
72
82
|
- lib/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png
|
73
|
-
- lib/public/stylesheets/smoothness/jquery-ui-1.
|
83
|
+
- lib/public/stylesheets/smoothness/jquery-ui-1.8rc3.custom.css
|
74
84
|
- lib/public/stylesheets/text.css
|
75
85
|
- lib/views/index.haml
|
76
86
|
- lib/views/layout.haml
|