visionmedia-mini 0.0.6 → 0.0.7

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/History.rdoc CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ === 0.0.7 / 2009-03-09
3
+
4
+ * Added some sample helpers
5
+ * Added helpers support
6
+ * Added support for helpers.rb
7
+
2
8
  === 0.0.6 / 2009-03-09
3
9
 
4
10
  * Added edit sub-command
data/Manifest CHANGED
@@ -9,6 +9,7 @@ spec/spec_helper.rb
9
9
  tasks/docs.rake
10
10
  tasks/gemspec.rake
11
11
  tasks/spec.rake
12
+ templates/light/helpers.rb
12
13
  templates/light/index.haml
13
14
  templates/light/style.sass
14
15
  Todo.rdoc
data/bin/mini CHANGED
@@ -6,7 +6,7 @@ require 'commander'
6
6
  require 'bind'
7
7
 
8
8
  program :name, 'mini'
9
- program :version, '0.0.6'
9
+ program :version, '0.0.7'
10
10
  program :description, 'Github project page framework'
11
11
 
12
12
  def current_branch
@@ -19,10 +19,12 @@ end
19
19
 
20
20
  class CompileHaml < Bind::Actions::RefreshBrowsers
21
21
  def call file
22
+ options = []
23
+ options << '-r assets/helpers' if File.exists? 'assets/helpers.rb'
22
24
  type = sass?(file) ? :sass : :haml
23
25
  dest = dest_for file.path
24
26
  FileUtils.mkdir_p File.dirname(dest) unless File.directory? File.dirname(dest)
25
- `#{type} #{file.path} #{dest}`
27
+ `#{type} #{file.path} #{dest} #{ options.join(' ') }`
26
28
  super
27
29
  end
28
30
 
data/mini.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mini}
5
- s.version = "0.0.6"
5
+ s.version = "0.0.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.email = %q{tj@vision-media.ca}
13
13
  s.executables = ["mini"]
14
14
  s.extra_rdoc_files = ["bin/mini", "README.rdoc", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
15
- s.files = ["bin/mini", "History.rdoc", "Manifest", "mini.gemspec", "Rakefile", "README.rdoc", "spec/mini_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake", "templates/light/index.haml", "templates/light/style.sass", "Todo.rdoc"]
15
+ s.files = ["bin/mini", "History.rdoc", "Manifest", "mini.gemspec", "Rakefile", "README.rdoc", "spec/mini_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake", "templates/light/helpers.rb", "templates/light/index.haml", "templates/light/style.sass", "Todo.rdoc"]
16
16
  s.has_rdoc = true
17
17
  s.homepage = %q{http://visionmedia.github.com/mini}
18
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Mini", "--main", "README.rdoc"]
@@ -0,0 +1,10 @@
1
+
2
+ def title title, subheading
3
+ %(<h1>#{title} <em>#{subheading}</em></h1>)
4
+ end
5
+
6
+ def project_url username, project
7
+ "http://github.com/visionmedia/#{username}/#{project}"
8
+ end
9
+
10
+ PROJECT_URL = project_url('username', 'project')
@@ -4,22 +4,21 @@
4
4
  %title Project - Tagline
5
5
  %link{ :rel => 'stylesheet', :href => 'style.css' }
6
6
  %body
7
- %a{ :href => 'http://github.com/username/project' }
7
+ %a{ :href => PROJECT_URL }
8
8
  %img#ribbon{ :src => 'http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png', :alt => 'Fork me on GitHub' }
9
9
 
10
10
  #container
11
11
  #download
12
- %a{ :href => 'http://github.com/visionmedia/username/project/master' }
12
+ %a{ :href => PROJECT_URL }
13
13
  %img{ :src => 'http://github.com/images/modules/download/zip.png' }
14
- %a{ :href => 'http://github.com/visionmedia/username/project/master' }
14
+ %a{ :href => PROJECT_URL }
15
15
  %img{ :src => 'http://github.com/images/modules/download/tar.png' }
16
- %h1
17
- Project
18
- %em Tagline
16
+
17
+ = title 'Project', 'tagline'
19
18
 
20
19
  %p
21
20
  Description and body
22
21
 
23
22
  .footer
24
23
  this mini site brought to you by :
25
- %a{ :href => 'http://github.com/visionmedia/mini' } visionmedia/mini
24
+ %a{ :href => project_url('visionmedia', 'mini') } visionmedia/mini
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visionmedia-mini
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
@@ -56,6 +56,7 @@ files:
56
56
  - tasks/docs.rake
57
57
  - tasks/gemspec.rake
58
58
  - tasks/spec.rake
59
+ - templates/light/helpers.rb
59
60
  - templates/light/index.haml
60
61
  - templates/light/style.sass
61
62
  - Todo.rdoc