skeleton-rails 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![Skeleton](http://i.minus.com/iH51VXxPPD1jJ.png)
4
4
 
5
- [Skeleton](http://http://getskeleton.com) is a Beautiful Boilerplate for Responsive, Mobile-Friendly Development, a CSS framework.
5
+ [Skeleton](http://getskeleton.com) is a Beautiful Boilerplate for Responsive, Mobile-Friendly Development, a CSS framework.
6
6
 
7
7
  Currently Skeleton supports:
8
8
 
@@ -20,7 +20,9 @@ Currently Skeleton supports:
20
20
 
21
21
  Add to your `Gemfile`:
22
22
 
23
- gem 'skeleton-rails'
23
+ ```ruby
24
+ gem 'skeleton-rails'
25
+ ```
24
26
 
25
27
  then run `bundle` in the console, and then run:
26
28
 
@@ -28,13 +30,17 @@ then run `bundle` in the console, and then run:
28
30
 
29
31
  command. This should add:
30
32
 
31
- = require base
32
- = require layout
33
- = require skeleton
33
+ ```ruby
34
+ = require base
35
+ = require layout
36
+ = require skeleton
37
+ ```
34
38
 
35
39
  into `app/assets/stylesheets/application.css`. and:
36
40
 
37
- = require tabs
41
+ ```ruby
42
+ = require tabs
43
+ ```
38
44
 
39
45
  into `app/assets/javascripts/application.js`
40
46
 
@@ -21,10 +21,20 @@ else
21
21
 
22
22
  desc "This generator installs Skeleton CSS framework to Asset Pipeline"
23
23
  def add_assets
24
- insert_into_file "app/assets/javascripts/application.js", "//= require tabs\n", :after => "jquery_ujs\n"
25
- insert_into_file "app/assets/stylesheets/application.css", " *= require base\n *= require layout\n *= require skeleton\n", :after => "require_self\n"
26
- end
24
+ css_inject = " *= require base\n *= require layout\n *= require skeleton\n"
25
+ app_scss = File.join(::Rails.root, 'app', 'assets', 'stylesheets', 'application.scss')
26
+ app_css = File.join(::Rails.root, 'app', 'assets', 'stylesheets', 'application.css')
27
+
28
+ insert_into_file File.join(::Rails.root, 'app', 'assets', 'javascripts', 'application.js'), "//= require tabs\n", :after => "jquery_ujs\n"
27
29
 
30
+ if File.exist?(app_scss)
31
+ insert_into_file app_scss, css_inject, :after => "require_self\n"
32
+ elsif File.exist?(app_css)
33
+ insert_into_file app_css, css_inject, :after => "require_self\n"
34
+ else
35
+ say_status('Nor application.css/application.scss could not be found!')
36
+ end
37
+ end
28
38
  end
29
39
  end
30
40
  end
@@ -3,9 +3,9 @@ require 'rails'
3
3
  module SkeletonRails
4
4
  module Rails
5
5
  class Engine < ::Rails::Engine
6
- initializer 'skeleton-rails.setup',
6
+ initializer 'skeleton-rails.setup',
7
7
  :group => :all do |app|
8
- app.config.paths << File.join(config.root, 'vendor')
8
+ app.paths['config'] << File.join(config.root, 'vendor')
9
9
  end
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Skeleton
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skeleton-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-23 00:00:00.000000000 Z
12
+ date: 2012-01-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A gem, which injects Skeleton CSS framework functionality into Ruby on
15
15
  Rails application