chrislloyd-tyrone 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +34 -0
- data/Rakefile +2 -0
- data/deps.rip +2 -0
- data/lib/tyrone.rb +67 -0
- metadata +76 -0
data/README.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# tyrone
|
2
|
+
|
3
|
+
tyrone be great with uis. he loves em so much and will care the shit out of them. my boy tyrone is definitely the right man for the job, i aint playin
|
4
|
+
|
5
|
+
![Screenshot](http://cloud.github.com/downloads/chrislloyd/tyrone/tyrone-0.1.0.png)
|
6
|
+
|
7
|
+
## employing tyrone
|
8
|
+
|
9
|
+
install the gem:
|
10
|
+
|
11
|
+
gem install tyrone
|
12
|
+
|
13
|
+
or
|
14
|
+
|
15
|
+
rip install tyrone
|
16
|
+
|
17
|
+
your project needs tyrone, fo real:
|
18
|
+
|
19
|
+
gem 'tyrone'; require 'tyrone'
|
20
|
+
|
21
|
+
for sure its ready to go, alright? u may want to make ur app down wid da bidness: (dis goes in ur `config.ru`)
|
22
|
+
|
23
|
+
set :views => File.join(File.dirname(__FILE__), 'mockups')
|
24
|
+
set :app_file => # where you need tyrone to be, he will be there
|
25
|
+
|
26
|
+
if you be a real player, you can knock out the old shit and add da new shit:
|
27
|
+
|
28
|
+
require 'tyrone'
|
29
|
+
get '/my-action' { ... }
|
30
|
+
|
31
|
+
# associates
|
32
|
+
|
33
|
+
* [b-webstar](http://plus2.com.au) for his playground system what.
|
34
|
+
* [p-oye](http://github.com/philoye) for makin rehearsals.
|
data/Rakefile
ADDED
data/deps.rip
ADDED
data/lib/tyrone.rb
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
gem 'haml', '2.2.2'; require 'haml'; require 'sass'
|
2
|
+
|
3
|
+
helpers do
|
4
|
+
def mockup_path(mockup)
|
5
|
+
"/mockups/#{mockup.gsub(' ','_')}"
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
get '/' do
|
10
|
+
use_in_file_templates!
|
11
|
+
@mockups = Dir.glob(File.join(options.views, '*.haml')).map do |mockup|
|
12
|
+
File.basename(mockup,'.*').gsub('_',' ')
|
13
|
+
end.reject {|file| file == 'layout'}
|
14
|
+
haml :index, :layout => false
|
15
|
+
end
|
16
|
+
|
17
|
+
get '/mockups/:mockup' do |mockup|
|
18
|
+
haml mockup.to_sym
|
19
|
+
end
|
20
|
+
|
21
|
+
__END__
|
22
|
+
|
23
|
+
@@index
|
24
|
+
!!!
|
25
|
+
%html
|
26
|
+
%head
|
27
|
+
%title mockups
|
28
|
+
%style{:type => 'text/css', :media => 'screen'}
|
29
|
+
:sass
|
30
|
+
|
31
|
+
*
|
32
|
+
:margin 0
|
33
|
+
:padding 0
|
34
|
+
body
|
35
|
+
:margin 40px
|
36
|
+
:font-family Helvetica, sans-serif
|
37
|
+
h1
|
38
|
+
:font-size 24px
|
39
|
+
:line-height 40px
|
40
|
+
:margin-bottom 20px
|
41
|
+
:text-transform lowercase
|
42
|
+
ul
|
43
|
+
:color #CCC
|
44
|
+
:font-size 12px
|
45
|
+
:line-height 20px
|
46
|
+
a
|
47
|
+
:text-decoration none
|
48
|
+
:font-size 14px
|
49
|
+
:color #333
|
50
|
+
:line-height 20px
|
51
|
+
:text-transform lowercase
|
52
|
+
&:hover
|
53
|
+
:border-bottom 1px solid #333
|
54
|
+
.footer
|
55
|
+
:font-size 11px
|
56
|
+
:line-height 20px
|
57
|
+
:margin-top 60px
|
58
|
+
:color #CCC
|
59
|
+
:display block
|
60
|
+
:text-decoration none
|
61
|
+
%body
|
62
|
+
%h1 Mockups
|
63
|
+
%ul
|
64
|
+
- @mockups.each do |mockup|
|
65
|
+
%li
|
66
|
+
%a{:href => mockup_path(mockup)}= mockup
|
67
|
+
%a.footer{:href => 'http://github.com/chrislloyd/tyrone'} tyrone luvs ya.
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chrislloyd-tyrone
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chris Lloyd
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-09-15 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: sinatra
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.9.4
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: haml
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.2.2
|
34
|
+
version:
|
35
|
+
description:
|
36
|
+
email: christopher.lloyd@gmail.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files: []
|
42
|
+
|
43
|
+
files:
|
44
|
+
- deps.rip
|
45
|
+
- Rakefile
|
46
|
+
- README.md
|
47
|
+
- lib/tyrone.rb
|
48
|
+
has_rdoc: false
|
49
|
+
homepage: http://github.com/chrislloyd/tyrone
|
50
|
+
licenses:
|
51
|
+
post_install_message:
|
52
|
+
rdoc_options: []
|
53
|
+
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: "0"
|
61
|
+
version:
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: "0"
|
67
|
+
version:
|
68
|
+
requirements: []
|
69
|
+
|
70
|
+
rubyforge_project: tyrone
|
71
|
+
rubygems_version: 1.3.5
|
72
|
+
signing_key:
|
73
|
+
specification_version: 2
|
74
|
+
summary: Care the shit out of your UI.
|
75
|
+
test_files: []
|
76
|
+
|