smacssify 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
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
@@ -0,0 +1,15 @@
1
+ // In order to get all the goodness of SASS (mixins, colours, etc) we need
2
+ // to compile everything here.
3
+
4
+ // Base
5
+ @import 'base/reset';
6
+ @import 'base/typography';
7
+
8
+ // Layout
9
+ @import 'layout/header';
10
+ @import 'layout/body';
11
+ @import 'layout/footer';
12
+
13
+ // Modules
14
+
15
+ // States
File without changes
File without changes
File without changes
@@ -0,0 +1,13 @@
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
+ */
@@ -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,12 +12,24 @@ 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
-
19
15
  def add_assets
20
16
  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
21
33
  end
22
34
 
23
35
  # Generator Code. Remember this is just suped-up Thor so methods are executed in order
@@ -1,3 +1,3 @@
1
1
  module Smacssify
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smacssify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jack Callister
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-30 00:00:00.000000000 Z
11
+ date: 2013-04-13 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Directory structure generator for smacss
15
14
  email:
@@ -24,9 +23,16 @@ files:
24
23
  - README.md
25
24
  - Rakefile
26
25
  - lib/assets/stylesheets/base/README.md
27
- - lib/assets/stylesheets/layouts/README.md
28
- - lib/assets/stylesheets/modules/README.md
29
- - lib/assets/stylesheets/states/README.md
26
+ - lib/assets/stylesheets/base/reset.css.scss
27
+ - lib/assets/stylesheets/base/typography.css.scss
28
+ - lib/assets/stylesheets/compiler.scss
29
+ - lib/assets/stylesheets/layout/README.md
30
+ - lib/assets/stylesheets/layout/body.css.scss
31
+ - lib/assets/stylesheets/layout/footer.css.scss
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
30
36
  - lib/generators/smacssify/install_generator.rb
31
37
  - lib/smacssify.rb
32
38
  - lib/smacssify/engine.rb
@@ -34,26 +40,25 @@ files:
34
40
  - smacssify.gemspec
35
41
  homepage: ''
36
42
  licenses: []
43
+ metadata: {}
37
44
  post_install_message:
38
45
  rdoc_options: []
39
46
  require_paths:
40
47
  - lib
41
48
  required_ruby_version: !ruby/object:Gem::Requirement
42
- none: false
43
49
  requirements:
44
50
  - - ! '>='
45
51
  - !ruby/object:Gem::Version
46
52
  version: '0'
47
53
  required_rubygems_version: !ruby/object:Gem::Requirement
48
- none: false
49
54
  requirements:
50
55
  - - ! '>='
51
56
  - !ruby/object:Gem::Version
52
57
  version: '0'
53
58
  requirements: []
54
59
  rubyforge_project:
55
- rubygems_version: 1.8.24
60
+ rubygems_version: 2.0.3
56
61
  signing_key:
57
- specification_version: 3
62
+ specification_version: 4
58
63
  summary: Keep your sass files neatly organised within your Rails app
59
64
  test_files: []
File without changes