head_start 0.1.0 → 0.1.1
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/bin/head_start
CHANGED
File without changes
|
@@ -37,11 +37,7 @@ module HeadStartRailsHelper
|
|
37
37
|
# download
|
38
38
|
#
|
39
39
|
def button_link_to(button_text, path, options = {})
|
40
|
-
|
41
|
-
options[:class] += " button"
|
42
|
-
else
|
43
|
-
options[:class] = "button"
|
44
|
-
end
|
40
|
+
options = add_class "button", options
|
45
41
|
name = "<span>#{button_text}</span>".html_safe
|
46
42
|
link_to name, path, options
|
47
43
|
end
|
@@ -52,8 +48,9 @@ module HeadStartRailsHelper
|
|
52
48
|
end
|
53
49
|
|
54
50
|
def context_aware_link_to(name, url, options = {})
|
55
|
-
|
56
|
-
|
51
|
+
options = add_class "current", options
|
52
|
+
link = link_to_unless_current(name, url, options) do |name,url,options|
|
53
|
+
link_to(name,url,options)
|
57
54
|
end
|
58
55
|
link.html_safe
|
59
56
|
end
|
data/lib/head_start/version.rb
CHANGED
data/lib/head_start.rb
CHANGED
@@ -4,14 +4,14 @@ require "compass"
|
|
4
4
|
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
5
5
|
Compass::Frameworks.register('head_start', :path => extension_path)
|
6
6
|
|
7
|
-
require '
|
7
|
+
require 'head_start/helpers/head_start_rails_helper'
|
8
8
|
|
9
9
|
module HeadStart
|
10
10
|
# allows us to run compass command-line without it complaining about uninitialized constant Rails
|
11
11
|
if defined?(Rails)
|
12
12
|
class Engine < ::Rails::Engine
|
13
13
|
initializer "head_start.view_helpers" do
|
14
|
-
ActionView::Base.send :include, ::
|
14
|
+
ActionView::Base.send :include, ::HeadStartRailsHelper
|
15
15
|
end
|
16
16
|
initializer 'head_start.precompile_assets', :after => "sprockets.environment" do |app|
|
17
17
|
Rails.application.config.assets.precompile += %w(modernizr.js layouts/*.js layouts *.css)
|
@@ -63,20 +63,20 @@ This is a Compass extension based on HTML5 Boilerplate (2.0) by Paul Irish
|
|
63
63
|
|
64
64
|
Rails Installation
|
65
65
|
========================
|
66
|
-
$ gem install
|
66
|
+
$ gem install head_start
|
67
67
|
$ cd my_rails_project
|
68
|
-
$ compass init rails -r
|
68
|
+
$ compass init rails -r head_start -u head_start/boilerplate --force
|
69
69
|
|
70
70
|
|
71
71
|
Standalone Installation (use for Frank installations)
|
72
72
|
======================================================
|
73
|
-
$ gem install
|
73
|
+
$ gem install head_start
|
74
74
|
$ cd my_rails_project
|
75
|
-
$ compass init stand_alone -r
|
75
|
+
$ compass init stand_alone -r head_start -u head_start/boilerplate --force
|
76
76
|
|
77
77
|
}
|
78
78
|
|
79
79
|
welcome_message %Q{
|
80
|
-
You've installed
|
80
|
+
You've installed Head Start Boilerplate. Good for you!
|
81
81
|
|
82
82
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: head_start
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-19 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: compass
|
16
|
-
requirement: &
|
16
|
+
requirement: &70278048196200 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70278048196200
|
25
25
|
description: This gem extends Compass with Foxsoft's own SCSS libraries and third
|
26
26
|
party Javascript libraries - full description pending
|
27
27
|
email:
|