compass-tabs 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +4 -0
  3. data/lib/compass-tabs.rb +15 -0
  4. metadata +60 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e2a869f53579149eae3ddf9af20fd0e5a119f4ae
4
+ data.tar.gz: 4f419f8bf2eefc1f53b10b99667227c018a5f363
5
+ SHA512:
6
+ metadata.gz: 66a1ab2192efa6e50f165583fa0b323f195c6138f50b46d1173abaa522a992c3edf5f856408d51a81acad4142cd5fb234bf84c89976cfd2dd93b0ada382b8302
7
+ data.tar.gz: 80cc349d90b2b155d680aa102c23fccd98f828c122e8847e91b054d9f7dc25fc09fb19ec7eeedb27f569e318d6f5fdb0a86e6c8a6fc46f58d8d8bea8942e1e1e
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ compass-tabs
2
+ ============
3
+
4
+ compass extension to convert spaces into tabstops in the output css files
@@ -0,0 +1,15 @@
1
+ # REQUIREMENTS
2
+ require 'compass'
3
+
4
+ # REGISTER THIS EXTENSION
5
+ Compass::Frameworks.register('compass-tabs', :path => File.expand_path(File.join(File.dirname(__FILE__), "..")))
6
+
7
+ Compass.configuration.on_stylesheet_saved do |css_file|
8
+ css = File.read(css_file)
9
+ css.gsub!(/(^\s{2,})/) do
10
+ "\t" * ($1.size/2).round
11
+ end
12
+ open(css_file, "w") do |f|
13
+ f.write(css)
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: compass-tabs
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-09 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: compass plugin to convert spaces to tabs in your output css
28
+ email: tino.wehe@brandrockers.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - README.md
34
+ - lib/compass-tabs.rb
35
+ homepage: https://github.com/pixel-shock/compass-tabs
36
+ licenses:
37
+ - MIT
38
+ metadata: {}
39
+ post_install_message: "\n\tThanks for installing compass-tabs!\n\tJust add\n\t\trequire
40
+ \"compass-tabs\"\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 plugin to convert spaces to tabs
60
+ test_files: []