smacssify 0.0.2 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/assets/stylesheets/compiler.scss +1 -6
- data/lib/assets/stylesheets/{layout → layouts}/README.md +0 -0
- data/lib/assets/stylesheets/{module → modules}/README.md +0 -0
- data/lib/assets/stylesheets/{state → states}/README.md +0 -0
- data/lib/generators/smacssify/install_generator.rb +5 -17
- data/lib/smacssify/version.rb +1 -1
- metadata +10 -14
- checksums.yaml +0 -15
- data/lib/assets/stylesheets/base/reset.css.scss +0 -0
- data/lib/assets/stylesheets/base/typography.css.scss +0 -0
- data/lib/assets/stylesheets/layout/body.css.scss +0 -0
- data/lib/assets/stylesheets/layout/footer.css.scss +0 -0
- data/lib/assets/stylesheets/layout/header.css.scss +0 -0
- data/lib/assets/templates/application.css +0 -13
@@ -1,14 +1,9 @@
|
|
1
|
-
// In order to get all the goodness of SASS
|
1
|
+
// In order to get all the goodness of SASS, ie. mixins, colours etc we need
|
2
2
|
// to compile everything here.
|
3
3
|
|
4
4
|
// Base
|
5
|
-
@import 'base/reset';
|
6
|
-
@import 'base/typography';
|
7
5
|
|
8
6
|
// Layout
|
9
|
-
@import 'layout/header';
|
10
|
-
@import 'layout/body';
|
11
|
-
@import 'layout/footer';
|
12
7
|
|
13
8
|
// Modules
|
14
9
|
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,7 +3,7 @@ require 'rails/generators'
|
|
3
3
|
module Smacssify
|
4
4
|
class InstallGenerator < Rails::Generators::Base
|
5
5
|
source_root File.expand_path("../../../", __FILE__)
|
6
|
-
|
6
|
+
|
7
7
|
desc "This generator sets up the smacss directory structure"
|
8
8
|
|
9
9
|
# Commandline options can be defined here using Thor-like options:
|
@@ -12,24 +12,12 @@ module Smacssify
|
|
12
12
|
# I can later access that option using:
|
13
13
|
# options[:my_opt]
|
14
14
|
|
15
|
+
# def self.source_root
|
16
|
+
# @source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
17
|
+
# end
|
18
|
+
|
15
19
|
def add_assets
|
16
20
|
directory "assets/stylesheets", "app/assets/stylesheets"
|
17
|
-
|
18
|
-
css_manifest = "app/assets/stylesheets/application.css"
|
19
|
-
|
20
|
-
# Thanks https://github.com/seyhunak/twitter-bootstrap-rails/ for bits of this code!
|
21
|
-
if File.exist?(css_manifest)
|
22
|
-
# Add our own require:
|
23
|
-
content = File.read(css_manifest)
|
24
|
-
if content.match(/require_tree\s+\.\s*$/)
|
25
|
-
# We don't want to include the tree - just our compiler.css.scss
|
26
|
-
gsub_file(css_manifest, /require_tree\s+\.\s*$/, "")
|
27
|
-
end
|
28
|
-
style_require_block = " *= require ./compiler\n"
|
29
|
-
insert_into_file css_manifest, style_require_block, :after => "require_self\n"
|
30
|
-
else
|
31
|
-
copy_file "/assets/templates/application.css.scss", "app/assets/stylesheets/application.css.scss"
|
32
|
-
end
|
33
21
|
end
|
34
22
|
|
35
23
|
# Generator Code. Remember this is just suped-up Thor so methods are executed in order
|
data/lib/smacssify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smacssify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Jack Callister
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-03-30 00:00:00.000000000 Z
|
12
13
|
dependencies: []
|
13
14
|
description: Directory structure generator for smacss
|
14
15
|
email:
|
@@ -23,16 +24,10 @@ files:
|
|
23
24
|
- README.md
|
24
25
|
- Rakefile
|
25
26
|
- lib/assets/stylesheets/base/README.md
|
26
|
-
- lib/assets/stylesheets/base/reset.css.scss
|
27
|
-
- lib/assets/stylesheets/base/typography.css.scss
|
28
27
|
- lib/assets/stylesheets/compiler.scss
|
29
|
-
- lib/assets/stylesheets/
|
30
|
-
- lib/assets/stylesheets/
|
31
|
-
- lib/assets/stylesheets/
|
32
|
-
- lib/assets/stylesheets/layout/header.css.scss
|
33
|
-
- lib/assets/stylesheets/module/README.md
|
34
|
-
- lib/assets/stylesheets/state/README.md
|
35
|
-
- lib/assets/templates/application.css
|
28
|
+
- lib/assets/stylesheets/layouts/README.md
|
29
|
+
- lib/assets/stylesheets/modules/README.md
|
30
|
+
- lib/assets/stylesheets/states/README.md
|
36
31
|
- lib/generators/smacssify/install_generator.rb
|
37
32
|
- lib/smacssify.rb
|
38
33
|
- lib/smacssify/engine.rb
|
@@ -40,25 +35,26 @@ files:
|
|
40
35
|
- smacssify.gemspec
|
41
36
|
homepage: ''
|
42
37
|
licenses: []
|
43
|
-
metadata: {}
|
44
38
|
post_install_message:
|
45
39
|
rdoc_options: []
|
46
40
|
require_paths:
|
47
41
|
- lib
|
48
42
|
required_ruby_version: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
49
44
|
requirements:
|
50
45
|
- - ! '>='
|
51
46
|
- !ruby/object:Gem::Version
|
52
47
|
version: '0'
|
53
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
54
50
|
requirements:
|
55
51
|
- - ! '>='
|
56
52
|
- !ruby/object:Gem::Version
|
57
53
|
version: '0'
|
58
54
|
requirements: []
|
59
55
|
rubyforge_project:
|
60
|
-
rubygems_version:
|
56
|
+
rubygems_version: 1.8.24
|
61
57
|
signing_key:
|
62
|
-
specification_version:
|
58
|
+
specification_version: 3
|
63
59
|
summary: Keep your sass files neatly organised within your Rails app
|
64
60
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
NmQwNzRkZjQ4ZDY5NWEwNDc5MGNiMjIxNmNlOWQ2NGI3YjYwODYwNQ==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NGM3YjBhMzE5Nzc4NGIzZTEwZjQ1YWZjMjM1M2RlYzZjMmQ3OTk5Mw==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NzVjMzQyOGYwYzVhYWZiZDVlMjc5OTAxODA3YjljZTYyOTJkODM4MjAyNTIy
|
10
|
-
ZWZmY2RmNzcyMmIyODJhMzkxYmY2Njc2Y2ZkMDhlNWNmYzYzNzAyNGMzOTg1
|
11
|
-
YWFkNmQzMTI0NWU3YjE4N2ZiZDM3MTA4ZTlhZjUzZmQzNmNhYTE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YzIzZmU4YWExYjIwMWE1OTQ3M2I3N2Q4NTkwYTM1YTRlMjMyYzk0ZWQ2NDk3
|
14
|
-
NzI1ZmZhYzcyYmQxNjJhY2Q0OGNkMjQzOWE0MDhlYjNmMjc2YTdhNDZhOTE2
|
15
|
-
ZjQ2NTFmMzIwNGQzMjg2YWY2ZWQ2MDU3YjFlZmNlMTEyMmZjZmI=
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require ./compiler
|
13
|
-
*/
|