cssbt 0.1.0.pre → 0.1.0
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.
- checksums.yaml +4 -4
- data/cssbt.gemspec +2 -2
- data/lib/generators/cssbt/foundation/USAGE +0 -0
- data/lib/generators/cssbt/foundation/foundation_generator.rb +16 -0
- data/lib/generators/cssbt/foundation/templates/foundation.css +4676 -0
- data/lib/generators/cssbt/foundation/templates/foundation.min.js +15 -0
- data/lib/generators/cssbt/twbs/twbs_generator.rb +9 -2
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 397dd5008b085e2c6eee93bea5d3333586e49af2
|
4
|
+
data.tar.gz: 1a9340a6e7fcdb9e67114242ce5c8c18b3d42c46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b40ce94a70f8f23542abaec1ad16dfde8db5876dcb88b557e536a435d6d0c42aac4be119efa26eb016f1b26b8c358b17e18be60f4e261c08f1abbaa63d83f60
|
7
|
+
data.tar.gz: 5cfb9a15bb9215903fa69fd26c1c8439bbb7ca0bba5460d03218483712f622805e52547ba12476694cf77c8f0b71916090360c34d7e064506d55ffed4373fea4
|
data/cssbt.gemspec
CHANGED
@@ -2,9 +2,9 @@ $:.push File.expand_path("../lib",__FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "cssbt"
|
5
|
-
s.version = "0.1.0
|
5
|
+
s.version = "0.1.0"
|
6
6
|
s.summary = "Generator gem"
|
7
|
-
s.description = "Bootstrap and Foundation Css
|
7
|
+
s.description = "Bootstrap and Foundation Css file generator"
|
8
8
|
s.author = ["kvsatya"]
|
9
9
|
s.email = "codewoo@gmail.com"
|
10
10
|
s.files = `git ls-files`.split($/)
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
class Cssbt::FoundationGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path('../templates', __FILE__)
|
5
|
+
argument :layout_name, :type => :string, :default => "application"
|
6
|
+
|
7
|
+
def insert
|
8
|
+
insert_into_file "app/assets/stylesheets/application.css", "*= require foundation\n", :after => "*= require_self\n"
|
9
|
+
insert_into_file "app/assets/javascripts/application.js", "//= require foundation\n", :after => "//= require jquery\n"
|
10
|
+
end
|
11
|
+
|
12
|
+
def copy
|
13
|
+
copy_file "foundation.css", "app/assets/stylesheets/foundation.css"
|
14
|
+
copy_file "foundation.min.js", "app/assets/javascripts/foundation.js"
|
15
|
+
end
|
16
|
+
end
|