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 +6 -0
- data/Manifest +1 -0
- data/bin/mini +4 -2
- data/mini.gemspec +2 -2
- data/templates/light/helpers.rb +10 -0
- data/templates/light/index.haml +6 -7
- metadata +2 -1
data/History.rdoc
CHANGED
data/Manifest
CHANGED
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.
|
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.
|
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"]
|
data/templates/light/index.haml
CHANGED
@@ -4,22 +4,21 @@
|
|
4
4
|
%title Project - Tagline
|
5
5
|
%link{ :rel => 'stylesheet', :href => 'style.css' }
|
6
6
|
%body
|
7
|
-
%a{ :href =>
|
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 =>
|
12
|
+
%a{ :href => PROJECT_URL }
|
13
13
|
%img{ :src => 'http://github.com/images/modules/download/zip.png' }
|
14
|
-
%a{ :href =>
|
14
|
+
%a{ :href => PROJECT_URL }
|
15
15
|
%img{ :src => 'http://github.com/images/modules/download/tar.png' }
|
16
|
-
|
17
|
-
|
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 => '
|
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.
|
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
|