konpasu 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :gemcutter
2
+
3
+ # Specify your gem's dependencies in konpasu.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
data/konpasu.gemspec ADDED
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path("../lib/konpasu/version", __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "konpasu"
6
+ s.version = Konpasu::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ['Nathaniel Jones']
9
+ s.email = ['nathaniel@pointeractive.com']
10
+ s.homepage = "http://rubygems.org/gems/konpasu"
11
+ s.summary = "Drop-in Heroku/Compass integration"
12
+ s.description = "Drop-in Heroku/Compass integration"
13
+
14
+ s.required_rubygems_version = ">= 1.3.6"
15
+ s.rubyforge_project = "konpasu"
16
+
17
+ s.add_development_dependency "bundler", ">= 1.0.0"
18
+
19
+ s.files = `git ls-files`.split("\n")
20
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
21
+ s.require_path = 'lib'
22
+ end
@@ -0,0 +1,3 @@
1
+ module Konpasu
2
+ VERSION = "0.0.1"
3
+ end
data/lib/konpasu.rb ADDED
@@ -0,0 +1,33 @@
1
+ module Konpasu
2
+ class HerokableCompass < Rails::Railtie
3
+ initializer 'konpasu.configure_compass_for_tmp_directory' do
4
+ require 'fileutils'
5
+ FileUtils.mkdir_p Rails.root.join 'tmp', 'stylesheets'
6
+
7
+ Compass.configuration do |config|
8
+ config.project_type = :rails
9
+ config.project_path = Rails.root.to_s
10
+ config.sass_dir = 'app/stylesheets'
11
+ config.css_dir = 'tmp/stylesheets'
12
+ config.output_style = Rails.env.production? ? :compressed : :expanded
13
+ config.environment = Rails.env
14
+ config.relative_assets = false
15
+ end
16
+
17
+ Compass.configure_sass_plugin!
18
+ end
19
+
20
+ initializer 'konpasu.add_sass_logging' do
21
+ Sass::Plugin.on_updating_stylesheet do |template, css|
22
+ puts "Compiling #{template} to #{css}"
23
+ end
24
+ end
25
+
26
+ initializer 'konpasu.setup_rack_middleware' do
27
+ Rails.configuration.middleware.insert_before('Rack::Sendfile', 'Rack::Static',
28
+ :root => Rails.root.join('tmp'),
29
+ :urls => ['/stylesheets'],
30
+ :versioning => false)
31
+ end
32
+ end
33
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: konpasu
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Nathaniel Jones
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-04-04 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: bundler
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 0
31
+ - 0
32
+ version: 1.0.0
33
+ type: :development
34
+ version_requirements: *id001
35
+ description: Drop-in Heroku/Compass integration
36
+ email:
37
+ - nathaniel@pointeractive.com
38
+ executables: []
39
+
40
+ extensions: []
41
+
42
+ extra_rdoc_files: []
43
+
44
+ files:
45
+ - .gitignore
46
+ - Gemfile
47
+ - Rakefile
48
+ - konpasu.gemspec
49
+ - lib/konpasu.rb
50
+ - lib/konpasu/version.rb
51
+ has_rdoc: true
52
+ homepage: http://rubygems.org/gems/konpasu
53
+ licenses: []
54
+
55
+ post_install_message:
56
+ rdoc_options: []
57
+
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ segments:
66
+ - 0
67
+ version: "0"
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ segments:
74
+ - 1
75
+ - 3
76
+ - 6
77
+ version: 1.3.6
78
+ requirements: []
79
+
80
+ rubyforge_project: konpasu
81
+ rubygems_version: 1.3.7
82
+ signing_key:
83
+ specification_version: 3
84
+ summary: Drop-in Heroku/Compass integration
85
+ test_files: []
86
+