compass-filesize 0.1
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 +7 -0
- data/README.md +17 -0
- data/lib/compass-filesize.rb +14 -0
- metadata +60 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: d8f7c15278db2a01e59649cd057d6db8940cd907
|
|
4
|
+
data.tar.gz: ab1ce2d2d362e02aee8710ed7f05c5a64b7d9df2
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d0cb2da5be7e34ec83e7e4ec2c6d2f10ce95c30f89b2d889a9d8a7555abcdd4d65a27eac7b207d8daed9c40f58c5ac495ff466a1cd847982a82d1f093d45aafc
|
|
7
|
+
data.tar.gz: bcc95471ae193540be9ce988837b276f7e740daf849a23caa129f28da34b518b619ba05ed23af7e077a71b988a78b02e332eecd991da703e82fb4c7f15c4557b
|
data/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# compass-filesize
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
This is a [compass](http://www.compass-style.org/ "compass") extension to display the filesize of the generated css files.
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
Just go to your terminal an type this
|
|
8
|
+
|
|
9
|
+
sudo gem install compass-filesize
|
|
10
|
+
|
|
11
|
+
## How to use
|
|
12
|
+
In your compass config file add this line
|
|
13
|
+
|
|
14
|
+
require "compass-filesize"
|
|
15
|
+
|
|
16
|
+
## Note
|
|
17
|
+
This is one of my first compass extension, so if you have some annotations don't hesitate and write it here.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# REQUIREMENTS
|
|
2
|
+
require 'compass'
|
|
3
|
+
|
|
4
|
+
# REGISTER THIS EXTENSION
|
|
5
|
+
Compass::Frameworks.register('compass-filesize', :path => File.expand_path(File.join(File.dirname(__FILE__), "..")))
|
|
6
|
+
|
|
7
|
+
# SET LOGGER COLOR
|
|
8
|
+
Compass::Logger::ACTION_COLORS[:filesize] = :green
|
|
9
|
+
|
|
10
|
+
Compass.configuration.on_stylesheet_saved do |css_file|
|
|
11
|
+
byte = (File.size(css_file))
|
|
12
|
+
kb = (byte*0.000976562).ceil
|
|
13
|
+
Compass::Logger.new.record(:filesize, "~#{kb}KB (#{byte} Byte)")
|
|
14
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: compass-filesize
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '0.1'
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Tino Wehe
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-01-10 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: compass
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - '>='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 0.12.2
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - '>='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.12.2
|
|
27
|
+
description: extension to display the filesize of the generated css files
|
|
28
|
+
email: tino.wehe@brandrockers.com
|
|
29
|
+
executables: []
|
|
30
|
+
extensions: []
|
|
31
|
+
extra_rdoc_files: []
|
|
32
|
+
files:
|
|
33
|
+
- README.md
|
|
34
|
+
- lib/compass-filesize.rb
|
|
35
|
+
homepage: https://github.com/pixel-shock/compass-filesize
|
|
36
|
+
licenses:
|
|
37
|
+
- MIT
|
|
38
|
+
metadata: {}
|
|
39
|
+
post_install_message: "\n\tThanks for installing compass-filesize!\n\tJust add\n\t\trequire
|
|
40
|
+
\"compass-filesize\"\n\tto your compass config file and enjoy!\n\n"
|
|
41
|
+
rdoc_options: []
|
|
42
|
+
require_paths:
|
|
43
|
+
- lib
|
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - '>='
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0'
|
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - '>='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
54
|
+
requirements: []
|
|
55
|
+
rubyforge_project:
|
|
56
|
+
rubygems_version: 2.0.3
|
|
57
|
+
signing_key:
|
|
58
|
+
specification_version: 4
|
|
59
|
+
summary: compass extension to display the filesize of the generated css files
|
|
60
|
+
test_files: []
|