skeleton-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
![Skeleton](http://i.minus.com/iH51VXxPPD1jJ.png)
|
4
4
|
|
5
|
-
[Skeleton](http://
|
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
|
-
|
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
|
-
|
32
|
-
|
33
|
-
|
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
|
-
|
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
|
-
|
25
|
-
|
26
|
-
|
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
|
8
|
+
app.paths['config'] << File.join(config.root, 'vendor')
|
9
9
|
end
|
10
10
|
end
|
11
11
|
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.
|
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:
|
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
|