compass_extension 0.1.7 → 0.1.8

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.
@@ -1,9 +1,5 @@
1
+ require 'sass'
1
2
  require 'compass'
2
- require "compass/h5bp"
3
+ require "susy"
3
4
  extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
4
- Compass::Frameworks.register('compass_extension', :path => "#{File.dirname(__FILE__)}/..") if defined?(Compass)
5
-
6
- if defined?(ActionController)
7
- require File.join(File.dirname(__FILE__), 'app', 'helpers', 'html5_boilerplate_helper')
8
- ActionController::Base.helper(Html5BoilerplateHelper)
9
- end
5
+ Compass::Frameworks.register('compass_extension', :path => extension_path)
@@ -29,35 +29,17 @@ stylesheet 'partials/mods/_mod-strip.scss'
29
29
  stylesheet 'partials/mods/_mod-table.scss'
30
30
 
31
31
 
32
- if Compass.configuration.project_type == :rails
33
- file 'application.html.haml', :to => 'app/views/layouts/application.html.haml'
34
- file '_flashes.html.haml', :to => 'app/views/layouts/_flashes.html.haml'
35
- file '_footer.html.haml', :to => 'app/views/layouts/_footer.html.haml'
36
- file '_head.html.haml', :to => 'app/views/layouts/_head.html.haml'
37
- file '_header.html.haml', :to => 'app/views/layouts/_header.html.haml'
38
- file '_javascripts.html.haml', :to => 'app/views/layouts/_javascripts.html.haml'
39
- file '_stylesheets.html.haml', :to => 'app/views/layouts/_stylesheets.html.haml'
40
- file 'files/google.yml', :to => 'config/google.yml'
41
- javascript 'javascripts/libs/jquery-1.7.2.js', :to => 'libs/jquery.js'
42
- javascript 'javascripts/libs/jquery-1.7.2.min.js', :to => 'libs/jquery.min.js'
43
- javascript 'javascripts/libs/jquery-ui-1.8.22.min.js', :to => 'libs/jquery-ui-1.8.22.min.js'
44
- javascript 'javascripts/libs/modernizr-2.5.3.min.js', :to => 'libs/modernizr.min.js'
45
- javascript 'javascripts/libs/respond.min.js', :to => 'libs/respond.min.js'
46
- javascript 'javascripts/libs/selectivizr.js', :to => 'libs/selectivizr.js'
47
- javascript 'javascripts/plugins.js', :to => 'plugins.js'
48
- javascript 'javascripts/rails.js', :to => 'rails.js'
49
- else
50
- html 'index.html'
51
- #file 'index.html.haml'
52
- javascript 'javascripts/libs/jquery-1.7.2.js', :to => 'libs/jquery-1.7.2.js'
53
- javascript 'javascripts/libs/jquery-1.7.2.min.js', :to => 'libs/jquery-1.7.2.min.js'
54
- javascript 'javascripts/libs/jquery-ui-1.8.22.min.js', :to => 'libs/jquery-ui-1.8.22.min.js'
55
- javascript 'javascripts/libs/modernizr-2.5.3.min.js', :to => 'libs/modernizr-2.5.3.min.js'
56
- javascript 'javascripts/libs/respond.min.js', :to => 'libs/respond.min.js'
57
- javascript 'javascripts/libs/selectivizr.js', :to => 'libs/selectivizr.js'
58
- javascript 'javascripts/plugins.js', :to => 'plugins.js'
59
- javascript 'javascripts/script.js', :to => 'script.js'
60
- end
32
+
33
+ javascript 'javascripts/libs/jquery-1.7.2.js', :to => 'libs/jquery-1.7.2.js'
34
+ javascript 'javascripts/libs/jquery-1.7.2.min.js', :to => 'libs/jquery-1.7.2.min.js'
35
+ javascript 'javascripts/libs/jquery-ui-1.8.22.min.js', :to => 'libs/jquery-ui-1.8.22.min.js'
36
+ javascript 'javascripts/libs/modernizr-2.5.3.min.js', :to => 'libs/modernizr-2.5.3.min.js'
37
+ javascript 'javascripts/libs/respond.min.js', :to => 'libs/respond.min.js'
38
+ javascript 'javascripts/libs/selectivizr.js', :to => 'libs/selectivizr.js'
39
+ javascript 'javascripts/plugins.js', :to => 'plugins.js'
40
+ javascript 'javascripts/script.js', :to => 'script.js'
41
+
42
+ html 'index.html'
61
43
  html 'files/about.html', :to => 'about.html'
62
44
  html 'files/blog.html', :to => 'blog.html'
63
45
  html 'files/contact.html', :to => 'contact.html'
@@ -72,9 +54,11 @@ html 'files/inc/main-nav.html', :to => 'inc/main-nav.html'
72
54
  html 'files/crossdomain.xml', :to => 'crossdomain.xml'
73
55
  html 'files/robots.txt', :to => 'robots.txt'
74
56
  html 'files/humans.txt', :to => 'humans.txt'
57
+
75
58
  image 'files/dummy-full.png', :to => 'dummy-full.png'
76
59
  image 'files/logo.png', :to => 'logo.png'
77
60
  #image 'files/logox2.png', :to => 'logox2.png'
61
+
78
62
  html 'files/apple-touch-icon.png', :to => 'apple-touch-icon.png'
79
63
  html 'files/apple-touch-icon-57x57-precomposed.png', :to => 'apple-touch-icon-57x57-precomposed.png'
80
64
  html 'files/apple-touch-icon-72x72-precomposed.png', :to => 'apple-touch-icon-72x72-precomposed.png'
@@ -85,20 +69,14 @@ html 'files/favicon.png', :to => 'favicon.png'
85
69
  help %Q{
86
70
  This is a Compass extension for Skyron using html5-boilerplate templates
87
71
 
88
- Rails Installation
89
- ========================
90
- $ gem install compass_extension
91
- $ cd my_project
92
- $ compass init rails -r compass_extension -u compass_extension --force
93
-
94
72
  Stand Alone Installation
95
73
  ========================
96
74
  $ gem install html5-boilerplate
97
- $ compass create <my_project> -r compass_extension -u compass_extension --javascripts-dir js --css-dir css --images-dir css
75
+ $ compass create <my_project> -r compass_extension -u compass_extension --javascripts-dir js --css-dir css --images-dir img
98
76
 
99
77
  }
100
78
 
101
79
  welcome_message %Q{
102
80
  You've installed HTML5 Skyframe . Lucky you! ;)
103
81
 
104
- }
82
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,14 +11,46 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: sass
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: compass
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '0.12'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '0.12'
46
+ - !ruby/object:Gem::Dependency
47
+ name: susy
16
48
  requirement: !ruby/object:Gem::Requirement
17
49
  none: false
18
50
  requirements:
19
51
  - - ! '>='
20
52
  - !ruby/object:Gem::Version
21
- version: 0.12.2
53
+ version: '0'
22
54
  type: :runtime
23
55
  prerelease: false
24
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,8 +58,9 @@ dependencies:
26
58
  requirements:
27
59
  - - ! '>='
28
60
  - !ruby/object:Gem::Version
29
- version: 0.12.2
30
- description: create a default project structure to develop with compass
61
+ version: '0'
62
+ description: ! " Compass Extension create a whole structure for our basic's projects.\n
63
+ \ It uses compass and h5-boilerplate templates\n"
31
64
  email: yann.lecorre@skyron.co.uk
32
65
  executables: []
33
66
  extensions: []
@@ -43,7 +76,6 @@ files:
43
76
  - stylesheets/h5bp/_normalize.scss
44
77
  - stylesheets/_h5bp.scss
45
78
  - stylesheets/_main.scss
46
- - templates/project/application.html.haml
47
79
  - templates/project/files/404.html
48
80
  - templates/project/files/about.html
49
81
  - templates/project/files/apple-touch-icon-114x114-precomposed.png
@@ -70,7 +102,6 @@ files:
70
102
  - templates/project/files/robots.txt
71
103
  - templates/project/files/services.html
72
104
  - templates/project/index.html
73
- - templates/project/index.html.haml
74
105
  - templates/project/javascripts/libs/jquery-1.7.2.js
75
106
  - templates/project/javascripts/libs/jquery-1.7.2.min.js
76
107
  - templates/project/javascripts/libs/jquery-ui-1.8.22.min.js
@@ -107,18 +138,12 @@ files:
107
138
  - templates/project/partials/_type.scss
108
139
  - templates/project/partials/_vars.scss
109
140
  - templates/project/screen.scss
110
- - templates/project/_flashes.html.haml
111
- - templates/project/_footer.html.haml
112
- - templates/project/_head.html.haml
113
- - templates/project/_header.html.haml
114
- - templates/project/_javascripts.html.haml
115
- - templates/project/_stylesheets.html.haml
116
- homepage: http://skyron.co.uk
141
+ homepage: https://rubygems.org/gems/compass_extension
117
142
  licenses: []
118
143
  post_install_message:
119
144
  rdoc_options: []
120
145
  require_paths:
121
- - lib
146
+ - .
122
147
  required_ruby_version: !ruby/object:Gem::Requirement
123
148
  none: false
124
149
  requirements:
@@ -1,4 +0,0 @@
1
- #flash
2
- - flash.each do |key, value|
3
- .message{ :class => key }
4
- %p= value
@@ -1,2 +0,0 @@
1
- %small.copyright
2
- Copyright &copy; #{Date.today.year}
@@ -1,29 +0,0 @@
1
- %meta{ :charset => "utf-8" }/
2
-
3
- -#
4
- Use the .htaccess and remove these lines to avoid edge case issues.
5
- More info: h5bp.com/b/378
6
- %meta{ "http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1" }/
7
-
8
- %title
9
- == #{ controller.controller_name.titleize } - #{ controller.action_name.titleize }
10
-
11
- %meta{ :name => "description", :content => "" }/
12
- %meta{ :name => "author", :content => "" }/
13
-
14
- -# Mobile viewport optimized: j.mp/bplateviewport
15
- %meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0" }/
16
-
17
- -# Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons
18
-
19
- -# Pass in a stylesheet_partial to render inside your head
20
- - if local_assigns[:stylesheet_partial]
21
- = render :partial => local_assigns[:stylesheet_partial]
22
-
23
- -#
24
- All JavaScript at the bottom, except for Modernizr / Respond.
25
- Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
26
- For optimal performance, use a custom Modernizr build: www.modernizr.com/download/
27
- = javascript_include_tag 'modernizr.min'
28
-
29
- = csrf_meta_tag
@@ -1 +0,0 @@
1
- %h1 Header
@@ -1,37 +0,0 @@
1
- -# Grab Google CDN's jQuery, with a protocol relative URL
2
- -# Looks for google_api_key first in ENV['GOOGLE_API_KEY'] then in config/google.yml
3
- -# remote_jquery and local_jquery helpers use minified jquery unless Rails.env is development
4
- - if !google_api_key.blank?
5
- = javascript_include_tag "//www.google.com/jsapi?key=#{google_api_key}"
6
- %script
7
- google.load(#{ remote_jquery("1.7.2") });
8
- - else
9
- = javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/#{ local_jquery("1.7.2") }"
10
-
11
- -# fall back to local jQuery if necessary
12
- %script
13
- window.jQuery || document.write("<script src='/javascripts/jquery.min.js'>\x3C/script>")
14
-
15
- = javascript_include_tag 'rails', 'plugins', 'application'
16
-
17
- -# Append your own using content_for :javascripts
18
- = yield :javascripts
19
-
20
- -# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
21
- -# Looks for google_account_id first in ENV['GOOGLE_ACCOUNT_ID'] then in config/google.yml
22
- - if !google_account_id.blank?
23
- %script
24
- var _gaq=[["_setAccount","#{google_account_id}"],["_trackPageview"],["_trackPageLoadTime"]];
25
- (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
26
- g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
27
- s.parentNode.insertBefore(g,s)}(document,"script"));
28
-
29
- -#
30
- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
31
- chromium.org/developers/how-tos/chrome-frame-getting-started
32
-
33
- <!--[if lt IE 7]>
34
- %script{ :src => "//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js" }
35
- %script
36
- window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})
37
- <![endif]-->
@@ -1,5 +0,0 @@
1
- -# CSS: implied media="all"
2
- = stylesheet_link_tag 'style'
3
-
4
- -# Append your own using content_for :stylesheets
5
- = yield :stylesheets
@@ -1,22 +0,0 @@
1
- !!! 5
2
- -# http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither
3
- -ie_html :class => 'no-js oldie', :lang => 'en' do
4
- %head
5
- -# To render a different stylesheet partial inside the head (i.e. for admin layout)
6
- -# just copy _stylesheets.html.haml, and point to that partial instead.
7
- = render "layouts/head", :stylesheet_partial => "layouts/stylesheets"
8
-
9
- %body{ :class => "#{controller.controller_name}" }
10
- #container
11
- %header#header
12
- = render "layouts/header"
13
-
14
- #main{ :role => 'main' }
15
- = render "layouts/flashes"
16
- = yield
17
-
18
- %footer#footer
19
- = render "layouts/footer"
20
-
21
- -# Javascript at the bottom for fast page loading
22
- = render "layouts/javascripts"
@@ -1,83 +0,0 @@
1
- !!! 5
2
- -# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
3
- <!--[if lt IE 7]> <html lang="en" class="no-js ie6 oldie"> <![endif]-->
4
- <!--[if IE 7]> <html lang="en" class="no-js ie7 oldie"> <![endif]-->
5
- <!--[if IE 8]> <html lang="en" class="no-js ie8 oldie"> <![endif]-->
6
- -# Consider adding an manifest.appcache: h5bp.com/d/Offline
7
- <!--[if gt IE 8]><!-->
8
- %html.no-js{ :lang => "en" }
9
- <!--<![endif]-->
10
- %head
11
- %meta{ :charset => "utf-8" }/
12
-
13
- -#
14
- Use the .htaccess and remove these lines to avoid edge case issues.
15
- More info: h5bp.com/b/378
16
- %meta{ "http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1" }/
17
-
18
- %title
19
- %meta{ :name => "description", :content => "" }/
20
- %meta{ :name => "author", :content => "" }/
21
-
22
- -# Mobile viewport optimized: j.mp/bplateviewport
23
- %meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0" }/
24
-
25
- -# Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons
26
-
27
- -# CSS: implied media="all"
28
- -# CSS concatenated and minified via ant build script
29
- %link{ :rel => "stylesheet", :href => "css/style.css"}/
30
-
31
- -#
32
- All JavaScript at the bottom, except for Modernizr / Respond.
33
- Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
34
- For optimal performance, use a custom Modernizr build: www.modernizr.com/download/
35
- %script{ :src => "js/modernizr-2.5.3.min.js" }
36
-
37
- %body
38
- #container
39
- %header
40
- #main{ :role => 'main' }
41
- %footer
42
- -# end of #container
43
-
44
- -# Javascript at the bottom for fast page loading
45
-
46
- -# Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline
47
- %script{ :src => "//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" }
48
- %script
49
- window.jQuery || document.write("<script src='js/jquery-1.7.2.min.js'>\x3C/script>")
50
-
51
- -# Grab Google CDN's jQueryui, with a protocol relative URL; fall back to local if offline
52
- %script{ :src => "//ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" }
53
- %script
54
- window.jQuery || document.write("<script src='js/jquery-ui-1.8.22.min.js'>\x3C/script>")
55
-
56
- -# Add respond.js if ie < 8
57
- <!--[if lt IE 9]>
58
- %script{ :src => "js/respond.min.js" }
59
-
60
- -# scripts concatenated and minified via ant build script
61
- %script{ :src => "js/plugins.js" }
62
- %script{ :src => "js/script.js" }
63
- -# end scripts
64
-
65
- -# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
66
- -# change the UA-XXXXX-X to be your site's ID
67
- %script
68
- var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"],["_trackPageLoadTime"]];
69
- (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
70
- g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
71
- s.parentNode.insertBefore(g,s)}(document,"script"));
72
-
73
-
74
-
75
- -#
76
- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
77
- chromium.org/developers/how-tos/chrome-frame-getting-started
78
-
79
- <!--[if lt IE 7]>
80
- %script{ :src => "//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js" }
81
- %script
82
- window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})});
83
- <![endif]-->