flutie 1.3.1 → 1.3.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 +3 -1
- data/lib/tasks/flutie.rake +5 -5
- metadata +2 -2
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
Flutie
|
2
2
|
======
|
3
3
|
|
4
|
+
[](http://travis-ci.org/thoughtbot/flutie)
|
5
|
+
|
4
6
|
Basic, default styles for rails applications
|
5
7
|
|
6
8
|
Installation & Upgrading
|
@@ -39,7 +41,7 @@ Usage
|
|
39
41
|
|
40
42
|
Flutie registers a :flutie shortcut for stylesheets, so in your layout you can do...
|
41
43
|
|
42
|
-
|
44
|
+
<%= stylesheet_link_tag :flutie, 'admin', :cache => true %>
|
43
45
|
|
44
46
|
...this will include all the flutie stylesheets, then the 'admin' stylesheet, and it will cache them all into one file.
|
45
47
|
|
data/lib/tasks/flutie.rake
CHANGED
@@ -3,7 +3,7 @@ require 'fileutils'
|
|
3
3
|
def copy_files(source_path, destination_path, directory)
|
4
4
|
source, destination = File.join(directory, source_path), File.join(Rails.root, destination_path)
|
5
5
|
FileUtils.mkdir_p(destination, :verbose => true) unless File.exist?(destination)
|
6
|
-
FileUtils.cp_r(source, destination, :verbose => true)
|
6
|
+
FileUtils.cp_r(Dir.glob(source), destination, :verbose => true)
|
7
7
|
end
|
8
8
|
|
9
9
|
directory = File.dirname(__FILE__)
|
@@ -15,11 +15,11 @@ namespace :flutie do
|
|
15
15
|
# No copy is needed when asset pipelining is enabled
|
16
16
|
puts "Flutie stylesheets are provided via asset pipelining."
|
17
17
|
else
|
18
|
-
# Copy the flutie stylesheets into rails_root/public/
|
19
|
-
copy_files("../../public/stylesheets", "/public/
|
18
|
+
# Copy the flutie stylesheets into rails_root/public/stylesheets
|
19
|
+
copy_files("../../public/stylesheets/*", "/public/stylesheets", directory)
|
20
20
|
|
21
|
-
# Copy the flutie sass stylesheets into rails_root/public/sass/flutie
|
22
|
-
copy_files("../../app/assets/stylesheets", "/public/sass/flutie", directory)
|
21
|
+
# Copy the flutie sass stylesheets into rails_root/public/stylesheets/sass/flutie
|
22
|
+
copy_files("../../app/assets/stylesheets/*", "/public/stylesheets/sass/flutie", directory)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flutie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -23,7 +23,7 @@ authors:
|
|
23
23
|
autorequire:
|
24
24
|
bindir: bin
|
25
25
|
cert_chain: []
|
26
|
-
date: 2011-09-
|
26
|
+
date: 2011-09-16 00:00:00.000000000Z
|
27
27
|
dependencies: []
|
28
28
|
description: Flutie is a starting point for personal discovery
|
29
29
|
email: support@thoughtbot.com
|