tyrone 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,39 +2,58 @@
2
2
 
3
3
  <small>a rapid prototyping fix. 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. by [chris](http://chrislloyd.com.au).</small>
4
4
 
5
+ It's always better to work from the UI down. Nobody cares about what database you are using or if you have 100% test coverage if the app itself _sucks_. Tyrone likes UIs. Like his community boxing gym, he likes to encourage good practices right from the start. He helps you get up and running prototyping UIs as quickly as possible so you can't procrastinate solving the real problems in your app.
5
6
 
6
- its always better to work from the ui down. nobody cares about what database you are using or if you have 100% test coverage if the application itself sucks. tyrone likes uis. he helps you get up and running prototyping uis as quickly as possible so you can crunch the real problems in your app. tyrone loves you and ur uis
7
+ (For more information about Tyrone's intentions, please read the [associated article](http://chrislloyd.com.au/post/154530835/databases-are-for-pussies))
7
8
 
8
9
  ![screenshot](http://cloud.github.com/downloads/chrislloyd/tyrone/tyrone-0.1.0.png)
9
10
 
10
- ## employing tyrone
11
11
 
12
- install the gem:
12
+ ## Installing
13
13
 
14
- gem install tyrone
14
+ {gem,rip} install tyrone
15
15
 
16
- or
16
+ Then, to get Tyrone started on your job:
17
17
 
18
- rip install tyrone
18
+ tyrone [NAME OF JOB]
19
19
 
20
- to get tyrone started on your job:
20
+ Bada bing!
21
21
 
22
- tyrone [NAME OF YOUR PROJECT]
22
+ ## Features
23
23
 
24
- done.
24
+ Tyrone believes in tough love. You're going to have to do alot of work yourself. However, he does want to give the pups a headstart. Your job _will_ use HTML 5 and comes with a HTML 5 `reset.css`. It's the way of the future and will save you time (see `input[placeholder]`). If you really object you can turn HTML 5 off, just by placeing this line in your Sinatra file:
25
25
 
26
- ## associates
26
+ set :haml => {:format => :xhtml}
27
27
 
28
- * [b-webstar](http://plus2.com.au) for his playground system what.
28
+ Remember, it's just a Sinatra app so everything you can do in Sinatra you can do in Tyrone. However, you should note that the default behaviour of Sinatra is to process Sass files in the 'views' directory (or 'mockups' in Tyrone). Tyrone doesn't think that sytles are "views" so you can place your Sass files in 'public/css' and they'll get processed automagically. Word.
29
+
30
+ Straight out of compton, Tyrone be givin' u some crunk prototyping scripts.
31
+
32
+ 1. [states.js](http://github.com/toolmantim/states.js) &mdash; [t-star](http://toolmantim.com)'s script lets you hide and show bits of your UI so you can simulate state. For example hide and show a logged in user's account controls. Think [Polypage](http://github.com/andykent/polypage) on a diet.
33
+ 2. [grid.js](http://gist.github.com/160497) &mdash; A handy tool which overlays vertical and horizontal grids when SHIFT-v or SHIFT-h are pressed. By default it is applied to `body` but you can change this in `application.js`. Big ups [byrne-diddy](http://myles.id.au).
34
+
35
+ Some mockup helpers are:
36
+
37
+ * `hidden` &mdash; Just returns `{:style => 'display:none'}` so you can quickly hide elements. Useful when doing JS hiding and showing.
38
+ * `mockup_path(mockup)` &mdash; Returns a URL to another mockup.
39
+
40
+ And that's all.
41
+
42
+
43
+ ## Associates
44
+
45
+ * [b-webstar](http://github.com/plustwo) for his playground system what.
29
46
  * [p-oye](http://github.com/philoye) for makin rehearsals.
47
+ * [t-star](http://github.com/toolmantim) for the awesome states.js
48
+ * [byrne-diddy](http://github.com/quackingduck) for the original grid js/images.
30
49
 
31
- ## givin' back
50
+ ## Givin' Back fo' the Crack
32
51
 
33
- fork the project, submit a pull request and I'll get to it straight away. or you can just checkout the source by running:
52
+ Fork the project, submit a pull request and I'll get to it straight away. _Or_ you can just checkout the source by running:
34
53
 
35
54
  git clone git://github.com/chrislloyd/tyrone.git
36
55
 
37
- ## license
56
+ ## License
38
57
 
39
58
  Copyright (c) 2009 Chris Lloyd.
40
59
 
data/bin/tyrone CHANGED
@@ -1,18 +1,36 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'rubygems'
3
3
 
4
- gem 'pixii', '>= 0.1.0'
4
+ gem 'pixii', '>= 0.1.4'
5
5
  require 'pixii'
6
6
 
7
- Pixii.called(:tyrone) do |make, opts|
7
+ # Loads the gemspec under Github like condtions.
8
+ # Shamelessly stolen from sr/mg.
9
+ def gemspec
10
+ @spec ||= begin
11
+ require 'rubygems/specification'
12
+ data = File.read File.join(File.dirname(__FILE__), '..', 'tyrone.gemspec')
13
+ spec = nil
14
+ Thread.new { spec = eval("$SAFE = 3\n#{data}")}.join
15
+ spec
16
+ end
17
+ end
18
+
19
+ Pixii.called(:tyrone, :version => gemspec.version) do |make, opts|
8
20
  make.dir 'features', 'mockups', 'public', 'public/js', 'public/images', 'public/css'
9
21
 
10
- make.clone 'http://github.com/toolmantim/states.js/raw/master/states.js', 'public/js/states.js'
11
22
  make.clone 'http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js', 'public/js/jquery.js'
12
- make.clone 'https://gist.github.com/159037.txt', 'public/css/reset.sass'
23
+ make.clone 'http://github.com/toolmantim/states.js/raw/master/states.js', 'public/js/states.js'
24
+ make.clone 'http://gist.github.com/160497.txt', 'public/js/grid.js'
25
+ make.clone 'http://gist.github.com/159037.txt', 'public/css/reset.sass'
26
+
27
+ make.clone '../templates/h_grid.gif', 'public/images/h_grid.gif'
28
+ make.clone '../templates/v_grid.gif', 'public/images/v_grid.gif'
13
29
 
14
30
  make.template 'sinatra.rb.erb', "#{opts.project}.rb"
15
31
  make.template 'config.ru.erb', 'config.ru'
32
+ make.template 'application.js.erb', 'public/js/application.js'
33
+ make.template 'layout.haml.erb', 'mockups/layout.haml'
16
34
 
17
35
  make.magic!
18
36
  end
data/deps.rip CHANGED
@@ -1,3 +1,3 @@
1
1
  git://github.com/sinatra/sinatra.git 0.9.4
2
2
  git://github.com/nex3/haml.git 2.2.2
3
- git://github.com/chrislloyd/pixii 0.1.0
3
+ git://github.com/chrislloyd/pixii 0.1.4
data/lib/tyrone.rb CHANGED
@@ -4,7 +4,7 @@ set :haml => {:format => :html5}
4
4
 
5
5
  helpers do
6
6
  def mockup_path(mockup)
7
- "/mockups/#{mockup.gsub(' ','_')}"
7
+ "/mockups/#{mockup.to_s.gsub(' ','_')}"
8
8
  end
9
9
  def hidden
10
10
  {:style => 'display:none'}
@@ -64,7 +64,6 @@ __END__
64
64
  :font-size 14px
65
65
  :line-height 20px
66
66
  :color #999
67
- :text-transform lowercase
68
67
  a
69
68
  :text-decoration none
70
69
  :color #333
@@ -81,7 +80,7 @@ __END__
81
80
  %h1 Mockups
82
81
  %ul
83
82
  - if @mockups.empty?
84
- There are no mockups yet. Add one in <code>/mockups</code>.
83
+ there are no mockups yet. add one to <code>#{File.expand_path(options.views)}</code>.
85
84
  - @mockups.each do |mockup|
86
85
  %li
87
86
  %a{:href => mockup_path(mockup)}= mockup
@@ -1,2 +1,3 @@
1
1
  # Tyrone - It'll care the shit out of you
2
+ gem 'tyrone', '<%= version %>'
2
3
  require 'tyrone'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tyrone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Lloyd
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-02 00:00:00 +10:00
12
+ date: 2009-08-04 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 0.1.0
43
+ version: 0.1.4
44
44
  version:
45
45
  description:
46
46
  email: christopher.lloyd@gmail.com